Ich mag Karte erstellen, wie -Marge und das Layout in android
Ich versuche margin
zu verwenden, aber nicht mit dieser Idee zu gewinnen. Ich versuche für alle Element persönliche Ansicht erstellen und padding
oder margin
verwenden, aber ich habe kein Ergebnis.
Ich habe Code wie die
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/tools"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/rlCardBlock"
style="@style/Widget.CardContent"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:maxLines="2"
android:textStyle="bold"
android:text="title"/>
<TextView
android:id="@+id/content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/title"
android:maxLines="5"
android:text="content" />
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_below="@id/content"
android:layout_marginBottom="8dp"
android:background="@null"
android:src="@drawable/ic_more_vert_black_36dp" />
</RelativeLayout>
</android.support.v7.widget.CardView>
Danke für Ihre Aufmerksamkeit.
Was ist das Problem? –
Ich weiß nicht, wie Raum erstellen wie in Bild –