Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pvankouteren/8d7405de17e7157855c49cb23f109899 to your computer and use it in GitHub Desktop.
Save pvankouteren/8d7405de17e7157855c49cb23f109899 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/screen_about_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<RelativeLayout
android:id="@+id/screen_title_bar"
android:layout_width="fill_parent"
android:layout_height="60px"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:background="@drawable/title_bar"
>
<TextView
android:id="@+id/screen_top_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/screen_more_title"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:textSize="18sp"
android:textColor="@color/white"
android:paddingLeft="10px"
>
</TextView>
<ImageButton
android:id="@+id/screen_top_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/icon_info"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:paddingRight="10px"
android:background="@null"
>
</ImageButton>
</RelativeLayout>
<!-- Set height to 0, and let the weight param expand it -->
<!-- Note the use of the default ID! This lets us use a
ListActivity still! -->
<ListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1"
/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment