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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:43:56+00:00 2026-05-27T02:43:56+00:00

Hello i have a app which makes 3 wheels from 3 different arrays of

  • 0

Hello i have a app which makes 3 wheels from 3 different arrays of words i am trying to make the text size of the words in the array smaller can someone point me in the right direction.

I have tried the textsize in my xml but it dosent seem to work so is there a way around this in the java?

Thanks.

    public class PasswActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.passw_layout);
    initWheel(R.id.passw_1, new String[] { "One", "Two", "Three" });
    initWheel(R.id.passw_2, new String[] { "Four", "Five", "Six" });
    initWheel(R.id.passw_3, new String[] { "Seven", "Eight", "Nine" });



    Button mix = (Button) findViewById(R.id.btn_mix);
    mix.setOnClickListener(new OnClickListener() {
        public void onClick(View v) {
            mixWheel(R.id.passw_1);
            mixWheel(R.id.passw_2);
            mixWheel(R.id.passw_3);

        }
    });

}


private boolean wheelScrolled = false;


OnWheelScrollListener scrolledListener = new OnWheelScrollListener() {
    public void onScrollingStarted(WheelView wheel) {
        wheelScrolled = true;
    }

    public void onScrollingFinished(WheelView wheel) {
        wheelScrolled = false;

    }
};


private OnWheelChangedListener changedListener = new OnWheelChangedListener() {
    public void onChanged(WheelView wheel, int oldValue, int newValue) {
        if (!wheelScrolled) {

        }
    }
};


private void initWheel(int id, String[] values) {
    WheelView wheel = getWheel(id);
    wheel.setViewAdapter(new ArrayWheelAdapter<String>(this, values));
    wheel.setCurrentItem((int) (Math.random() * 10));
    wheel.addChangingListener(changedListener);
    wheel.addScrollingListener(scrolledListener);
    wheel.setCyclic(true);
    wheel.setInterpolator(new AnticipateOvershootInterpolator());

}


private WheelView getWheel(int id) {
    return (WheelView) findViewById(id);

}



private boolean testPin(int v1, int v2, int v3, int v4) {
    return testWheelValue(R.id.passw_1, v1)
            && testWheelValue(R.id.passw_2, v2)
            && testWheelValue(R.id.passw_3, v3);

}


private boolean testWheelValue(int id, int value) {
    return getWheel(id).getCurrentItem() == value;
}


private void mixWheel(int id) {
    WheelView wheel = getWheel(id);
    wheel.scroll(-25 + (int) (Math.random() * 50), 2000);
}
   }
  • 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-27T02:43:57+00:00Added an answer on May 27, 2026 at 2:43 am

    Are you using the kankan open source wheel project? If it’s that or something else, you should really specify because, as far as I know, there is no “wheel” in the android API. You shouldn’t just assume we know what you’re referring to. If you are using the kankan wheel project then you should edit the “wheel_text_item” xml and adjust the textsize of the textview

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

Sidebar

Related Questions

Hello I have a bunch of text on my file which i display. I
Hello good morning everyone, i have an iphone app which is still in development
Hello I have in my app a modal view controller which when a certain
I have a simple web app which displays a simple hello world . I
Hello StackOverflow'ers, I have a (flex) app that, on the click of a button,
Hello I am a Java web app developer I have a problem, I would
I have a simple PHP app that prints 'hello world'. When I run it
Hello I have the following error by git-fsck, which cannot be cleaned by git-gc
Hello I have a table on which I have denied SELECT privs to a
I want to make an app which (amongst other things) can parse feeds loaded

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.