van ez a képernyőm. a középső scrollview-nek fix magasságot adtam, ami más képernyőméretnél persze nem lesz jó.
Azt szeretném, ha a scrollview kitöltené a két fix rész közötti helyet. Hogyan?
Íme az oldal forrása is:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/llayAbout" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <!-- TOP HEADER --> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/ttlSchedule" android:textColor="#FFEEEEEE" android:textSize="16dp" android:textStyle="bold" /> <!-- CONTENT --> <TableLayout android:layout_width="fill_parent" android:layout_height="wrap_content" > <TableRow android:id="@+id/tableRow3" android:layout_width="wrap_content" android:layout_height="wrap_content" > <LinearLayout android:layout_width="fill_parent" android:layout_height="10dp" /> </TableRow> <TableRow android:id="@+id/tableRow1" android:layout_width="wrap_content" android:layout_height="0dp" android:layout_weight="1" > <TextView android:id="@+id/textView1" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/btnScheduleStartTime" /> <TextView android:id="@+id/textView2" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/btnScheduleEndTime" /> </TableRow> <TableRow android:id="@+id/tableRow2" android:layout_width="wrap_content" android:layout_height="0dp" android:layout_weight="1" > <Button android:id="@+id/btnScheduleStartTime" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="kezdés" /> <Button android:id="@+id/btnScheduleEndTime" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="vége" /> </TableRow> </TableLayout> <ScrollView android:id="@+id/scrollView1" android:layout_width="fill_parent" android:layout_height="250dp" > <LinearLayout android:id="@+id/layScheduleWeekDays" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" > </LinearLayout> </ScrollView> <!-- BOTTOM CONTROLS --> <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" > <ImageView android:id="@+id/btnScheduleBack" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_weight="1" android:contentDescription="@string/description" android:src="@drawable/mni_exit" /> <ImageView android:id="@+id/btnScheduleDelete" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_weight="1" android:contentDescription="@string/description" android:src="@drawable/mni_delete" /> <ImageView android:id="@+id/btnScheduleUpdate" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_weight="1" android:contentDescription="@string/description" android:src="@drawable/mni_edit" /> <ImageView android:id="@+id/btnScheduleSave" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_weight="1" android:contentDescription="@string/description" android:src="@drawable/mni_save" /> </LinearLayout> </LinearLayout>
Page
viewed times
#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
1 Comment
Auth Gábor
RelativeLayout-tal meg tudod oldani, a LinearLayout erre nem alkalmas.