android-custom-drawable

Bounds in custom triangle button

半城伤御伤魂 提交于 2019-12-13 07:01:49
问题 I created a custom button as shown in the image. My problem is that the bounds still clickble. Is there any way to wrap the triangle. Image custom button My shape xml file : <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <rotate android:fromDegrees="45" android:toDegrees="45" android:pivotX="-10%" android:pivotY="87%" > <shape android:shape="rectangle" > <stroke android:color="@color/transparent" android:width="30dp"/>

Android: SeekBar with custom drawable

◇◆丶佛笑我妖孽 提交于 2019-11-30 13:39:41
问题 I have SeekBar with custom drawable. Progress element is not rendered from left side exactly but it is moved to right. How can I avoid this? <SeekBar android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@android:id/summary" android:background="@null" android:progressDrawable="@drawable/seekbar" android:thumb="@drawable/seekbar_thumb"/> seekbar.xml <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res