chciałbym zrobić ten rodzaj przycisk z trójkątem w rogu prawej górnej części układu:Android: jak dodać kształt trójkąta w prawym górnym przyciskiem rogu
I już rozpoczęła ten układ bez tego trójkąta jeszcze:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="48dp"
android:gravity="center_vertical"
android:paddingLeft="@dimen/keyline_1"
android:paddingRight="@dimen/keyline_2">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/grey"
android:text="DESCRIPTION"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_alignParentRight="true">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="@dimen/keyline_4"
android:textColor="@color/grey"
android:text="info"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/grey"
android:text="TITLE"/>
</LinearLayout>
</RelativeLayout>
Skizo, nie rozumiem, jak można używać Twój kształt w moim układzie xml ?? – anthony
@anthony Zobacz moją edycję, proszę –
Musisz dodać plik XML do pobrania, a następnie dodać kod XML @Skizo. Możesz użyć tego pliku w swoim widoku tekstowym, np .: –