diff options
Diffstat (limited to 'app/src/main/res/layout')
-rwxr-xr-x | app/src/main/res/layout/activity_main.xml | 24 | ||||
-rw-r--r-- | app/src/main/res/layout/activity_view_comic.xml | 13 | ||||
-rw-r--r-- | app/src/main/res/layout/chooser_list.xml | 33 | ||||
-rwxr-xr-x | app/src/main/res/layout/comics_grid_row.xml | 67 | ||||
-rw-r--r-- | app/src/main/res/layout/dialog_location.xml | 14 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_comic.xml | 20 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_comics_list.xml | 34 | ||||
-rwxr-xr-x | app/src/main/res/layout/fragment_comics_pager.xml | 50 | ||||
-rw-r--r-- | app/src/main/res/layout/list_item.xml | 7 |
9 files changed, 262 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100755 index 0000000..0a6ecd0 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,24 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/FrameLayout1" + android:fitsSystemWindows="true" + android:orientation="vertical" + android:layout_width="match_parent" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_height="match_parent"> + + <it.neokree.materialtabs.MaterialTabHost + android:id="@+id/materialTabHost" + android:layout_width="match_parent" + android:layout_height="48dp" + app:textColor="#FFFFFF" + app:primaryColor="#FF6F00" + app:accentColor="#F8CE00" /> + + <FrameLayout + android:id="@+id/comics_list" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + </FrameLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/activity_view_comic.xml b/app/src/main/res/layout/activity_view_comic.xml new file mode 100644 index 0000000..8016730 --- /dev/null +++ b/app/src/main/res/layout/activity_view_comic.xml @@ -0,0 +1,13 @@ +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/FrameLayout2" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <FrameLayout + android:id="@+id/comics_pager_container" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + </FrameLayout> + +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/chooser_list.xml b/app/src/main/res/layout/chooser_list.xml new file mode 100644 index 0000000..4200bc9 --- /dev/null +++ b/app/src/main/res/layout/chooser_list.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <ListView + android:id="@android:id/list" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1" /> + + <LinearLayout + android:id="@+id/linearLayout2" + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + + <Button + android:id="@+id/btnParent" + android:layout_width="fill_parent" + android:layout_weight="1" + android:layout_height="wrap_content" + android:text="@string/open_parent" /> + + <Button + android:id="@+id/btnChoose" + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/choose" /> + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/comics_grid_row.xml b/app/src/main/res/layout/comics_grid_row.xml new file mode 100755 index 0000000..10f1ed4 --- /dev/null +++ b/app/src/main/res/layout/comics_grid_row.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.v7.widget.CardView + xmlns:card_view="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/comics_list_row" + android:layout_width="160dp" + android:layout_height="210dp" + android:gravity="center_vertical" + card_view:cardUseCompatPadding="true" + card_view:cardElevation="2dp" + tools:ignore="HardcodedText" > + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center_horizontal" + android:layout_weight="0" + android:padding="0dp" > + + <ImageView + android:layout_width="match_parent" + android:layout_height="200dp" + android:id="@+id/thumbnail" + android:scaleType="centerCrop" + android:src="@drawable/badimage" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="bottom|center_horizontal" + android:gravity="center_horizontal|bottom" + android:background="@drawable/comic_grid_footer" + android:padding="4dp" + android:orientation="vertical" > + + <TextView + android:id="@+id/file_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:ellipsize="middle" + android:singleLine="true" + android:text="Comic_1980.cbz" + android:textColor="@android:color/primary_text_dark" + android:textSize="11sp" /> + + <ProgressBar + android:id="@+id/file_progress_bar" + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="96dp" + android:layout_height="wrap_content" + android:layout_weight="1" /> + + <TextView + android:id="@+id/file_progress_info" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="@android:color/primary_text_dark" + android:layout_weight="0" + android:gravity="right" + android:text="12 of 325" + android:textSize="8sp" /> + </LinearLayout> + + </FrameLayout> + </android.support.v7.widget.CardView>
\ No newline at end of file diff --git a/app/src/main/res/layout/dialog_location.xml b/app/src/main/res/layout/dialog_location.xml new file mode 100644 index 0000000..4b946d3 --- /dev/null +++ b/app/src/main/res/layout/dialog_location.xml @@ -0,0 +1,14 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/linearLayout1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" > + + + + <NumberPicker + android:id="@+id/number_picker" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_comic.xml b/app/src/main/res/layout/fragment_comic.xml new file mode 100644 index 0000000..59103d4 --- /dev/null +++ b/app/src/main/res/layout/fragment_comic.xml @@ -0,0 +1,20 @@ +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/FrameLayout3" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + + <it.sephiroth.android.library.imagezoom.ImageViewTouch + android:id="@+id/comic_image" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + + <!-- <TextView + android:id="@+id/comic_page" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom|right" + android:layout_margin="4dp" + android:alpha="0.25" + android:text="25" /> --> + +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_comics_list.xml b/app/src/main/res/layout/fragment_comics_list.xml new file mode 100644 index 0000000..5037747 --- /dev/null +++ b/app/src/main/res/layout/fragment_comics_list.xml @@ -0,0 +1,34 @@ +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/FrameLayout4" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + + <android.support.v4.widget.SwipeRefreshLayout + android:id="@+id/comics_swipe_container" + android:layout_width="match_parent" + android:layout_height="match_parent" > + <GridView + android:id="@+id/comics_grid" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:columnWidth="160dp" + android:numColumns="auto_fit" > + </GridView> + </android.support.v4.widget.SwipeRefreshLayout> + + <LinearLayout + android:id="@+id/no_comics" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center" + android:orientation="vertical" > + + <TextView + android:id="@+id/textView1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:text="@string/error_no_comic_archives_found_" /> + </LinearLayout> + +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_comics_pager.xml b/app/src/main/res/layout/fragment_comics_pager.xml new file mode 100755 index 0000000..fa5ebef --- /dev/null +++ b/app/src/main/res/layout/fragment_comics_pager.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" +android:id="@+id/comics_pager_container" +android:layout_width="fill_parent" +android:layout_height="fill_parent" > + + <org.fox.ttcomics2.ViewPager + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:id="@+id/comics_pager" + android:layout_above="@+id/comics_seek_bar" /> + + <SeekBar + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/comics_seek_bar" + android:layout_alignParentBottom="true" + android:layout_toRightOf="@+id/comics_page" + android:layout_toLeftOf="@+id/comics_total_pages" + android:layout_toStartOf="@+id/comics_total_pages" /> + + <TextView + android:layout_width="60dp" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="1123" + android:id="@+id/comics_total_pages" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" + android:singleLine="true" + android:layout_alignTop="@+id/comics_seek_bar" + android:gravity="center" /> + + <TextView + android:layout_width="60dp" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="1" + android:id="@+id/comics_page" + android:singleLine="true" + android:gravity="center" + android:layout_below="@+id/comics_pager" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_alignParentBottom="true" /> + + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/list_item.xml b/app/src/main/res/layout/list_item.xml new file mode 100644 index 0000000..f0958d6 --- /dev/null +++ b/app/src/main/res/layout/list_item.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:padding="10dp" + android:textSize="16sp" > +</TextView>
\ No newline at end of file |