diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-07-05 14:38:28 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-07-05 14:38:28 +0000 |
commit | bd0068eb6c3bd14b86dc44788291c7cf9471af1b (patch) | |
tree | 63ee66b830b2b176b38a9f940a1d35ba77b13673 /app/src/main/res | |
parent | 09f05f3839eb4e06210047e611ba72726f9815eb (diff) | |
download | infinity-for-reddit-bd0068eb6c3bd14b86dc44788291c7cf9471af1b.tar infinity-for-reddit-bd0068eb6c3bd14b86dc44788291c7cf9471af1b.tar.gz infinity-for-reddit-bd0068eb6c3bd14b86dc44788291c7cf9471af1b.tar.bz2 infinity-for-reddit-bd0068eb6c3bd14b86dc44788291c7cf9471af1b.tar.lz infinity-for-reddit-bd0068eb6c3bd14b86dc44788291c7cf9471af1b.tar.xz infinity-for-reddit-bd0068eb6c3bd14b86dc44788291c7cf9471af1b.tar.zst infinity-for-reddit-bd0068eb6c3bd14b86dc44788291c7cf9471af1b.zip |
Start adding RPAN support.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/activity_rpanactivity.xml | 33 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_view_rpan_broadcast.xml | 22 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 4 |
3 files changed, 59 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_rpanactivity.xml b/app/src/main/res/layout/activity_rpanactivity.xml new file mode 100644 index 00000000..8d1c85fb --- /dev/null +++ b/app/src/main/res/layout/activity_rpanactivity.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="#000000" + android:id="@+id/coordinator_layout_rpan_activity" + tools:context=".activities.RPANActivity"> + + <com.google.android.material.appbar.AppBarLayout + android:id="@+id/appbar_layout_rpan_activity" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:theme="@style/AppTheme.AppBarOverlay"> + + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar_rpan_activity" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:minHeight="?attr/actionBarSize" + app:popupTheme="@style/AppTheme.PopupOverlay" + app:navigationIcon="?attr/homeAsUpIndicator" /> + + </com.google.android.material.appbar.AppBarLayout> + + <androidx.viewpager2.widget.ViewPager2 + android:id="@+id/view_pager_2_rpan_activity" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + +</androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_view_rpan_broadcast.xml b/app/src/main/res/layout/fragment_view_rpan_broadcast.xml new file mode 100644 index 00000000..fdfe62c6 --- /dev/null +++ b/app/src/main/res/layout/fragment_view_rpan_broadcast.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout 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" + xmlns:app="http://schemas.android.com/apk/res-auto" + tools:context=".fragments.ViewRPANBroadcastFragment"> + + <com.google.android.exoplayer2.ui.PlayerView + android:id="@+id/player_view_view_rpan_broadcast_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:controller_layout_id="@layout/exo_playback_control_view" /> + + <ProgressBar + android:id="@+id/progress_bar_view_rpan_broadcast_fragment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:visibility="gone" /> + +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 79870453..1d6753ba 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -39,6 +39,7 @@ <string name="post_filter_preference_activity_label">Post Filter</string> <string name="search_users_result_activity_label">Users</string> <string name="multireddit_selection_activity_label">Select a Multireddit</string> + <string name="rpan_activity_label">RPAN</string> <string name="navigation_drawer_open">Open navigation drawer</string> <string name="navigation_drawer_close">Close navigation drawer</string> @@ -1126,4 +1127,7 @@ <string name="get_image_bitmap_failed">Unable to get the bitmap of the image</string> <string name="upload_image_failed">Unable to upload the image</string> + <string name="load_rpan_broadcasts_failed">Cannot load RPAN broadcasts</string> + <string name="parse_rpan_broadcasts_failed">Cannot parse RPAN broadcasts</string> + </resources> |