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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:05:54+00:00 2026-06-14T16:05:54+00:00

I want to know any way I can customize picker .in android there they

  • 0

I want to know any way I can customize picker .in android there they are giving some hints that it can be done in here

but I can’t find any tutorial. basically, I want to create a city picker and I want to knew that is there any way to do so. I really want some consistency in my app because I m already using date and time picker and I need to create the same theme picker.

So is there any way to do 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-14T16:05:55+00:00Added an answer on June 14, 2026 at 4:05 pm

    found the solution i was amazed that it was so easy and no one ever pointed it out . we just have to use a numberpicker and give the value . to get the value i have to just add a listener

    NumberPicker n = (NumberPicker)findViewById(R.id.numberPicker1);
            String[] a={"noman","iqbal","ikram","cheema"};
            n.setDescendantFocusability(NumberPicker.FOCUS_BLOCK_DESCENDANTS);
            n.setDisplayedValues(a);
            n.setMaxValue(3);
            n.setMinValue(0);
            n.setOnValueChangedListener(new OnValueChangeListener() {
    
                @Override
                public void onValueChange(NumberPicker picker, int oldVal, int newVal) {
    
                    Log.e(null, newVal+"");
    
    
                }
            });
    

    when i was showing some value it was continuously showing the softkeyboard just add

     n.setDescendantFocusability(NumberPicker.FOCUS_BLOCK_DESCENDANTS);
    

    this line so keyboard is not showing any more.

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

Sidebar

Related Questions

I want to know is there any way that I can remove duplicates from
I want to know if there is any way by which I can paste
I want to know if there is any way I can change the value
i want to know is there any way we can know browser's events.. like
I want to know if there is any way you can call and use
I want to know if there is any way I can change a div
I want to know is there any way i can show the app icon
I want to know is there any way or message in MFC by which
Do you know any way for safe copy cut operation in Android? I want
I want to know if there's any way to update from all versions (Example:

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.