CursorWheelLayout icon indicating copy to clipboard operation
CursorWheelLayout copied to clipboard

Create in programming dynamically

Open jaag12 opened this issue 4 years ago • 0 comments

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)

jaag12 avatar Feb 24 '20 08:02 jaag12