aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-07-26 02:50:32 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-07-26 02:50:32 +0000
commit1fc84239069fa19da7f7c7b0b0825717aad4999c (patch)
tree92b11e3f9e7f6839ae931700b1f13314e67a20d8 /app/src/main/res/layout
parent66ed3d8f1670c56b7a8b8de78fbf99686dc5d6a1 (diff)
downloadinfinity-for-reddit-1fc84239069fa19da7f7c7b0b0825717aad4999c.tar
infinity-for-reddit-1fc84239069fa19da7f7c7b0b0825717aad4999c.tar.gz
infinity-for-reddit-1fc84239069fa19da7f7c7b0b0825717aad4999c.tar.bz2
infinity-for-reddit-1fc84239069fa19da7f7c7b0b0825717aad4999c.tar.lz
infinity-for-reddit-1fc84239069fa19da7f7c7b0b0825717aad4999c.tar.xz
infinity-for-reddit-1fc84239069fa19da7f7c7b0b0825717aad4999c.tar.zst
infinity-for-reddit-1fc84239069fa19da7f7c7b0b0825717aad4999c.zip
Sorting posts is now available. Minor bugs fixed.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_post_video.xml8
-rw-r--r--app/src/main/res/layout/fragment_sort_type_bottom_sheet.xml97
-rw-r--r--app/src/main/res/layout/sort_type_bottom_sheet.xml97
3 files changed, 197 insertions, 5 deletions
diff --git a/app/src/main/res/layout/activity_post_video.xml b/app/src/main/res/layout/activity_post_video.xml
index f0df4eea..d1c3ed58 100644
--- a/app/src/main/res/layout/activity_post_video.xml
+++ b/app/src/main/res/layout/activity_post_video.xml
@@ -166,13 +166,11 @@
android:textColor="@color/colorAccent"
android:visibility="gone" />
- <ImageView
- android:id="@+id/image_view_post_video_activity"
+ <VideoView
+ android:id="@+id/video_view_post_video_activity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:scaleType="fitStart"
- android:adjustViewBounds="true"
- android:visibility="gone" />
+ android:visibility="gone"/>
</LinearLayout>
diff --git a/app/src/main/res/layout/fragment_sort_type_bottom_sheet.xml b/app/src/main/res/layout/fragment_sort_type_bottom_sheet.xml
new file mode 100644
index 00000000..bdf38858
--- /dev/null
+++ b/app/src/main/res/layout/fragment_sort_type_bottom_sheet.xml
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical" android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="16dp"
+ android:text="@string/sort"
+ android:textSize="18sp" />
+
+ <TextView
+ android:id="@+id/best_type_text_view_sort_type_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sort_best"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="18sp"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/hot_type_text_view_sort_type_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sort_hot"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="18sp"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/new_type_text_view_sort_type_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sort_new"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="18sp"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/random_type_text_view_sort_type_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sort_random"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="18sp"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/rising_type_text_view_sort_type_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sort_rising"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="18sp"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/top_type_text_view_sort_type_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sort_top"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="18sp"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/controversial_type_text_view_sort_type_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sort_rising"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="18sp"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/sort_type_bottom_sheet.xml b/app/src/main/res/layout/sort_type_bottom_sheet.xml
new file mode 100644
index 00000000..5951b431
--- /dev/null
+++ b/app/src/main/res/layout/sort_type_bottom_sheet.xml
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical" android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="16dp"
+ android:text="@string/sort"
+ android:textSize="18sp" />
+
+ <TextView
+ android:id="@+id/best_type_text_view_sort_type_bottom_sheet"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sort_best"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="18sp"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/hot_type_text_view_sort_type_bottom_sheet"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sort_hot"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="18sp"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/new_type_text_view_sort_type_bottom_sheet"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sort_new"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="18sp"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/random_type_text_view_sort_type_bottom_sheet"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sort_random"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="18sp"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/rising_type_text_view_sort_type_bottom_sheet"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sort_rising"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="18sp"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/top_type_text_view_sort_type_bottom_sheet"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sort_top"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="18sp"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/controversial_type_text_view_sort_type_bottom_sheet"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sort_rising"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="18sp"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+</LinearLayout> \ No newline at end of file