KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
The layout I try to implement is (I think) pretty simple. One TextView expands depending on what is inside. Just below are two buttons (OK/Cancel). I can make the buttons stick to the bottom of the screen and that works fine. But I would like to have those buttons just below the TextView. I have tried a lot of different things, but here is my latest layout : <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ScrollView android:id="@+id/Scroll" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" > <TextView android:id="@+id/Text" android:layout_width="fill_parent" android:layout_height="wrap_content" /> </ScrollView> <RelativeLayout android:id="@+id/buttons" android:layout_height="fill_parent" android:layout_width="fill_parent" android:layout_below="@+id/Scroll" android:layout_above="@+id/bottom" > <LinearLayout android:orientation="horizontal" android:layout_height="wrap_content" android:layout_width="fill_parent"> <Button android:id="@+id/ButtonOK" android:layout_height="80dp" android:layout_width="fill_parent" android:text="OK" android:layout_weight="1"/> <Button android:id="@+id/ButtonCancel" android:layout_height="80dp" android:layout_width="fill_parent" androi
Tags (comma-separated)
Save Edits
Cancel