Hi,
I am trying to find out why there is a portion of the screen that my layout does not reach.
If someone can see if there is something incorrect with my xml and point it out I would most appreciate it.
I have also attached a jpg showing the portion under the footer that is offsetting it. I really want this to bottom out so to speak.
I am trying to find out why there is a portion of the screen that my layout does not reach.
If someone can see if there is something incorrect with my xml and point it out I would most appreciate it.
I have also attached a jpg showing the portion under the footer that is offsetting it. I really want this to bottom out so to speak.
Code:
<?xml version="1.0" encoding="utf-8"?>
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="0dip"
android:layout_margin="0dip" >
<TableRow
android:padding="0dip"
android:layout_margin="0dip" >
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stretchColumns="*"
android:padding="0dip"
android:layout_margin="0dip"
android:layout_weight="1"
android:background="@drawable/toolbar_gradient" >
<TableRow
android:padding="0dip"
android:layout_margin="0dip" >
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:padding="0dip"
android:layout_margin="0dip"
android:layout_weight="1" >
<TableRow
android:padding="0dip"
android:layout_margin="0dip" >
<Button
style="@style/left_buttons"
android:id="@+id/imageButtonSettings"
android:background="@drawable/btn_settings" />
<Button
style="@style/middle_buttons"
android:id="@+id/imageButtonListView"
android:background="@drawable/btn_listview_pressed" />
<Button
style="@style/middle_buttons"
android:id="@+id/imageButtonMapView"
android:background="@drawable/btn_mapview" />
</TableRow>
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:padding="0dip"
android:layout_margin="0dip"
android:layout_weight="1" >
<TableRow
android:padding="0dip"
android:layout_margin="0dip" >
<Button
style="@style/middle_buttons"
android:id="@+id/imageIconGPS"
android:background="@drawable/icon_gps_off" />
</TableRow>
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:padding="0dip"
android:layout_margin="0dip"
android:layout_weight="1" >
<TableRow
android:padding="0dip"
android:layout_margin="0dip" >
<Button
style="@style/middle_buttons"
android:id="@+id/imageButtonSearch"
android:background="@drawable/btn_search" />
<Button
style="@style/right_buttons"
android:id="@+id/imageButtonAddPoint"
android:background="@drawable/btn_add_point"
android:enabled="false" />
</TableRow>
</TableLayout>
</TableRow>
</TableLayout>
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_margin="0dip"
android:padding="0dip" >
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_margin="0dip"
android:padding="0dip" >
<ListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@android:id/list"
android:layout_margin="0dip" />
<TextView
android:id="@android:id/empty"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="The ListView is empty"
android:visibility="invisible" />
</LinearLayout>
</TableRow>
<TableRow
android:layout_margin="0dip"
android:padding="0dip" >
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:padding="0dip"
android:layout_margin="0dip"
android:background="@drawable/footer_gradient" >
<TableRow
android:padding="0dip"
android:layout_margin="0dip" >
<TextView
android:id="@+id/textviewUsername"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:padding="0dip"
android:layout_marginTop="0dip"
android:layout_marginBottom="0dip"
android:layout_marginLeft="6dip"
android:layout_marginRight="0dip"
android:layout_weight="1"
android:text="Username"
android:textSize="12dip"
android:textColor="@color/black" />
<TextView
android:id="@+id/textviewLocationService"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:padding="0dip"
android:layout_marginTop="0dip"
android:layout_marginBottom="0dip"
android:layout_marginLeft="0dip"
android:layout_marginRight="6dip"
android:text="None : Service"
android:textSize="13dip"
android:textColor="@color/black" />
</TableRow>
<TableRow
android:padding="0dip"
android:layout_margin="0dip" >
<TextView
android:id="@+id/textviewOrganization"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:padding="0dip"
android:layout_marginTop="0dip"
android:layout_marginBottom="0dip"
android:layout_marginLeft="6dip"
android:layout_marginRight="0dip"
android:layout_weight="1"
android:text=""
android:textSize="12dip"
android:textColor="@color/black" />
<TextView
android:id="@+id/textviewLocationAccuracy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:padding="0dip"
android:layout_marginTop="0dip"
android:layout_marginBottom="0dip"
android:layout_marginLeft="0dip"
android:layout_marginRight="6dip"
android:text="N/A : Accuracy"
android:textSize="13dip"
android:textColor="@color/black" />
</TableRow>
</TableLayout>
</TableRow>
</TableLayout>