1
Android'de katman listesi xml kullanarak düzenimi özelleştirdim. Ama katman listesi için yaptım ve tam olarak ne istediğimi görüyorum. Ama, benim düzenimde başvurduğumda, tam olarak ne istediğimi göstermiyor, nedenini bilmiyorum, bana yardım et, lütfen!Katman listesi xml kullanarak özel düzen tam olarak değil
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<size
android:width="@dimen/dp35"
android:height="@dimen/dp35" />
<solid android:color="@color/colorAccent" />
</shape>
</item>
<item android:right="12dp"
android:top="@dimen/dp20"
android:bottom="-5dp">
<rotate
android:fromDegrees="25">
<shape android:shape="rectangle">
<solid android:color="@color/colorAccent" />
</shape>
</rotate>
</item>
<item android:left="12.5dp"
android:top="@dimen/dp20"
android:bottom="-5dp">
<rotate
android:fromDegrees="-25">
<shape android:shape="rectangle">
<solid android:color="@color/colorAccent" />
</shape>
</rotate>
</item>
katman-list.xml kullanarak My düzen
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="100dp"
android:layout_height="100dp"
android:background="@drawable/bg_sale_off"
android:text="Textview"
android:layout_centerInParent="true" />
</RelativeLayout>
Preview 2 (without triangle at bottom)
teşekkür. Ama bana yardım etmiyor. – TedVN