OSDN Git Service

縦用のレイアウトファイルを追加登録。(画像一覧、画像詳細画面用。)
authorMRSa <mrsa@myad.jp>
Sat, 4 Aug 2018 15:41:08 +0000 (00:41 +0900)
committerMRSa <mrsa@myad.jp>
Sat, 4 Aug 2018 15:41:08 +0000 (00:41 +0900)
app/src/main/res/layout/fragment_image_grid_view.xml [new file with mode: 0644]
app/src/main/res/layout/fragment_image_pager_view.xml [new file with mode: 0644]
app/src/main/res/layout/view_grid_cell.xml [new file with mode: 0644]
app/src/main/res/layout/view_image_page.xml [new file with mode: 0644]

diff --git a/app/src/main/res/layout/fragment_image_grid_view.xml b/app/src/main/res/layout/fragment_image_grid_view.xml
new file mode 100644 (file)
index 0000000..427f406
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content"
+    android:orientation="vertical"
+    tools:ignore="HardcodedText" >
+
+    <GridView
+        android:id="@+id/gridView1"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:columnWidth="80dp"
+        android:horizontalSpacing="2dp"
+        android:numColumns="auto_fit"
+        android:verticalSpacing="2dp" >
+    </GridView>
+
+    <ProgressBar
+        android:id="@+id/progress_bar"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_gravity="center"
+        android:visibility="gone"
+        />
+</LinearLayout>
diff --git a/app/src/main/res/layout/fragment_image_pager_view.xml b/app/src/main/res/layout/fragment_image_pager_view.xml
new file mode 100644 (file)
index 0000000..9e8a2c9
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent" >
+    
+    <net.osdn.gokigen.gr2control.playback.ScalableImagePager
+        android:id="@+id/viewPager1"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent" />
+    
+</RelativeLayout>
diff --git a/app/src/main/res/layout/view_grid_cell.xml b/app/src/main/res/layout/view_grid_cell.xml
new file mode 100644 (file)
index 0000000..a82d8ff
--- /dev/null
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:gravity="center" >
+
+    <ImageView
+        android:id="@+id/imageViewY"
+        android:layout_width="80dp"
+        android:layout_height="80dp"
+        android:src="@null"
+        android:scaleType="centerCrop"
+        tools:ignore="ContentDescription" />
+
+    <ImageView
+        android:id="@+id/imageViewZ"
+        android:layout_width="16dp"
+        android:layout_height="16dp"
+        android:layout_alignParentBottom="true"
+        android:layout_alignParentLeft="true"
+        android:layout_alignParentStart="true"
+        android:layout_marginLeft="4dp"
+        android:layout_marginStart="2dp"
+        android:layout_marginBottom="2dp"
+        android:scaleType="centerCrop"
+        android:src="@null"
+        tools:ignore="ContentDescription" />
+</RelativeLayout>
\ No newline at end of file
diff --git a/app/src/main/res/layout/view_image_page.xml b/app/src/main/res/layout/view_image_page.xml
new file mode 100644 (file)
index 0000000..5bf556b
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<view xmlns:android="http://schemas.android.com/apk/res/android"
+    class="net.osdn.gokigen.gr2control.playback.detail.ScalableImageView"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent" />