Having Troubles making this customer dialog box look correctly.
Here is my layout code
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_root"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<!-- android:padding="8dp" -->
<ImageView android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_marginRight="10dp"
/>
<ScrollView
android:paddingTop="2.0dip"
android:paddingBottom="5.0dip"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFF"
android:textSize="4dp"
android:padding="5.0dip" />
</ScrollView>
<CheckBox
android:id="@+id/checkBox1"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:gravity="center_vertical"
android:text="Do Not Show Me This Again"
android:textColor="#FFF" >
</CheckBox>
</RelativeLayout>
Here is a screenshot of what it looks like http://dl.dropbox.com/u/68717396/sddsds.png sorry about the crappy line, but where the line is, this is where the scroll view ends, i want it to fill as much text as it can, and keep the checkbox a little height, (Not Cropped or anything) Just utilize all the space.
Maybe this can help:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_root"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<!-- android:padding="8dp" -->
<ImageView android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_marginRight="10dp"
/>
<ScrollView
android:paddingTop="2.0dip"
android:paddingBottom="5.0dip"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@id/checkBox1" >
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFF"
android:textSize="10dp"
android:padding="5.0dip" />
</ScrollView>
<CheckBox
android:id="@+id/checkBox1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:text="Do Not Show Me This Again"
android:textColor="#FFF" >
</CheckBox>
</RelativeLayout>
I don't know if this is the result you are looking for.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.