Skip to content

Instantly share code, notes, and snippets.

@mahmoudhossam
Created November 13, 2011 18:34
Show Gist options
  • Save mahmoudhossam/1362460 to your computer and use it in GitHub Desktop.
Save mahmoudhossam/1362460 to your computer and use it in GitHub Desktop.
Simple file manager layout.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/RelativeLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/tvLocation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/btnGoUp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_toLeftOf="@+id/btnGoUp"
android:layout_weight="8"
android:background="#3a7ca6"
android:padding="10dip"
android:text="Try This Out"
android:textColor="#ffffff"
android:textSize="15dip"
android:textStyle="bold"
android:typeface="monospace" />
<ImageButton
android:id="@+id/btnGoUp"
android:layout_width="50dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_weight="2"
android:onClick="onUp"
android:src="@drawable/go_up" />
<ListView
android:id="@+id/lvFiles"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/btnGoUp" >
</ListView>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment