私は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