Do android:layout_...
s Работа с ImageView
s? Из рисунка видно, что все 10 строк расположены друг на друге, поэтому это означает, что q2Image
не принимает код android:layout_below="@/q1Image"
, чтобы он опустил линию и запустил следующую строку.android: layout_below with ImageView не работает
Я просто что-то пропустил или пытаюсь сделать что-то невозможное?
<ScrollView
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="65"
android:fillViewport="true" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/q1Image"
android:layout_width="10dp"
android:layout_height="10dp" />
<TextView
android:id="@+id/q1Question"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/q1Image" />
<TextView
android:id="@+id/q1Answer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/q1Question" />
<TextView
android:id="@+id/q1Verse"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/q1Answer" />
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="#C2BEBF" />
<ImageView
android:id="@+id/q2Image"
android:layout_width="10dp"
android:layout_height="10dp"
android:layout_below="@id/q1Image" />
<TextView
android:id="@+id/q2Question"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/q2Image" />
<TextView
android:id="@+id/q2Answer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/q2Question" />
<TextView
android:id="@+id/q2Verse"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/q2Answer" />
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="#C2BEBF" />
//Above code is first 2 rows. There are 10 rows total but I removed the code for rows 3-10 for this post.
для получения дополнительной информации проверьте этот вопрос http://stackoverflow.com/questions/5025910/difference-between-id-and-id-in-android –
Я прочитал и попытался в обоих направлениях только прийти с тем же результатом с обоими , – Matt
Перейдите в Графический макет в eclipse и поместите его с помощью мыши, вместо этого напишите код ... – Pragnani