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-09-02 17:02:31 +00:00
|
|
|
android:layout_marginTop="?attr/actionBarSize"
|
2020-07-01 17:08:28 +00:00
|
|
|
android:animateLayoutChanges="true"
|
|
|
|
android:orientation="vertical"
|
2020-09-03 11:08:04 +00:00
|
|
|
android:weightSum="3.2">
|
2020-07-01 17:08:28 +00:00
|
|
|
|
2020-09-02 17:02:31 +00:00
|
|
|
<include
|
|
|
|
android:id="@+id/topPanel"
|
|
|
|
layout="@layout/item_feed_top" />
|
2020-07-01 17:08:28 +00:00
|
|
|
|
|
|
|
<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
|
|
|
|
2020-09-02 17:02:31 +00:00
|
|
|
<awais.instagrabber.customviews.helpers.NestedScrollableHost
|
2020-07-01 17:08:28 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-09-02 17:02:31 +00:00
|
|
|
android:layout_height="match_parent">
|
2020-07-01 17:08:28 +00:00
|
|
|
|
2020-09-02 17:02:31 +00:00
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
|
|
android:id="@+id/mediaViewPager"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
</awais.instagrabber.customviews.helpers.NestedScrollableHost>
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
android:id="@+id/mediaCounter"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal|bottom"
|
|
|
|
android:background="@drawable/rounder_corner_semi_black_bg"
|
|
|
|
android:gravity="center"
|
|
|
|
android:padding="5dp"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Caption"
|
|
|
|
android:textColor="@android:color/white"
|
2020-07-01 17:08:28 +00:00
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/progressView"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2020-09-03 11:08:04 +00:00
|
|
|
<!-- Removing for now, will add in later versions -->
|
|
|
|
<!--<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"-->
|
|
|
|
<!-- app:tint="?android:textColorPrimary" />-->
|
2020-07-01 17:08:28 +00:00
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<include
|
|
|
|
android:id="@+id/bottomPanel"
|
|
|
|
layout="@layout/item_feed_bottom"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
2020-09-02 17:02:31 +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
|
2020-07-25 23:12:13 +00:00
|
|
|
android:id="@+id/postActions"
|
2020-07-23 16:00:09 +00:00
|
|
|
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-09-02 17:02:31 +00:00
|
|
|
android:weightSum="2">
|
|
|
|
|
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"
|
2020-07-24 18:33:10 +00:00
|
|
|
android:layout_marginStart="6dp"
|
2020-09-02 17:02:31 +00:00
|
|
|
android:layout_marginLeft="8dp"
|
2020-07-23 16:00:09 +00:00
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:textColor="@color/btn_lightpink_text_color"
|
2020-07-26 22:23:24 +00:00
|
|
|
android:textSize="18sp"
|
2020-09-02 17:02:31 +00:00
|
|
|
app:backgroundTint="@color/btn_lightpink_background"
|
|
|
|
tools:text="@string/like" />
|
2020-07-23 16:00:09 +00:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatButton
|
|
|
|
android:id="@+id/btnBookmark"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-09-02 17:02:31 +00:00
|
|
|
android:layout_alignParentBottom="true"
|
2020-07-23 16:00:09 +00:00
|
|
|
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"
|
2020-07-26 22:23:24 +00:00
|
|
|
android:textSize="18sp"
|
2020-07-23 16:00:09 +00:00
|
|
|
app:backgroundTint="@color/btn_lightorange_background" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
2020-07-01 17:08:28 +00:00
|
|
|
</LinearLayout>
|