Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create in programming dynamically #20

Open
jaag12 opened this issue Feb 24, 2020 · 0 comments
Open

Create in programming dynamically #20

jaag12 opened this issue Feb 24, 2020 · 0 comments

Comments

@jaag12
Copy link

jaag12 commented Feb 24, 2020

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 jaag12 changed the title Create programatically Create in programming dynamically Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant