android how to give scrollview for my below code - android

Just see attched snap shot, I want middle part should scrolled(except Welcome and that below "Dismiss let me in" button)
I gave srollview for middle portion but its not working.
Below is my code in xml,.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout android:id="#+id/layout"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView android:text="Welcome" android:id="#+id/txtNew"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:textSize="20px" android:textStyle="bold" android:typeface="serif"
android:gravity="center"
android:paddingBottom="10dp"
android:paddingTop="10dp" />
<ImageView android:src="#drawable/devider"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:paddingBottom="10dp"
/>
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="wrap_content">
<ScrollView android:id="#+id/ScrollView01"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingTop="50dp">
<LinearLayout android:id="#+id/ayout"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:paddingTop="5dp">
<TableLayout android:id="#+id/TableLayout01"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:paddingLeft="10dp">
<TextView android:text="What's new?" android:id="#+id/txtNew"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="20px" android:textStyle="bold"
android:layout_gravity="center" android:paddingBottom="10dp"
android:paddingTop="10dp" />
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Cool and fun way of doodling with near and dear ones"
android:id="#+id/txt" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:textSize="18px"
android:typeface="serif" />
</TableRow>
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Using bluetooth for realtime transmission"
android:id="#+id/txt1" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:textSize="18px"
android:typeface="serif" />
</TableRow>
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="U can share it with ur friends"
android:id="#+id/txt2" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:textSize="18px"
android:typeface="serif" />
</TableRow>
<TextView android:text="Comming Soon" android:id="#+id/txtSoon"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="20px" android:textStyle="bold"
android:layout_gravity="center" android:paddingBottom="10dp"
android:paddingTop="10dp" />
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Save your Doodles" android:id="#+id/save"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="18px" android:typeface="serif" />
</TableRow>
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Choosing Colors" android:id="#+id/colors"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="18px" android:typeface="sans" />
</TableRow>
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Eraser" android:id="#+id/eraser"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="18px" android:typeface="normal" />
</TableRow>
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Shapes" android:id="#+id/shapes"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="18px" android:typeface="monospace" />
</TableRow>
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Brush Size" android:id="#+id/brush"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="18px" android:typeface="serif" />
</TableRow>
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Brush Size" android:id="#+id/brush1"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="18px" android:typeface="serif" />
</TableRow>
</TableLayout>
</LinearLayout>
</ScrollView>
</RelativeLayout>
<RelativeLayout android:id="#+id/parent"
android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:id="#+id/myLayout"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:paddingTop="5dp"
android:layout_alignParentBottom="true" android:background="#FF999999">
<Button android:id="#+id/alignButtom" android:layout_width="wrap_content"
android:paddingTop="10dp" android:layout_height="wrap_content"
android:text="Dismiss let me in" android:layout_gravity="center" />
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
Why scrollview is not working i dont know, plz anybody solve it.
Thank you

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:id="#+id/layout"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView android:text="Welcome" android:id="#+id/txtNew"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:textSize="20px" android:textStyle="bold" android:typeface="serif"
android:gravity="center"
android:paddingBottom="10dp"
android:paddingTop="10dp" />
<ImageView android:src="#drawable/devider"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:paddingBottom="10dp"/>
</LinearLayout>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbarFadeDuration="2000"
android:fadeScrollbars="true"
android:orientation="vertical"
android:layout_marginBottom="50dip">
<LinearLayout android:id="#+id/ayout"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:paddingTop="5dp">
<TableLayout android:id="#+id/TableLayout01"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:paddingLeft="10dp">
<TextView android:text="What's new?" android:id="#+id/txtNew"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="20px" android:textStyle="bold"
android:layout_gravity="center" android:paddingBottom="10dp"
android:paddingTop="10dp" />
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Cool and fun way of doodling with near and dear ones"
android:id="#+id/txt" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:textSize="18px"
android:typeface="serif" />
</TableRow>
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Using bluetooth for realtime transmission"
android:id="#+id/txt1" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:textSize="18px"
android:typeface="serif" />
</TableRow>
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="U can share it with ur friends"
android:id="#+id/txt2" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:textSize="18px"
android:typeface="serif" />
</TableRow>
<TextView android:text="Comming Soon" android:id="#+id/txtSoon"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="20px" android:textStyle="bold"
android:layout_gravity="center" android:paddingBottom="10dp"
android:paddingTop="10dp" />
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Save your Doodles" android:id="#+id/save"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="18px" android:typeface="serif" />
</TableRow>
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Choosing Colors" android:id="#+id/colors"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="18px" android:typeface="sans" />
</TableRow>
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Eraser" android:id="#+id/eraser"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="18px" android:typeface="normal" />
</TableRow>
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Shapes" android:id="#+id/shapes"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="18px" android:typeface="monospace" />
</TableRow>
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Brush Size" android:id="#+id/brush"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="18px" android:typeface="serif" />
</TableRow>
<TableRow>
<ImageView android:src="#drawable/star"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:text="Brush Size" android:id="#+id/brush1"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="18px" android:typeface="serif" />
</TableRow>
</TableLayout>
</LinearLayout>
</ScrollView>
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:layout_marginTop="-50dip">
<Button android:id="#+id/alignButtom" android:layout_width="wrap_content"
android:paddingTop="10dp" android:layout_height="wrap_content"
android:text="Dismiss let me in" android:layout_gravity="center" />
</LinearLayout>
</LinearLayout>

Add :
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<RelativeLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="wrap_content">
....
</RelativeLayout>
</ScrollView>

Related

Alignment problems with textview in android

I am building an app that is in 3 languages. The problem is that the text in textview is not aligning well. See image below -
I have set the gravity to start on all textviews.
I have tried Textview issue with text align, Android: Text in TextView not aligned well, How to align the textview to right in android?
The xml is as follows -
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="#+id/LinearLayout1"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:background="#F2D77C"
android:orientation="vertical"
android:paddingBottom="#dimen/activity_vertical_margin"
tools:context=".AdActivity" >
<ScrollView
android:id="#+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F2D77C"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#F2D77C"
android:visibility="gone"
android:weightSum="2" >
<TextView
android:id="#+id/topCity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#F2D77C"
android:paddingBottom="7dp"
android:paddingLeft="5dp" />
<TextView
android:id="#+id/topPrice"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="top|right|end"
android:layout_weight="1"
android:background="#F2D77C"
android:paddingRight="5dp"
android:textAlignment="textEnd"
android:textSize="20sp" />
</LinearLayout>
<!--
<HorizontalScrollView
android:id="#+id/horizontalScrollView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
-->
<!-- </HorizontalScrollView> -->
<ImageSwitcher
android:id="#+id/imageSwitcher1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minHeight="400dp" >
</ImageSwitcher>
<Gallery
android:id="#+id/gallery1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:spacing="5dp" />
<TextView
android:id="#+id/textViewPrice"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#F2D77C"
android:padding="5dp"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#262626" >
<TableRow
android:id="#+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone" >
<TextView
android:id="#+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:text="Ad Code"
android:textStyle="bold"
android:textSize="20sp" />
<TextView
android:id="#+id/adCode"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:text="Test code"
android:textSize="20sp" />
<TextView
android:id="#+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:text="Viewed"
android:textStyle="bold"
android:textSize="20dp" />
<TextView
android:id="#+id/views"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:text="0"
android:textSize="20sp" />
</TableRow>
<TableRow
android:id="#+id/tableRow2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:weightSum="4" >
<TextView
android:id="#+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:minWidth="50dp"
android:padding="5dp"
android:text="#string/city"
android:textColor="#5B554E"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="#+id/city"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:gravity="start"
android:padding="5dp"
android:textAlignment="gravity"
android:textColor="#FFFFFFFF"
android:textSize="20sp" />
</TableRow>
<TableRow
android:id="#+id/tableRow4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:weightSum="4" >
<TextView
android:id="#+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:padding="5dp"
android:text="#string/date"
android:textColor="#5B554E"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="#+id/date"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"
android:gravity="start"
android:padding="5dp"
android:textAlignment="gravity"
android:textColor="#FFFFFFFF"
android:textSize="20sp" />
</TableRow>
<TableRow
android:id="#+id/tableRow6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:weightSum="4" >
<TextView
android:id="#+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:padding="5dp"
android:text="#string/price"
android:textColor="#5B554E"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="#+id/price"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"
android:gravity="start"
android:padding="5dp"
android:textAlignment="gravity"
android:textColor="#FFFFFFFF"
android:textSize="20sp" />
</TableRow>
</TableLayout>
<TextView
android:id="#+id/textView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#20202020"
android:padding="5dp"
android:text="#string/description"
android:textColor="#6B5F53"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="#+id/description"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#F2E0A7"
android:minHeight="75dp"
android:padding="5dp"
android:paddingBottom="10dp"
android:paddingTop="10dp" />
<TextView
android:id="#+id/textView10"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#20202020"
android:padding="5dp"
android:text="#string/publisher_details"
android:textColor="#6B5F53"
android:textSize="20sp" />
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="5dp" >
<TableRow
android:padding="5dp"
android:id="#+id/tableRow3"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="#+id/textView11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:text="#string/name"
android:textColor="#6B5F53"
android:textStyle="bold" />
<TextView
android:id="#+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:text="TextView"
android:textColor="#999999" />
</TableRow>
</TableLayout>
<Button
android:id="#+id/buttonCallCar"
style="#drawable/button_wh"
android:layout_width="fill_parent"
android:layout_height="40dp"
android:layout_margin="2dp"
android:background="#drawable/button_bl"
android:paddingBottom="5dp"
android:text="Call" />
<Button
android:id="#+id/buttonAltCall"
android:layout_width="fill_parent"
android:layout_height="40dp"
android:layout_margin="2dp"
android:background="#drawable/button_bl"
android:text="Call" />
<Button
android:id="#+id/buttonFacebook"
android:layout_width="fill_parent"
android:layout_height="40dp"
android:layout_margin="2dp"
android:background="#drawable/button_bl"
android:drawableLeft="#drawable/facebook"
android:text="#string/share" />
</LinearLayout>
</ScrollView>
</LinearLayout>
The problem is occurring in Kurdish and Arabic but not in English(see image for English).

