1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-08 15:57:29 +00:00
BarInsta/app/src/main/res/layout/activity_viewer.xml

135 lines
5.1 KiB
XML
Raw Normal View History

2020-07-01 17:08:28 +00:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
2020-07-25 21:10:26 +00:00
android:weightSum="3.2"
2020-07-01 17:08:28 +00:00
android:animateLayoutChanges="true"
android:orientation="vertical"
tools:context=".activities.PostViewer">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="4dp"
android:paddingLeft="4dp"
android:paddingTop="4dp"
android:paddingEnd="4dp"
android:paddingRight="4dp"
android:paddingBottom="6dp">
<include
android:id="@+id/topPanel"
layout="@layout/item_feed_top" />
</FrameLayout>
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="0dp"
2020-07-25 21:10:26 +00:00
android:layout_weight="1.9">
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:repeat_toggle_modes="all" />
<com.github.chrisbanes.photoview.PhotoView
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" />
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_gravity="end|top">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/ivToggleFullScreen"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="end|top"
android:background="?selectableItemBackgroundBorderless"
android:padding="4dp"
app:srcCompat="@drawable/ic_fullscreen" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/btnDownload"
android:layout_width="40dp"
android:layout_height="48dp"
android:layout_gravity="end|top"
android:layout_marginEnd="48dp"
android:layout_marginRight="48dp"
android:background="?selectableItemBackgroundBorderless"
android:padding="4dp"
android:visibility="gone"
app:srcCompat="@drawable/ic_download" />
</FrameLayout>
</FrameLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/mediaList"
android:layout_width="match_parent"
2020-07-25 21:10:26 +00:00
android:layout_height="0dp"
2020-07-01 17:08:28 +00:00
android:clipToPadding="false"
android:orientation="horizontal"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:paddingEnd="5dp"
android:paddingRight="5dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
<include
android:id="@+id/bottomPanel"
layout="@layout/item_feed_bottom"
android:layout_width="match_parent"
android:layout_height="0dp"
2020-07-25 21:10:26 +00:00
android:layout_weight="1"/>
2020-07-01 17:08:28 +00:00
2020-07-23 16:00:09 +00:00
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
2020-07-24 18:33:10 +00:00
android:layout_height="0dp"
2020-07-25 21:10:26 +00:00
android:layout_weight="0.3"
2020-07-23 16:00:09 +00:00
android:background="#0000"
2020-07-24 18:33:10 +00:00
android:weightSum="2"
android:layout_alignParentBottom="true">
2020-07-23 16:00:09 +00:00
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btnLike"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
2020-07-24 18:33:10 +00:00
android:layout_marginStart="6dp"
2020-07-23 16:00:09 +00:00
android:layout_marginRight="8dp"
android:layout_weight="1"
android:text="@string/like"
android:textColor="@color/btn_lightpink_text_color"
android:textSize="20sp"
app:backgroundTint="@color/btn_lightpink_background" />
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btnBookmark"
2020-07-25 21:10:26 +00:00
android:layout_alignParentBottom="true"
2020-07-23 16:00:09 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
2020-07-24 18:33:10 +00:00
android:layout_marginEnd="6dp"
2020-07-23 16:00:09 +00:00
android:layout_marginRight="8dp"
android:layout_weight="1"
android:text="@string/bookmark"
android:textColor="@color/btn_lightorange_text_color"
android:textSize="20sp"
app:backgroundTint="@color/btn_lightorange_background" />
</androidx.appcompat.widget.LinearLayoutCompat>
2020-07-01 17:08:28 +00:00
</LinearLayout>