中鏈接提供的圖像的佈局我是Android開發的新手。我想創建類似於我在下面鏈接中提供的圖像的佈局。如何創建類似於Android
我想在我的android應用程序中創建佈局圖像,點擊下面的鏈接查看。
http://i.stack.imgur.com/nv2TH.gif
這是我寫的佈局,還沒有達到所提供的圖像中的標準。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/relativeLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/anim"
android:scaleType="centerCrop" />
<TextView
android:id="@+id/musicTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:text="Music Title"
android:textColor="#FFFFFF"
android:textSize="20sp" />
<TextView
android:id="@+id/musicArtistName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/musicTitle"
android:layout_centerHorizontal="true"
android:text="Singer Name - Artist Here"
android:textColor="#FFFFFF"
android:textSize="14sp" />
如何創建這種類型的XML layout.I的想知道如何實現這一點?謝謝。
謝謝你這麼多! – HSBP