textview on Android cut off

I have this layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/LinearLayout1"
style="#style/Fondo"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:shape="rectangle" >
<ImageView
android:id="#+id/imageView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:contentDescription="#string/descripcion"
android:scaleType="center"
android:src="#drawable/proyecto_logo1_aux" />
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#drawable/edittext_rounded_corners"
android:weightSum="19.0" >
<TableRow
android:id="#+id/TableRow05"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:background="#drawable/edittext_rounded_corners" >
<TextView
android:id="#+id/levadura_data_Nombre"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:textColor="#311b10"
android:textSize="20sp"
android:textStyle="bold" />
</TableRow>
<TableRow
android:id="#+id/TableRow04"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0" >
<TextView
android:id="#+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/levadura_lab"
android:textColor="#311b10" />
<TextView
android:id="#+id/levadura_data_lab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:textColor="#311b10" />
</TableRow>
<TableRow
android:id="#+id/TableRow03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0" >
<TextView
android:id="#+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/levadura_productid"
android:textColor="#311b10" />
<TextView
android:id="#+id/levadura_data_idproduct"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:textColor="#311b10" />
</TableRow>
<TableRow
android:id="#+id/TableRow02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0" >
<TextView
android:id="#+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/levadura_tipo"
android:textColor="#311b10" />
<TextView
android:id="#+id/levadura_data_tipo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:textColor="#311b10" />
</TableRow>
<TableRow
android:id="#+id/TableRow01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0" >
<TextView
android:id="#+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/levadura_forma"
android:textColor="#311b10" />
<TextView
android:id="#+id/levadura_data_forma"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:textColor="#311b10" />
</TableRow>
<TableRow
android:id="#+id/tableRow3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0" >
<TextView
android:id="#+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/levadura_floculacion"
android:textColor="#311b10" />
<TextView
android:id="#+id/levadura_data_floculacion"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:textColor="#311b10" />
</TableRow>
<TableRow
android:id="#+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0" >
<TextView
android:id="#+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/levadura_celulas"
android:textColor="#311b10" />
<TextView
android:id="#+id/levadura_data_celulas"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:textColor="#311b10" />
</TableRow>
<TableRow
android:id="#+id/tableRow2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0" >
<TextView
android:id="#+id/textView8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/levadura_aten_min"
android:textColor="#311b10" />
<TextView
android:id="#+id/levadura_data_aten_min"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:textColor="#311b10" />
</TableRow>
<TableRow
android:id="#+id/TableRow06"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0" >
<TextView
android:id="#+id/TextView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/levadura_aten_max"
android:textColor="#311b10" />
<TextView
android:id="#+id/levadura_data_aten_max"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#311b10" />
</TableRow>
<TableRow
android:id="#+id/TableRow07"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0" >
<TextView
android:id="#+id/TextView04"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/levadura_temp_min"
android:textColor="#311b10" />
<TextView
android:id="#+id/levadura_data_temp_min"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#311b10" />
</TableRow>
<TableRow
android:id="#+id/TableRow08"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0" >
<TextView
android:id="#+id/TextView03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/levadura_temp_max"
android:textColor="#311b10" />
<TextView
android:id="#+id/levadura_data_temp_max"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#311b10" />
</TableRow>
<TableRow
android:id="#+id/TableRow09"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="8.0" >
<TextView
android:id="#+id/TextView07"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/levadura_mejor"
android:textColor="#311b10" />
<TextView
android:id="#+id/levadura_data_mejor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:textColor="#311b10" />
</TableRow>
</TableLayout>
<TableLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_marginTop="5dp"
android:background="#drawable/edittext_rounded_corners"
android:weightSum="1.0" >
<TableRow
android:id="#+id/TableRow11"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.1" >
<TextView
android:id="#+id/TextView05"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/levadura_notas"
android:textColor="#311b10"
android:textSize="15sp"
android:textStyle="bold" />
</TableRow>
<TableRow
android:id="#+id/TableRow17"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.9" >
<TextView
android:id="#+id/levadura_data_notas"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:focusableInTouchMode="true"
android:focusable="true"
android:textColor="#311b10"
android:textSize="15sp" />
</TableRow>
</TableLayout>
</LinearLayout>
And couldn't show all text on android:id="#+id/levadura_data_mejor".
I don't know why.
For example, I do setText("Trappist Belgian Ales, Dubbles, Tripels and speciality Ales), but only is showing ["Trappist Belgian Ales, Dubbles, Tripels"]
I appreciate your help. Thx
Use android:layout_weight as shown below:
<TextView
android:id="#+id/TextView07"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/levadura_mejor"
android:textColor="#311b10"
android:layout_weight="1"/>
<TextView
android:id="#+id/levadura_data_mejor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:text="Trappist Belgian Ales, Dubbles, Tripels and speciality Ales"
android:layout_weight="1"
android:textColor="#311b10" />
android:singleLine="false"
add the above line.
I am not really shure if this is solving Your problem, I donĀ“t know If You want to make a line break or if You want to scroll the text, if it is longer than the view. But if You want to scroll it, set the following parameters:
android:ellipsize="marquee"
android:marqueeRepeatLimit="-1"
android:singleLine="true"
And in Your Java code class, You have to set Your TextView selected:
yourTextView.setSelected(true);

Does not need ScrollView for entire layout in Android

I have a RelativeLayout with mulitple tables and as well as some headers, my problem is that I do not want entire layout to be scrollable instead of that I need to scroll only the tables.
Below is the layout:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:myapp="http://schemas.android.com/apk/res/com.example.test"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true"
android:scrollbarSize="12dip"
android:scrollbarStyle="outsideInset"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:scrollbarAlwaysDrawHorizontalTrack="true">
<RelativeLayout
android:id="#+id/relativeLayout1"
android:layout_width="fill_parent"
android:background="#FFFFFF"
android:layout_height="fill_parent" >
<TextView
android:id="#+id/Headerdash"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="Welcome:"
android:layout_below="#+id/tableheader"
android:layout_marginLeft="5dip"
android:textColor="#000000"
android:textSize="14dp"
android:textStyle="bold" >
</TextView>
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="#+id/tableheader"
android:layout_marginTop="9dip" >
<TableRow android:gravity="right" >
<TextView
android:id="#+id/refreshmain"
android:layout_width="64dip"
android:layout_height="22dip"
android:autoLink="web"
android:background="#drawable/search_button"
android:linksClickable="true"
android:text="Refresh"
android:layout_marginRight="2dip"
android:gravity="center"
android:textColor="#FFFFFF"
android:textStyle="bold" />
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:text="|"
android:textColor="#000000"
android:textStyle="bold" />
<TextView
android:id="#+id/moremain"
android:layout_width="53dip"
android:layout_height="22dip"
android:gravity="center"
android:autoLink="web"
android:background="#drawable/search_button"
android:linksClickable="true"
android:text="Home"
android:textColor="#FFFFFF"
android:textStyle="bold" />
</TableRow>
</TableLayout>
<ListView
android:id="#+id/listView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:layout_alignParentLeft="true"
android:layout_below="#+id/Header"
android:layout_marginLeft="20dip"
android:layout_marginTop="60dip" >
</ListView>
<TableLayout
android:id="#+id/table1"
android:layout_width="match_parent"
android:layout_height="140dip"
android:layout_below="#+id/tableheader"
android:layout_marginTop="20dip"
android:background="#drawable/shape"
android:shrinkColumns="*"
android:stretchColumns="*" >
<!-- Row 1 with single column -->
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="Vehicles"
android:textColor="#005D90"
android:textSize="18dp"
android:textStyle="bold" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="Moving"
android:textColor="#000"
android:textSize="14dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="Stopped"
android:textColor="#000"
android:textSize="14dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="Idling"
android:textColor="#000"
android:textSize="14dp" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="#+id/vehicle1"
android:layout_gravity="center"
android:layout_span="3"
android:text="1"
android:textColor="#005D90"
android:textSize="35dp"
android:textStyle="bold" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:id="#+id/vehicle2"
android:text="2"
android:textColor="#005D90"
android:textSize="35dp"
android:textStyle="bold" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:id="#+id/vehicle3"
android:text="3"
android:textColor="#005D90"
android:textSize="35dp"
android:textStyle="bold" />
</TableRow>
</TableLayout>
<TableLayout
android:id="#+id/table2"
android:layout_width="match_parent"
android:layout_height="140dip"
android:layout_below="#+id/table1"
android:layout_marginTop="20dip"
android:background="#drawable/shape"
android:shrinkColumns="*"
android:stretchColumns="*" >
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="Speeding"
android:textColor="#005D90"
android:textSize="18dp"
android:textStyle="bold" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="<30km"
android:textColor="#000"
android:textSize="14dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text=">30-60km"
android:textColor="#000"
android:textSize="14dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text=">60km"
android:textColor="#000"
android:textSize="14dp" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="1"
android:id="#+id/speeding1"
android:textColor="#005D90"
android:textSize="35dp"
android:textStyle="bold" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:id="#+id/speeding2"
android:text="2"
android:textColor="#005D90"
android:textSize="35dp"
android:textStyle="bold" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="3"
android:id="#+id/speeding3"
android:textColor="#005D90"
android:textSize="35dp"
android:textStyle="bold" />
</TableRow>
</TableLayout>
<TableLayout
android:id="#+id/table3"
android:layout_width="match_parent"
android:layout_height="140dip"
android:layout_below="#+id/table2"
android:layout_marginTop="20dip"
android:background="#drawable/shape"
android:shrinkColumns="*"
android:stretchColumns="*" >
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="Odometer"
android:textColor="#005D90"
android:textSize="18dp"
android:textStyle="bold" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="<1000km"
android:textColor="#000"
android:textSize="14dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text=">1000km"
android:textColor="#000"
android:textSize="14dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text=">2000km"
android:textColor="#000"
android:textSize="14dp" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="1"
android:id="#+id/odometer1"
android:textSize="35dip"
android:textStyle="bold"
android:textColor="#005D90"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="2"
android:id="#+id/odometer2"
android:textStyle="bold"
android:textColor="#005D90"
android:textSize="35dp"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="3"
android:id="#+id/odometer3"
android:textStyle="bold"
android:textColor="#005D90"
android:textSize="35dp"
/>
</TableRow>
</TableLayout>
</RelativeLayout>
</ScrollView>
As per the layout above , its scrollable to entire layout , but instead of that i need to scroll only the TableLayout I created above.
Any help will be appreciated.
Use this one
<?xml version="1.0" encoding="utf-8"?>
<TextView
android:id="#+id/Headerdash"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="5dip"
android:text="Welcome:"
android:textColor="#000000"
android:textSize="14dp"
android:textStyle="bold" >
</TextView>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fillViewport="true"
android:scrollbarAlwaysDrawHorizontalTrack="true"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:scrollbarSize="12dip"
android:scrollbarStyle="outsideInset" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<TableLayout
android:id="#+id/tableheader"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="9dip" >
<TableRow android:gravity="right" >
<TextView
android:id="#+id/refreshmain"
android:layout_width="64dip"
android:layout_height="22dip"
android:layout_marginRight="2dip"
android:autoLink="web"
android:background="#drawable/ic_launcher"
android:gravity="center"
android:linksClickable="true"
android:text="Refresh"
android:textColor="#FFFFFF"
android:textStyle="bold" />
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:text="|"
android:textColor="#000000"
android:textStyle="bold" />
<TextView
android:id="#+id/moremain"
android:layout_width="53dip"
android:layout_height="22dip"
android:autoLink="web"
android:background="#drawable/ic_launcher"
android:gravity="center"
android:linksClickable="true"
android:text="Home"
android:textColor="#FFFFFF"
android:textStyle="bold" />
</TableRow>
</TableLayout>
<ListView
android:id="#+id/listView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="#+id/Header"
android:layout_marginLeft="20dip"
android:layout_marginTop="60dip"
android:visibility="gone" >
</ListView>
<TableLayout
android:id="#+id/table1"
android:layout_width="match_parent"
android:layout_height="140dip"
android:layout_below="#+id/tableheader"
android:layout_marginTop="20dip"
android:background="#drawable/ic_launcher"
android:shrinkColumns="*"
android:stretchColumns="*" >
<!-- Row 1 with single column -->
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="Vehicles"
android:textColor="#005D90"
android:textSize="18dp"
android:textStyle="bold" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="Moving"
android:textColor="#000"
android:textSize="14dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="Stopped"
android:textColor="#000"
android:textSize="14dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="Idling"
android:textColor="#000"
android:textSize="14dp" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal" >
<TextView
android:id="#+id/vehicle1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="1"
android:textColor="#005D90"
android:textSize="35dp"
android:textStyle="bold" />
<TextView
android:id="#+id/vehicle2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="2"
android:textColor="#005D90"
android:textSize="35dp"
android:textStyle="bold" />
<TextView
android:id="#+id/vehicle3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="3"
android:textColor="#005D90"
android:textSize="35dp"
android:textStyle="bold" />
</TableRow>
</TableLayout>
<TableLayout
android:id="#+id/table2"
android:layout_width="match_parent"
android:layout_height="140dip"
android:layout_below="#+id/table1"
android:layout_marginTop="20dip"
android:background="#drawable/ic_launcher"
android:shrinkColumns="*"
android:stretchColumns="*" >
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="Speeding"
android:textColor="#005D90"
android:textSize="18dp"
android:textStyle="bold" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="<30km"
android:textColor="#000"
android:textSize="14dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text=">30-60km"
android:textColor="#000"
android:textSize="14dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text=">60km"
android:textColor="#000"
android:textSize="14dp" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal" >
<TextView
android:id="#+id/speeding1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="1"
android:textColor="#005D90"
android:textSize="35dp"
android:textStyle="bold" />
<TextView
android:id="#+id/speeding2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="2"
android:textColor="#005D90"
android:textSize="35dp"
android:textStyle="bold" />
<TextView
android:id="#+id/speeding3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="3"
android:textColor="#005D90"
android:textSize="35dp"
android:textStyle="bold" />
</TableRow>
</TableLayout>
<TableLayout
android:id="#+id/table3"
android:layout_width="match_parent"
android:layout_height="140dip"
android:layout_below="#+id/table2"
android:layout_marginTop="20dip"
android:background="#drawable/ic_launcher"
android:shrinkColumns="*"
android:stretchColumns="*" >
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="Odometer"
android:textColor="#005D90"
android:textSize="18dp"
android:textStyle="bold" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="<1000km"
android:textColor="#000"
android:textSize="14dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text=">1000km"
android:textColor="#000"
android:textSize="14dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text=">2000km"
android:textColor="#000"
android:textSize="14dp" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal" >
<TextView
android:id="#+id/odometer1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="1"
android:textColor="#005D90"
android:textSize="35dip"
android:textStyle="bold" />
<TextView
android:id="#+id/odometer2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="2"
android:textColor="#005D90"
android:textSize="35dp"
android:textStyle="bold" />
<TextView
android:id="#+id/odometer3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_span="3"
android:text="3"
android:textColor="#005D90"
android:textSize="35dp"
android:textStyle="bold" />
</TableRow>
</TableLayout>
</LinearLayout>
</ScrollView>

Alignment issue for textview in android

I am trying to get the text "Your token is run out, please reconnect" little up just below the icon and title of "facebook" and "twitter" but there is lot of gap between them. I tried all possible ways but not sure where m missing. Below is my code n screenshot.
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="#+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#ffffff"
android:gravity="center_vertical"
android:orientation="horizontal" >
<ImageView
android:id="#+id/facebook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingLeft="10dip"
android:src="#drawable/facebook" />
<TextView
android:id="#+id/list"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeight"
android:paddingLeft="10dip"
android:text="Facebook"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#444444"
android:textSize="20sp" />
<ImageView
android:id="#+id/facebook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:paddingRight="15dip"
android:src="#drawable/ok" />
</LinearLayout>
<TextView android:id="#+id/tokentextfacebook"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="#id/facebook"
android:textSize="14sp"
android:paddingLeft="10dip"
android:background="#ffffff"
android:text="Your token is run out. Please reconnect"
android:textColor="#444444"
android:gravity="left"
/>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="#android:color/darker_gray"/>
<LinearLayout
android:id="#+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#ffffff"
android:orientation="horizontal">
<ImageView
android:id="#+id/facebook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingLeft="10dip"
android:src="#drawable/twitter" />
<TextView
android:id="#+id/list"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeight"
android:paddingLeft="10dip"
android:text="Twitter"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#4a82ae"
android:textSize="20sp" />
<ImageView
android:id="#+id/twitter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:paddingRight="15dip"
android:src="#drawable/ok" />
</LinearLayout>
<TextView android:id="#+id/tokentexttwitter"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="#id/facebook"
android:textSize="14sp"
android:paddingLeft="10dip"
android:background="#ffffff"
android:text="Your token is run out. Please reconnect"
android:textColor="#444444"
android:gravity="left"
/>
</LinearLayout>
</LinearLayout>
This design would've been easier to implement with RelativeLayout but never the less you could use negative margin on your TextView to position it correctly.
android:layoutMarginTop="-10dp"
Try
android:paddingBottom="30dip"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="#+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#ffffff"
android:gravity="center_vertical"
android:orientation="horizontal" >
<ImageView
android:id="#+id/facebook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingLeft="10dip"
android:src="#drawable/facebook" />
<TextView
android:id="#+id/list"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeight"
android:paddingLeft="10dip"
android:text="Facebook"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#444444"
android:textSize="20sp" />
<ImageView
android:id="#+id/facebook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:paddingRight="15dip"
android:src="#drawable/ok" />
</LinearLayout>
<TextView android:id="#+id/tokentextfacebook"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="#id/facebook"
android:textSize="14sp"
android:paddingLeft="10dip"
android:background="#ffffff"
android:text="Your token is run out. Please reconnect"
android:paddingBottom="30dip"
android:textColor="#444444"
android:gravity="left"
/>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="#android:color/darker_gray"/>
<LinearLayout
android:id="#+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#ffffff"
android:orientation="horizontal">
<ImageView
android:id="#+id/facebook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingLeft="10dip"
android:src="#drawable/twitter" />
<TextView
android:id="#+id/list"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeight"
android:paddingLeft="10dip"
android:text="Twitter"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#4a82ae"
android:textSize="20sp" />
<ImageView
android:id="#+id/twitter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:paddingRight="15dip"
android:src="#drawable/ok" />
</LinearLayout>
<TextView android:id="#+id/tokentexttwitter"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="#id/facebook"
android:textSize="14sp"
android:paddingLeft="10dip"
android:background="#ffffff"
android:text="Your token is run out. Please reconnect"
android:textColor="#444444"
android:paddingBottom="30dip"
android:gravity="left"
/>
</LinearLayout>
</LinearLayout>
Probelm iw with your min height criteria at wrong place, use this layout just modifed.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:orientation="vertical" >
<LinearLayout
android:id="#+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#ffffff"
android:gravity="center_vertical"
android:orientation="horizontal" >
<ImageView
android:id="#+id/facebook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingLeft="10dip"
android:src="#drawable/facebook" />
<TextView
android:id="#+id/list"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:gravity="center_vertical"
android:paddingLeft="10dip"
android:text="Facebook"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#444444"
android:textSize="20sp" />
<ImageView
android:id="#+id/facebook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:paddingRight="15dip"
android:src="#drawable/ok" />
</LinearLayout>
<TextView
android:id="#+id/tokentextfacebook"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="#id/facebook"
android:layout_gravity="top"
android:background="#ffffff"
android:gravity="left"
android:paddingLeft="10dip"
android:text="Your token is run out. Please reconnect"
android:textColor="#444444"
android:textSize="14sp" />
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="#android:color/darker_gray" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:orientation="vertical" >
<LinearLayout
android:id="#+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#ffffff"
android:orientation="horizontal" >
<ImageView
android:id="#+id/facebook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingLeft="10dip"
android:src="#drawable/twitter" />
<TextView
android:id="#+id/list"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:gravity="center_vertical"
android:paddingLeft="10dip"
android:text="Twitter"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#4a82ae"
android:textSize="20sp" />
<ImageView
android:id="#+id/twitter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:paddingRight="15dip"
android:src="#drawable/ok" />
</LinearLayout>
<TextView
android:id="#+id/tokentexttwitter"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="#id/facebook"
android:background="#ffffff"
android:gravity="left"
android:paddingLeft="10dip"
android:text="Your token is run out. Please reconnect"
android:textColor="#444444"
android:textSize="14sp" />
</LinearLayout>
</LinearLayout>

How to make one part of view (relativelayout) scroll, but another part not move?

I have a RelativeLayout that is a detail page for search results. It displays a bunch of different TextViews, has a table or two, and also holds a SupportMapFragment. I want that portion to be scrollable. I also have a LinearLayout that holds an EditText and a Button at the bottom of the view that should always be visible at the bottom. It's small, maybe an 1/8th of the total view height, and I just want it to always stay there.
I tried to wrap the layout I want scrolling in a ScrollView, leave the other layout out of that, and then wrap the whole thing in a RelativeLayout. The yields a scrollbar, but it doesn't move more than just a tiny, tiny bit, and when it does, there is a little black space revealed where the SupportMapFragment moves from.
How can I set up my layouts to scroll the portion I want scrolling, and leave the other portion alone? Do I need to convert this whole activity to a FragmentActivity?
The layout file I'm wrangling is here:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/detailFragment"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#D0E4F7"
android:paddingBottom="5dp"
android:paddingLeft="12dp"
android:paddingRight="12dp" >
<ScrollView
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_above="#+id/tagVenue"
android:layout_alignParentTop="true"
android:layout_marginBottom="5dp">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#D0E4F7"
android:paddingBottom="5dp"
android:paddingLeft="1dp"
android:paddingRight="1dp" >
<TextView
android:id="#+id/vName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginTop="10dp"
android:text="Fore Street Bar and Grill"
android:textIsSelectable="true"
android:textStyle="bold" />
<TextView
android:id="#+id/vAddress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/vName"
android:layout_marginTop="5dp"
android:textIsSelectable="true"
android:text="105 Congress St. \nPortland, ME 04055"/>
<TextView
android:id="#+id/vPhone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/vAddress"
android:textIsSelectable="true"
android:layout_marginTop="5dp"
android:text="207-555-1111"/>
<TextView
android:id="#+id/vWeb"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/vPhone"
android:textIsSelectable="true"
android:layout_marginTop="5dp"
android:text="www.xyz.com"/>
<TextView
android:id="#+id/vDistance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="false"
android:layout_alignParentRight="true"
android:layout_below="#+id/map"
android:layout_marginRight="5dp"
android:layout_marginTop="5dp"
android:text="100 meters away"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vCuisine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/vWeb"
android:textIsSelectable="true"
android:layout_marginTop="5dp"
android:text="American, Fusion"/>
<TextView
android:id="#+id/vHours"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/vRating"
android:layout_centerHorizontal="true"
android:layout_marginTop="3dp"
android:text="Hours: 10:00 - 22:00 Currently open!"
android:textIsSelectable="true"
android:textStyle="bold" />
<TextView
android:id="#+id/vRating"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/vCuisine"
android:textIsSelectable="true"
android:text="5 Stars"/>
<View
android:id="#+id/dividing_line"
android:layout_height="1dp"
android:layout_width="fill_parent"
android:background="#000000"
android:layout_below="#+id/vHours"
android:layout_marginTop="5dp"/>
<!-- SupportMapFragment -->
<fragment
android:id="#+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="120dip"
android:layout_height="120dip"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginTop="5dp" />
<TableLayout
android:id="#+id/table1"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_below="#+id/dividing_line"
android:layout_marginTop="5dp">
<TableRow
android:id="#+id/tableRow1a"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:weightSum="2">
<TextView
android:id="#+id/vtext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_weight=".7"
android:text="text"
android:textIsSelectable="true"
android:textSize="18dp"
android:textStyle="bold" />
<TextView
android:id="#+id/text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_weight="1.3"
android:text="93/100"
android:textIsSelectable="true"
android:textSize="20dp"
android:textStyle="bold" />
</TableRow>
</TableLayout>
<TableLayout
android:id="#+id/table2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="#+id/table1"
android:layout_marginTop="5dp" >
<TableRow
android:id="#+id/tableRow1b"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="#+id/text3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true"
android:textStyle="bold" />
</TableRow>
<TableRow
android:id="#+id/tableRow3b"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="#+id/text4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vTag1Mag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
</TableRow>
<TableRow
android:id="#+id/tableRow4b"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="#+id/vtext2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vTag2Mag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
</TableRow>
<TableRow
android:id="#+id/tableRow5b"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="#+id/vtext3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vTag3Mag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
</TableRow>
<TableRow
android:id="#+id/tableRow6b"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="#+id/vtext4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vTag4Mag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
</TableRow>
<TableRow
android:id="#+id/tableRow7b"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="#+id/vtext5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vTag5Mag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
</TableRow>
<TableRow
android:id="#+id/tableRow8b"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="#+id/vtext6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vTag6Mag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
</TableRow>
</TableLayout>
</RelativeLayout>
</ScrollView>
<RelativeLayout
android:id="#+id/textdlfka"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_below="#+id/detailFragment" >
<EditText
android:id="#+id/text7"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="#+id/Button01"
android:hint="#string/search" >
</EditText>
<Button
android:id="#+id/Button01"
android:layout_width="wrap_content"
android:layout_height="40dip"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:text="#string/search" >
</Button>
</RelativeLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/detailFragment"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#D0E4F7"
android:paddingBottom="5dp"
android:paddingLeft="12dp"
android:paddingRight="12dp" >
<ScrollView
android:id="#+id/scrollview"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_above="#+id/textdlfka"
android:layout_alignParentTop="true"
android:layout_marginBottom="5dp" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#D0E4F7"
android:paddingBottom="5dp"
android:paddingLeft="1dp"
android:paddingRight="1dp" >
<TextView
android:id="#+id/vName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginTop="10dp"
android:text="Fore Street Bar and Grill"
android:textIsSelectable="true"
android:textStyle="bold" />
<TextView
android:id="#+id/vAddress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/vName"
android:layout_marginTop="5dp"
android:text="105 Congress St. \nPortland, ME 04055"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vPhone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/vAddress"
android:layout_marginTop="5dp"
android:text="207-555-1111"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vWeb"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/vPhone"
android:layout_marginTop="5dp"
android:text="www.xyz.com"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vDistance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="false"
android:layout_alignParentRight="true"
android:layout_below="#+id/map"
android:layout_marginRight="5dp"
android:layout_marginTop="5dp"
android:text="100 meters away"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vCuisine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/vWeb"
android:layout_marginTop="5dp"
android:text="American, Fusion"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vHours"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/vRating"
android:layout_centerHorizontal="true"
android:layout_marginTop="3dp"
android:text="Hours: 10:00 - 22:00 Currently open!"
android:textIsSelectable="true"
android:textStyle="bold" />
<TextView
android:id="#+id/vRating"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/vCuisine"
android:text="5 Stars"
android:textIsSelectable="true" />
<View
android:id="#+id/dividing_line"
android:layout_width="fill_parent"
android:layout_height="1dp"
android:layout_below="#+id/vHours"
android:layout_marginTop="5dp"
android:background="#000000" />
<!-- SupportMapFragment -->
<fragment
android:id="#+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="120dip"
android:layout_height="120dip"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginTop="5dp" />
<TableLayout
android:id="#+id/table1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="#+id/dividing_line"
android:layout_marginTop="5dp" >
<TableRow
android:id="#+id/tableRow1a"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:weightSum="2" >
<TextView
android:id="#+id/vtext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_weight=".7"
android:text="text"
android:textIsSelectable="true"
android:textSize="18dp"
android:textStyle="bold" />
<TextView
android:id="#+id/text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_weight="1.3"
android:text="93/100"
android:textIsSelectable="true"
android:textSize="20dp"
android:textStyle="bold" />
</TableRow>
</TableLayout>
<TableLayout
android:id="#+id/table2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="#+id/table1"
android:layout_marginTop="5dp" >
<TableRow
android:id="#+id/tableRow1b"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="#+id/text3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true"
android:textStyle="bold" />
</TableRow>
<TableRow
android:id="#+id/tableRow3b"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="#+id/text4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vTag1Mag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
</TableRow>
<TableRow
android:id="#+id/tableRow4b"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="#+id/vtext2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vTag2Mag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
</TableRow>
<TableRow
android:id="#+id/tableRow5b"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="#+id/vtext3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vTag3Mag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
</TableRow>
<TableRow
android:id="#+id/tableRow6b"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="#+id/vtext4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vTag4Mag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
</TableRow>
<TableRow
android:id="#+id/tableRow7b"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="#+id/vtext5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vTag5Mag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
</TableRow>
<TableRow
android:id="#+id/tableRow8b"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="#+id/vtext6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
<TextView
android:id="#+id/vTag6Mag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="text"
android:textIsSelectable="true" />
</TableRow>
</TableLayout>
</RelativeLayout>
</ScrollView>
<RelativeLayout
android:id="#+id/textdlfka"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#id/scrollview" >
<EditText
android:id="#+id/text7"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="#+id/Button01"
android:hint="#string/search" >
</EditText>
<Button
android:id="#+id/Button01"
android:layout_width="wrap_content"
android:layout_height="40dip"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:text="#string/search" >
</Button>
</RelativeLayout>
</RelativeLayout>

Categories

Resources