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 6769691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:13:25+00:00 2026-05-26T15:13:25+00:00

There are two numbers constantly displayed in my UI. I need the user to

  • 0

There are two numbers constantly displayed in my UI. I need the user to be able to specify those numbers. In a desktop app I simply use 2 spinbuttons, and can beat it (I guess). However, there are problems with this in Android (I am targeting Android 3-based tablets).

First of all, I’ve tried NumberPicker widget, but it simply does not show itself properly (I’ve asked a question about it, but no response so far).
Then I’ve tried some 3rd-party numberpicker implementations one cand find on the Web, but for various reason didn’t like neither of them. Some of them are too large to fit the side panel I’m squeezing controls into, some are just ugly (and too small, probably), and all of them automatically grab input focus causing the keyboard to show every time I open this side panel.
There is another option – only show the uneditable label with a number on the panel, and show popup window with some numberpickers in it. Apart from me not knowing how to implement such a popup (just learning), how do I decorate the label so that the user understands he can tap it to edit?

Perhaps, there are better solutions for this problem? I took a look at some apps from Google Market, and they all seem to either use huge NumberPickers at the center of the screen (and I need as much of the screen as possible clear), or a popup with the same huge Numberpickers I don’t particularly like.

Can you suggest anything else? Thanks in advance!

  • 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-05-26T15:13:25+00:00Added an answer on May 26, 2026 at 3:13 pm

    There are two different issues in your question:
    For the number picker for eaxmple in my case I have created a simple tool. You can just put a button with the text “-” then a textview and then a button with “+”. You put it in a linear layout and t can be vertical or horizontal. If you want it you can make it very small. For example here is what I have wrote but you can try playing with the options to see which is better for you.

    <LinearLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:orientation="horizontal"
     android:layout_width="wrap_content" android:layout_height="wrap_content">
    
    <LinearLayout android:orientation="vertical" android:id="@+id/linearLayout1"   
     android:layout_width="wrap_content" android:layout_weight="1" 
     android:layout_height="wrap_content">
        <Button android:id="@+id/button22" android:layout_gravity="center" 
     android:layout_weight="1" android:text="+" android:gravity="center"      
     android:layout_width="30dip" android:layout_height="30dip"></Button>
        <Button android:id="@+id/button11" 
        android:layout_gravity="center" 
        android:layout_weight="1" android:text="-" 
        android:gravity="center" android:textAppearance="?android:attr/textAppearanceSmall" android:layout_height="30dip" android:layout_width="30dip"></Button>
    </LinearLayout>
        <LinearLayout android:id="@+id/linearLayout2" 
        android:layout_width="wrap_content" 
        android:layout_height="fill_parent" 
        android:layout_weight="1" android:orientation="vertical">
            <Button android:layout_weight="1" 
            android:layout_height="fill_parent" 
            android:layout_width="30dip"
            android:text="0" android:id="@+id/quantidad"></Button>
        </LinearLayout>
    

    then you can add onClick listeners on the buttons and setup to increase or decrase the text displayed in the text view.

    As for the keyboard well if you use that example you not need it but if you use an edittext then you can setup an option for the keyboard to be hidden in the manifest: you can see the option here http://developer.android.com/guide/topics/manifest/activity-element.html

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

Sidebar

Related Questions

I have two input fields, where people can write numbers. And what I need
My app communicates with a server over TCP, using AsyncSocket. There are two situations
There are two strings. String str1=Order Number Order Time Trade Number; String str2=Order Tm;
There are two classes, let's call them X and O. A number of elements
In this problem, I have three (identically-structured) lists. Two have all numbers and the
Say I have two files where there is one number per line File 1
Is there any easy way to calculate the number of lines changed between two
I have read a document that they say: In java there two types of
There are two intents on the receiver side which are called from the same
There are two table s : one is the master and one the detail

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.