I want to add a caption into a wheel picker. Like this:
But in my code, it shows in all of the items in the wheel. Here is my code:
final WheelView minute = new WheelView(Mcontex);
minute.setMinimumHeight(300);
layoutHome.addView(minute, new LayoutParams(
android.view.ViewGroup.LayoutParams.WRAP_CONTENT,
android.view.ViewGroup.LayoutParams.WRAP_CONTENT, 1.2f));
minute.setViewAdapter(new NumericWheelAdapter(context, 1, 23,"%02d hour"));
minute.setCurrentItem(0);
minute.addChangingListener(listener);
I want to show the caption only in the current line.