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

Why selected drawable not circle but like diamond #104

Open
hafiz013 opened this issue Apr 9, 2019 · 1 comment
Open

Why selected drawable not circle but like diamond #104

hafiz013 opened this issue Apr 9, 2019 · 1 comment

Comments

@hafiz013
Copy link

hafiz013 commented Apr 9, 2019

As u can see preview below here image selected drawable seem like diamond.

1

Below here code xml for selected.xml

<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:innerRadius="0dp" android:shape="oval" android:thickness="2dp" android:useLevel="false"> <solid android:color="@android:color/black" /> </shape>

Below here code xml for unselected.xml

<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:innerRadius="0dp" android:shape="oval" android:thickness="4dp" android:useLevel="false"> <solid android:color="@android:color/darker_gray" /> </shape>

So far, unselected drawable ok.

@hafiz013
Copy link
Author

hafiz013 commented Apr 9, 2019

Further i suspect this code has problem.

setOrientation(LinearLayout.HORIZONTAL); FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); layoutParams.gravity = Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL; int margin = getResources().getDimensionPixelSize(R.dimen.default_indicator_margins) * 2; layoutParams.setMargins(0, 0, 0, margin); setLayoutParams(layoutParams);

under class SlideIndicatorsGroup. Is there way I can edit this class.

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