Versuchen Sie es mit CardView machen:
Zuerst fügen Sie den folgenden Ihrer App gradle:
compile 'com.android.support:cardview-v7:23.4.0'
Dann dies:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
xmlns:custom="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginTop="10dp"
android:layout_marginBottom="4dp"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:padding="6dp"
card_view:cardCornerRadius="6dp"
card_view:cardBackgroundColor="@color/colorPrimaryDark"
custom:cardElevation="16dp">
<LinearLayout 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="match_parent"
android:layout_height="70dp"
android:padding="10dp"
android:textColor="@color/colorWhite"
android:text="Hello World!, This is a simple TextView on a CardView layout! Hello World!, This is a simple TextView on a CardView layout!" />
</LinearLayout>
</android.support.v7.widget.CardView>
Sie können Bild verwenden 9patch und es als Hintergrund der Ansicht verwenden ähnliches Ergebnis zu erhalten –
Sie jede Textview auf einem CardView und setzen cardelevation auf rund 16dp und cardbackground auf schwarz angezeigt werden kann !. –
Bitte fügen Sie keine bettelnden Nachrichten irgendwelcher Art, dringend oder anderweitig, zu irgendwelchen Fragen hinzu, die Sie im Internet fragen. Vielen Dank. – halfer