diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/pager_fragment.xml | 20 | ||||
-rw-r--r-- | app/src/main/res/layout/pager_item.xml | 18 | ||||
-rw-r--r-- | app/src/main/res/menu/activity_main_drawer.xml | 4 | ||||
-rw-r--r-- | app/src/main/res/navigation/nav_graph.xml | 12 |
4 files changed, 50 insertions, 4 deletions
diff --git a/app/src/main/res/layout/pager_fragment.xml b/app/src/main/res/layout/pager_fragment.xml new file mode 100644 index 0000000..756b29a --- /dev/null +++ b/app/src/main/res/layout/pager_fragment.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/gallery_fragment"> + <androidx.viewpager2.widget.ViewPager2 + android:id="@+id/image_pager" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + + /> + +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/pager_item.xml b/app/src/main/res/layout/pager_item.xml new file mode 100644 index 0000000..d948c64 --- /dev/null +++ b/app/src/main/res/layout/pager_item.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/pager_item" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <TextView + android:id="@+id/pager_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/pager_image" + android:textSize="20dp"/> + <com.android.volley.toolbox.NetworkImageView + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/pager_image" + android:layout_width="match_parent" + android:layout_height="match_parent"/> + +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/menu/activity_main_drawer.xml b/app/src/main/res/menu/activity_main_drawer.xml index 5c09517..c2ebab8 100644 --- a/app/src/main/res/menu/activity_main_drawer.xml +++ b/app/src/main/res/menu/activity_main_drawer.xml @@ -13,9 +13,9 @@ android:icon="@drawable/ic_menu_gallery" android:title="Gallery"/> <item - android:id="@+id/nav_settings" + android:id="@+id/pager_fragment" android:icon="@drawable/ic_menu_manage" - android:title="Settings"/> + android:title="Pager"/> </group> <item android:title="Communicate"> diff --git a/app/src/main/res/navigation/nav_graph.xml b/app/src/main/res/navigation/nav_graph.xml index 77eca0e..e449c97 100644 --- a/app/src/main/res/navigation/nav_graph.xml +++ b/app/src/main/res/navigation/nav_graph.xml @@ -8,7 +8,7 @@ <fragment android:id="@+id/list_fragment" android:name="uk.co.blatech.blaupload3.view.ListFragment" - android:label="List Fragment" + android:label="Blaupload List" tools:layout="@layout/list_fragment"> <action android:id="@+id/action_list_fragment_to_gallery_fragment" @@ -18,11 +18,19 @@ <fragment android:id="@+id/gallery_fragment" android:name="uk.co.blatech.blaupload3.view.GalleryFragment" - android:label="Gallery Fragment" + android:label="Blaupload Gallery" tools:layout="@layout/gallery_fragment"> <action android:id="@+id/action_gallery_fragment_to_list_fragment" app:destination="@id/gallery_fragment" /> </fragment> + + <fragment + android:id="@+id/pager_fragment" + android:name="uk.co.blatech.blaupload3.view.PagerFragment" + android:label="Blaupload Pager" + tools:layout="@layout/pager_fragment"> + + </fragment> </navigation>
\ No newline at end of file |