1
0
Fork 0
mirror of https://github.com/KokaKiwi/BarInsta synced 2026-03-05 12:01:35 +00:00

Add updated profile pic viewer, and view stories from profile.

This commit is contained in:
Ammar Githam 2020-09-06 18:25:27 +09:00
parent 6b0fe3ff78
commit 7e8fdda81b
12 changed files with 646 additions and 368 deletions

View file

@ -1,37 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:orientation="vertical"
tools:context=".activities.ProfilePicViewer">
<include
android:id="@+id/toolbar"
layout="@layout/layout_include_toolbar" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.github.chrisbanes.photoview.PhotoView
android:id="@+id/imageViewer"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/imageInfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:background="#40000000"
android:padding="8dp"
android:visibility="gone" />
<ProgressBar
android:id="@+id/progressView"
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_gravity="center" />
</FrameLayout>
</LinearLayout>

View file

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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="@color/semi_transparent_black">
<awais.instagrabber.customviews.drawee.ZoomableDraweeView
android:id="@+id/imageViewer"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<!--<androidx.appcompat.widget.AppCompatTextView-->
<!-- android:id="@+id/imageInfo"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:background="@android:color/black"-->
<!-- android:padding="8dp"-->
<!-- android:text="Test text"-->
<!-- android:textColor="@android:color/white"-->
<!-- android:visibility="visible"-->
<!-- tools:visibility="visible" />-->
<ProgressBar
android:id="@+id/progressView"
style="@android:style/Widget.DeviceDefault.Light.ProgressBar.Large"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@android:color/transparent" />
<Button
android:id="@+id/download"
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:text="@string/action_download"
android:visibility="gone"
app:icon="@drawable/ic_download"
tools:visibility="visible" />
</FrameLayout>

View file

@ -98,5 +98,13 @@
<argument
android:name="isHashtag"
app:argType="boolean" />
<argument
android:name="profileId"
app:argType="string"
app:nullable="true" />
<argument
android:name="username"
app:argType="string"
app:nullable="true" />
</fragment>
</navigation>

View file

@ -125,5 +125,13 @@
<argument
android:name="isHashtag"
app:argType="boolean" />
<argument
android:name="profileId"
app:argType="string"
app:nullable="true" />
<argument
android:name="username"
app:argType="string"
app:nullable="true" />
</fragment>
</navigation>