WheelView
WheelView copied to clipboard
Android滚动选择控件
I want to show this wheelview over fullscreen(match_parent) of my layout or device. Can you please tell me how I can show wheelview on fullscreen?
``` java private void initData() { displayItemCount = offset * 2 + 1; views.removeAllViews();//添加此句,多个WheelView组合才能实现联动效果 for (String item : items) { views.addView(createView(item)); } refreshItemView(0); } ```
执行两次会崩溃
new AlertDialog.Builder(this) .setTitle(R.string.select_education) .setView(outerView) .setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { tvEducationValue.setText(wv.getSeletedItem()); } }) .show();
为什么我把5个横向放布局里面,填充数据不显示,单个就显示。做时间选择器的话可以提供一下思路吗?
- added itemIndex parameter to createView function - initData function has been modified - in createView function setOnClickListener added to tv object
I am using your library but the wheel view is always on the top in my screen even if I put it in center or bottom in my xml file....
Hi I'm using your library.I Have custom ArrayList and I rewrite your customView form custom ArrayList.Everythink working perfect,but i can't scroll top or bottom position .In my option my main...