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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:50:19+00:00 2026-06-09T06:50:19+00:00

I have downloaded kankan’s wheel widget as an *.apk from here http://code.google.com/p/android-wheel/downloads/list and then

  • 0

I have downloaded kankan’s wheel widget as an *.apk from here http://code.google.com/p/android-wheel/downloads/list and then converted it into *.jar file. I have attached this jar as a library to my project. Everything works fine. I can import all the classes from the library and use them in my project. However when I create the wheel object in my activity it works correctly but doesn’t display correct background of the wheel. Instead it does show some random drawables from my project. What I’m doing wrong? where should I look to solve this problem? Here is my xml layout and DialogPreference class. Please help!!! Thanks.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="12dp"
    android:background="@drawable/layout_bg" >

    <kankan.wheel.widget.WheelView
android:id="@+id/number"
android:layout_height="wrap_content"
android:layout_width="140dp" />
</LinearLayout>

NumberPickerPreference.java

import kankan.wheel.widget.OnWheelChangedListener;
import kankan.wheel.widget.WheelView;
import kankan.wheel.widget.adapters.NumericWheelAdapter;
import android.content.Context;
import android.preference.DialogPreference;
import android.util.AttributeSet;
import android.view.View;

public class NumberPickerPreference extends DialogPreference {


public NumberPickerPreference(Context context, AttributeSet attrs) {
    super(context, attrs);
    setDialogLayoutResource(R.layout.number_picker_layout);
}

@Override
    protected View onCreateDialogView() {
 view view = super.onCreateDialogView();

return view;
}

@Override
protected void onBindDialogView(View view) {
    super.onBindDialogView(view);

    WheelView numberPicker = (WheelView)view.findViewById(R.id.number);
    numberPicker.setViewAdapter(new NumericWheelAdapter(getContext(), 0, 99, "%02d"));
    numberPicker.setCyclic(true);
    numberPicker.setCurrentItem(17);
}

/**
 * Adds changing listener for wheel that updates the wheel label
 * @param wheel the wheel
 * @param label the wheel label
 */
private void addChangingListener(final WheelView wheel, final String label) {
    wheel.addChangingListener(new OnWheelChangedListener() {
        public void onChanged(WheelView wheel, int oldValue, int newValue) {
            //wheel.setLabel(newValue != 1 ? label + "s" : label);
        }
    });
}
 }
  • 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-09T06:50:23+00:00Added an answer on June 9, 2026 at 6:50 am

    I figure it out. It seems I got some library conflict problem. I fixed it by removing from Java Build Path in the library project android-support-v4.jar library file.

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

Sidebar

Related Questions

I have downloaded the ZXing project from the http://code.google.com/p/zxing/downloads/detail?name=ZXing-2.0.zip&can=2&q= and followed all the steps
I have downloaded facebook-java-api-3.0.2-bin from http://code.google.com/p/facebook-java-api/ for connecting to face book.I want to use
I have downloaded the two releases of python 2.6.8 from here http://www.python.org/getit/releases/2.6.8/ and I
I have downloaded follwing code from one of Google Codes but problem is in
I have downloaded the example code/demo from: http://www.technowise.in/2009/12/uploadify-aspnet-c-vb-examples-demo.html and when I try to run
I have downloaded the Jquery UI with Start theme. Demo is here: http://jqueryui.com/demos/datepicker/ I
I have downloaded a MetaTrader MQL4 language .mq4 source-code file from here and I
I have downloaded the silver light from this http://www.microsoft.com/silverlight// I need to use this
I have downloaded some GTFS data from http://www.131500.com . It is a zip file
I have downloaded Fonemokey from Gorillalogic.com and followed the Documentation provided with it to

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.