mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 02:09:35 +02:00
added android-filechooser library
This commit is contained in:
parent
03f3e765b8
commit
a26d373a74
239 changed files with 7305 additions and 0 deletions
12
third-party/android-filechooser/code/res/layout/afc_button_location.xml
vendored
Executable file
12
third-party/android-filechooser/code/res/layout/afc_button_location.xml
vendored
Executable file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (c) 2012 Hai Bison
|
||||
|
||||
See the file LICENSE at the root directory of this project for copying
|
||||
permission.
|
||||
-->
|
||||
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
style="@style/afc_button_location" >
|
||||
|
||||
</TextView>
|
15
third-party/android-filechooser/code/res/layout/afc_context_menu_tiem.xml
vendored
Executable file
15
third-party/android-filechooser/code/res/layout/afc_context_menu_tiem.xml
vendored
Executable file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (c) 2012 Hai Bison
|
||||
|
||||
See the file LICENSE at the root directory of this project for copying
|
||||
permission.
|
||||
-->
|
||||
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="@dimen/afc_5dp"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" >
|
||||
|
||||
</TextView>
|
21
third-party/android-filechooser/code/res/layout/afc_context_menu_view.xml
vendored
Executable file
21
third-party/android-filechooser/code/res/layout/afc_context_menu_view.xml
vendored
Executable file
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (c) 2012 Hai Bison
|
||||
|
||||
See the file LICENSE at the root directory of this project for copying
|
||||
permission.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<ListView
|
||||
android:id="@+id/afc_context_menu_view_listview_menu"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:divider="@drawable/afc_context_menu_item_divider" >
|
||||
</ListView>
|
||||
|
||||
</LinearLayout>
|
152
third-party/android-filechooser/code/res/layout/afc_file_chooser.xml
vendored
Executable file
152
third-party/android-filechooser/code/res/layout/afc_file_chooser.xml
vendored
Executable file
|
@ -0,0 +1,152 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (c) 2012 Hai Bison
|
||||
|
||||
See the file LICENSE at the root directory of this project for copying
|
||||
permission.
|
||||
-->
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/afc_filechooser_activity_viewgroup_header"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/afc_filechooser_activity_button_go_back"
|
||||
style="@style/afc_button_navi_left"
|
||||
android:layout_alignParentLeft="true" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/afc_filechooser_activity_button_go_forward"
|
||||
style="@style/afc_button_navi_right"
|
||||
android:layout_toRightOf="@id/afc_filechooser_activity_button_go_back" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/afc_filechooser_activity_viewgroup_button_locations"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="@dimen/afc_5dp"
|
||||
android:layout_marginTop="@dimen/afc_5dp"
|
||||
android:layout_toRightOf="@id/afc_filechooser_activity_button_go_forward" >
|
||||
|
||||
<HorizontalScrollView
|
||||
android:id="@+id/afc_filechooser_activity_view_locations_container"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true" >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/afc_filechooser_activity_view_locations"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:showDividers="middle" />
|
||||
</HorizontalScrollView>
|
||||
|
||||
<View
|
||||
android:id="@+id/afc_filechooser_activity_header_view_divider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/afc_viewgroup_button_locations_bottom_divider_height"
|
||||
android:layout_below="@id/afc_filechooser_activity_view_locations_container"
|
||||
android:background="@color/afc_border_line_dark" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/afc_filechooser_activity_textview_full_dir_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/afc_filechooser_activity_header_view_divider"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:ellipsize="start"
|
||||
android:gravity="center"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/afc_filechooser_activity_viewgroup_files"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_above="@+id/afc_filechooser_activity_viewgroup_footer_container"
|
||||
android:layout_below="@id/afc_filechooser_activity_viewgroup_header"
|
||||
android:layout_marginBottom="@dimen/afc_10dp"
|
||||
android:layout_marginTop="@dimen/afc_10dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/afc_filechooser_activity_view_files_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal" >
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/afc_filechooser_activity_view_files_footer_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="0.1"
|
||||
android:gravity="center"
|
||||
android:padding="@dimen/afc_10dp"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textStyle="italic"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/afc_filechooser_activity_viewgroup_footer_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone" >
|
||||
|
||||
<View
|
||||
android:id="@+id/afc_filechooser_activity_footer_view_divider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/afc_viewgroup_button_locations_bottom_divider_height" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/afc_filechooser_activity_viewgroup_footer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone" >
|
||||
|
||||
<EditText
|
||||
android:id="@+id/afc_filechooser_activity_textview_saveas_filename"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/afc_5dp"
|
||||
android:layout_weight="1"
|
||||
android:hint="@string/afc_hint_save_as_filename"
|
||||
android:imeOptions="actionDone"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:visibility="gone" >
|
||||
|
||||
<requestFocus />
|
||||
</EditText>
|
||||
|
||||
<Button
|
||||
android:id="@+id/afc_filechooser_activity_button_ok"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_margin="@dimen/afc_5dp"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
58
third-party/android-filechooser/code/res/layout/afc_file_item.xml
vendored
Executable file
58
third-party/android-filechooser/code/res/layout/afc_file_item.xml
vendored
Executable file
|
@ -0,0 +1,58 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (c) 2012 Hai Bison
|
||||
|
||||
See the file LICENSE at the root directory of this project for copying
|
||||
permission.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/afc_file_item_imageview_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal|top"
|
||||
android:layout_margin="@dimen/afc_5dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:maxHeight="@dimen/afc_thumbnail_size"
|
||||
android:maxWidth="@dimen/afc_thumbnail_size" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginRight="@dimen/afc_5dp"
|
||||
android:layout_weight="0.1"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/afc_file_item_textview_filename"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="middle"
|
||||
android:maxLines="3"
|
||||
android:singleLine="false"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/afc_file_item_textview_file_info"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right"
|
||||
android:ellipsize="end"
|
||||
android:gravity="right"
|
||||
android:singleLine="true" />
|
||||
</LinearLayout>
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/afc_file_item_checkbox_selection"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_horizontal|top"
|
||||
android:gravity="center_horizontal|top" />
|
||||
|
||||
</LinearLayout>
|
15
third-party/android-filechooser/code/res/layout/afc_gridview_files.xml
vendored
Executable file
15
third-party/android-filechooser/code/res/layout/afc_gridview_files.xml
vendored
Executable file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (c) 2012 Hai Bison
|
||||
|
||||
See the file LICENSE at the root directory of this project for copying
|
||||
permission.
|
||||
-->
|
||||
|
||||
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fastScrollEnabled="true"
|
||||
android:numColumns="auto_fit" >
|
||||
|
||||
</GridView>
|
14
third-party/android-filechooser/code/res/layout/afc_listview_files.xml
vendored
Executable file
14
third-party/android-filechooser/code/res/layout/afc_listview_files.xml
vendored
Executable file
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (c) 2012 Hai Bison
|
||||
|
||||
See the file LICENSE at the root directory of this project for copying
|
||||
permission.
|
||||
-->
|
||||
|
||||
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fastScrollEnabled="true" >
|
||||
|
||||
</ListView>
|
101
third-party/android-filechooser/code/res/layout/afc_settings_sort_view.xml
vendored
Executable file
101
third-party/android-filechooser/code/res/layout/afc_settings_sort_view.xml
vendored
Executable file
|
@ -0,0 +1,101 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (c) 2012 Hai Bison
|
||||
|
||||
See the file LICENSE at the root directory of this project for copying
|
||||
permission.
|
||||
-->
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<TableLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_gravity="center" >
|
||||
|
||||
<TableRow
|
||||
android:layout_marginLeft="@dimen/afc_10dp"
|
||||
android:layout_marginRight="@dimen/afc_10dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginRight="@dimen/afc_30dp"
|
||||
android:text="@string/afc_title_name"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/afc_settings_sort_view_button_sort_by_name_asc"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:drawableRight="@drawable/afc_ic_menu_sort_by_name_asc" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/afc_settings_sort_view_button_sort_by_name_desc"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:drawableRight="@drawable/afc_ic_menu_sort_by_name_desc" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
android:layout_marginLeft="@dimen/afc_10dp"
|
||||
android:layout_marginRight="@dimen/afc_10dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginRight="@dimen/afc_30dp"
|
||||
android:text="@string/afc_title_size"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/afc_settings_sort_view_button_sort_by_size_asc"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:drawableRight="@drawable/afc_ic_menu_sort_by_size_asc" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/afc_settings_sort_view_button_sort_by_size_desc"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:drawableRight="@drawable/afc_ic_menu_sort_by_size_desc" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
android:layout_marginLeft="@dimen/afc_10dp"
|
||||
android:layout_marginRight="@dimen/afc_10dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginRight="@dimen/afc_30dp"
|
||||
android:text="@string/afc_title_date"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/afc_settings_sort_view_button_sort_by_date_asc"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:drawableRight="@drawable/afc_ic_menu_sort_by_date_asc" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/afc_settings_sort_view_button_sort_by_date_desc"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:drawableRight="@drawable/afc_ic_menu_sort_by_date_desc" />
|
||||
</TableRow>
|
||||
</TableLayout>
|
||||
|
||||
</RelativeLayout>
|
23
third-party/android-filechooser/code/res/layout/afc_simple_text_input_view.xml
vendored
Executable file
23
third-party/android-filechooser/code/res/layout/afc_simple_text_input_view.xml
vendored
Executable file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (c) 2012 Hai Bison
|
||||
|
||||
See the file LICENSE at the root directory of this project for copying
|
||||
permission.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<EditText
|
||||
android:id="@+id/afc_simple_text_input_view_text1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/afc_5dp"
|
||||
android:imeOptions="actionDone"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
|
||||
</LinearLayout>
|
Loading…
Add table
Add a link
Reference in a new issue