CursorWheelLayout
CursorWheelLayout copied to clipboard
Create in programming dynamically
How can I create circlewheel in java code and dynamically size it.
CursorWheelLayout testCircleMenu = new CursorWheelLayout(context); testCircleMenu.setLayoutParams(new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT)); fl.addView(testCircleMenu);
and get exception:
ava.lang.ArithmeticException: divide by zero at CursorWheelLayout.dispatchDraw(CursorWheelLayout.java:589) at android.view.View.draw(View.java:17472)