1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-16 11:47:29 +00:00
BarInsta/app/src/main/res/layout/fragment_story_viewer.xml

165 lines
7.2 KiB
XML
Raw Normal View History

2020-07-01 17:08:28 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-08-29 08:01:42 +00:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2020-07-01 17:08:28 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-08-29 08:01:42 +00:00
android:orientation="vertical">
2020-07-01 17:08:28 +00:00
<FrameLayout
2020-08-29 08:01:42 +00:00
android:id="@+id/story_container"
2020-07-01 17:08:28 +00:00
android:layout_width="match_parent"
android:layout_height="0dp"
2020-08-29 08:01:42 +00:00
android:layout_weight="1"
app:layout_constraintBottom_toTopOf="@id/storiesList"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
2020-07-01 17:08:28 +00:00
<com.google.android.exoplayer2.ui.PlayerView
android:id="@+id/playerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
app:auto_show="true"
app:controller_layout_id="@layout/layout_controls"
app:repeat_toggle_modes="none" />
2020-08-29 08:01:42 +00:00
<awais.instagrabber.customviews.drawee.ZoomableDraweeView
2020-07-01 17:08:28 +00:00
android:id="@+id/imageViewer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
<ProgressBar
android:id="@+id/progressView"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="center"
android:visibility="gone" />
2020-07-30 22:19:44 +00:00
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/postActions"
2020-07-01 17:08:28 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-08-29 08:01:42 +00:00
android:layout_gravity="bottom"
android:background="#0000">
2020-07-30 22:19:44 +00:00
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/viewStoryPost"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/view_story_post"
android:textColor="@color/btn_green_text_color"
android:visibility="gone"
app:backgroundTint="@color/btn_green_background" />
2020-08-29 08:01:42 +00:00
2020-07-30 22:19:44 +00:00
<androidx.appcompat.widget.AppCompatButton
2020-08-04 02:28:42 +00:00
android:id="@+id/poll"
2020-07-30 22:19:44 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
2020-08-04 02:28:42 +00:00
android:text="@string/vote_story_poll"
2020-07-30 22:19:44 +00:00
android:textColor="@color/btn_blue_text_color"
android:visibility="gone"
app:backgroundTint="@color/btn_blue_background" />
2020-08-29 08:01:42 +00:00
2020-08-04 02:28:42 +00:00
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/answer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
2020-08-04 16:51:30 +00:00
android:text="@string/respond_story"
android:textColor="@color/btn_blue_text_color"
android:visibility="gone"
app:backgroundTint="@color/btn_blue_background" />
2020-08-29 08:01:42 +00:00
2020-08-04 16:51:30 +00:00
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/quiz"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/story_quiz"
2020-08-04 02:28:42 +00:00
android:textColor="@color/btn_blue_text_color"
android:visibility="gone"
app:backgroundTint="@color/btn_blue_background" />
2020-08-29 08:01:42 +00:00
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/story_slider"
android:textColor="@color/btn_blue_text_color"
android:visibility="gone"
app:backgroundTint="@color/btn_blue_background" />
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/swipeUp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="SAMPLE TEXT"
android:textColor="@color/btn_blue_text_color"
android:visibility="gone"
app:backgroundTint="@color/btn_blue_background" />
2020-08-04 02:28:42 +00:00
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/mention"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/story_mentions"
android:textColor="@color/btn_orange_text_color"
android:visibility="gone"
app:backgroundTint="@color/btn_orange_background" />
2020-08-29 08:01:42 +00:00
2020-07-31 15:53:30 +00:00
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/spotify"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/spotify"
android:textColor="@color/btn_green_text_color"
android:visibility="gone"
app:backgroundTint="@color/btn_green_background" />
2020-07-30 22:19:44 +00:00
</androidx.appcompat.widget.LinearLayoutCompat>
2020-07-01 17:08:28 +00:00
</FrameLayout>
2020-11-04 18:02:23 +00:00
<com.google.android.material.button.MaterialButton
android:id="@+id/btnBackward"
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="40dp"
android:layout_height="0dp"
android:visibility="visible"
app:icon="@drawable/exo_ic_skip_previous"
app:iconGravity="textStart"
app:iconPadding="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/storiesList"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/storiesList" />
2020-07-01 17:08:28 +00:00
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/storiesList"
2020-11-04 18:02:23 +00:00
android:layout_width="0dp"
2020-07-01 17:08:28 +00:00
android:layout_height="wrap_content"
android:clipToPadding="false"
2020-11-04 18:02:23 +00:00
app:layout_constraintTop_toBottomOf="@id/story_container"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/btnForward"
app:layout_constraintStart_toEndOf="@id/btnBackward" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btnForward"
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="40dp"
android:layout_height="0dp"
android:visibility="visible"
app:icon="@drawable/exo_ic_skip_next"
app:iconGravity="textStart"
app:iconPadding="0dp"
2020-08-29 08:01:42 +00:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
2020-11-04 18:02:23 +00:00
app:layout_constraintStart_toEndOf="@id/storiesList"
app:layout_constraintTop_toTopOf="@id/storiesList" />
2020-08-29 08:01:42 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>