ここに私のlayout.xmlファイルImageViewとTextViewの中央に配置するにはどうすればいいですか?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ImageView
android:id="@+id/image1"
android:layout_width="60dp"
android:layout_height="60dp"
android:contentDescription="@string/desc"
android:padding="10dp"
android:layout_alignParentLeft="true"/>
<TextView
android:id="@+id/text1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#FFF"
android:layout_toRightOf="@+id/image1"/>
<ScrollView
android:id="@+id/scroll"
android:layout_width="wrap_content"
android:layout_below="@+id/text1"
android:layout_height="40dp"/>
<ImageView
android:id="@+id/image2"
android:layout_width="60dp"
android:layout_height="60dp"
android:contentDescription="@string/desc"
android:padding="10dp"
android:layout_below="@+id/image1"/>
<TextView
android:id="@+id/text2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#FFF"
android:layout_below="@+id/image1"
android:layout_toRightOf="@+id/image2"/>
</RelativeLayout>
私はそれ以上のImageViewのでのTextViewを中心にしたいです。これはどうすればいいですか?
私はこのようにすることにしたい:
<Player_Image> <Player_Name_Points>
<Player_Image> <Player_Name_Points>
2つのイメージビューと2つのテキストビューがあります。 –
また、Eclipseからスクリーンショットを作成することもできます(DDMS、デバイスの下にアイコンがあります) –