add OI File Manager and AndroidSupportV2 used by it
[android_pandora.git] / apps / oi-filemanager / FileManagerDemo / res / layout / main.xml
diff --git a/apps/oi-filemanager/FileManagerDemo/res/layout/main.xml b/apps/oi-filemanager/FileManagerDemo/res/layout/main.xml
new file mode 100644 (file)
index 0000000..3b3be8e
--- /dev/null
@@ -0,0 +1,66 @@
+<?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"
+    >
+<TextView  
+    android:layout_width="fill_parent" 
+    android:layout_height="wrap_content" 
+    android:text="@string/file_name"\r
+       android:textAppearance="?android:attr/textAppearanceMedium"\r
+    android:layout_marginTop="10dip"\r
+    android:layout_marginLeft="10dip"
+    />\r
+    <LinearLayout android:orientation="horizontal"\r
+           android:layout_width="fill_parent"\r
+           android:layout_height="wrap_content"\r
+           >\r
+           <EditText android:id="@+id/file_path"\r
+                   android:layout_width="0dip" \r
+                   android:layout_height="wrap_content" \r
+                   android:layout_weight="1"/>\r
+               <ImageButton android:id="@+id/file_manager"
+                       android:onClick="onClickOpenFile"\r
+                       android:src="@drawable/ic_launcher_folder_small"\r
+               android:layout_width="wrap_content"\r
+               android:layout_height="wrap_content" />\r
+       </LinearLayout>\r
+       
+       <TextView android:id="@+id/info"
+           android:layout_width="fill_parent" 
+           android:layout_height="wrap_content" 
+           android:layout_marginTop="10dip"
+           android:layout_marginLeft="10dip" />
+           \r
+       <Button android:id="@+id/open"
+               android:onClick="onClickOpenFile"\r
+               android:text="@string/open_button"\r
+               android:layout_width="fill_parent"\r
+               android:layout_height="wrap_content"\r
+               android:layout_marginTop="10dip" />\r
+               \r
+       <Button android:id="@+id/save"
+               android:onClick="onClickSaveFile"\r
+               android:text="@string/save_button"\r
+               android:layout_width="fill_parent"\r
+               android:layout_height="wrap_content" />\r
+               \r
+       <Button android:id="@+id/pick_directory"
+               android:onClick="onClickPickDirectory"\r
+               android:text="@string/pick_directory_title"\r
+               android:layout_width="fill_parent"\r
+               android:layout_height="wrap_content" />\r
+               
+       <Button android:id="@+id/get_content"
+               android:onClick="onClickGetContent"
+               android:text="@string/get_content_title"
+               android:layout_width="fill_parent"
+               android:layout_height="wrap_content" />
+               
+       <Button android:id="@+id/open_uri"
+               android:onClick="onClickOpenUri"
+               android:text="@string/open_uri_button"
+               android:layout_width="fill_parent"
+               android:layout_height="wrap_content" />
+</LinearLayout>