Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8671441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:57:05+00:00 2026-06-12T18:57:05+00:00

I have developed a program, but i need the interface to change, depending on

  • 0

I have developed a program, but i need the interface to change, depending on user input.

Right now, i have made something like a numberpicker, with + and – buttons, but the problem is, some users will need to put in decimals. For that, i want to change the number-pickers out with a simple textbox

I want the program to be able to change back and forth between the 2 screens shown here, at the click of a button, without using different activities or xml files. everything but the number the user picks, are the same. If the stuff under the textbox doesnt stay at the same place but jumps up, (becouse the textfield fills less) thats okay.

enter image description here

How would you suggest doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:57:06+00:00Added an answer on June 12, 2026 at 6:57 pm

    You have to play around with the visibility of your views. Add both number picker and EditText to the same layout and within the button click listener toggle between the visibility of them, like,

        button.setOnClickListener(new OnClickListener() {
    
            public void onClick(View v) {
                if(nNumberPicker.getVisibility()==View.VISIBLE)
                {
                nNumberPicker.setVisibility(View.GONE);
                editText.setVisibility(View.VISIBLE);   
                }
                else
                 {
                 nNumberPicker.setVisibility(View.VISIBLE);
                editText.setVisibility(View.GONE);
                 }
    
    
            }
        });
    

    And similarly change the visibility based on your need.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program that is developed in MVC 3 Razor Syntax but whenever
Hi i have recently jailbreaked my iphone 2G( 3.1.3).But now i need to install
I have program that requires Python 3, but I develop Django and it uses
I have developed a program that is counting the number of lines in a
I have developed a Java program that will count the number of files in
I have a program developed and it has a single entry point. A Try
i have recently developed a list program in android in which there is an
I have a command line program developed in c. Lets say, i have a
I have an existing program we've developed as a large set of Eclipse plugins.
I have enrolled in the iOS developer's program. I've developed an app which I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.