Может кто-нибудь объяснить мне, почему scrollview не показывает его дочерние элементы? У меня есть много TextViews внутри LinearLayout вертикали, что LinearLayout находится внутри Scrollview ...ScrollView не показывает контент
Но я не вижу никакой Scrollview ни TextViews ..
Вот XML Layout
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/scrollViewCheck"
android:gravity="center"
android:padding="10dip"
android:text="Pick which items you want to count"
android:textAppearance="?android:attr/textAppearanceMedium" >
</TextView>
<ScrollView
android:id="@id/scrollViewCheck"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/bottomSettings"
android:scrollbarFadeDuration="0" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Test"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Test"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Test"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Test"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Test"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Test"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Test"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Test"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="Test"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="Test"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
</ScrollView>
<RelativeLayout
android:id="@id/bottomSettings"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<Button
android:id="@+id/timeButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Choose Count Time" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/timeButton"
android:orientation="horizontal" >
<Button
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Back" />
<Button
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Start" />
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
Заранее спасибо;)
Это исправило все, но чувак иногда застрял во многих макетах ... есть так много сбоев. Я имею в виду, что макеты должны быть проще сделать, есть много второстепенных вещей, которые изменяют весь контент. Есть ли способ разработать его быстрее и проще? Режим проектирования активности adt не подходит вообще. Спасибо! – TiagoM
@DarkLink Способ, которым я обычно занимаюсь дизайном, начинается с чего-то действительно простого и добавлять к нему элементы по одному. Таким образом, я знаю, где проблема возникла. – Ethan
Да, это то, чего я ожидал, много проб и ошибок, как сказал Дэвид Вассер :) Спасибо! – TiagoM