mirror of
https://github.com/KokaKiwi/BarInsta
synced 2026-03-05 12:01:35 +00:00
Allow forwarding messages (need to check types which cannot be forwarded)
This commit is contained in:
parent
8e3d0af9d3
commit
8a659c9f1f
28 changed files with 1183 additions and 172 deletions
|
|
@ -29,7 +29,7 @@
|
|||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
app:layout_constraintStart_toEndOf="@id/ivProfilePic"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:visibility="visible" />
|
||||
tools:visibility="gone" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/reply_info"
|
||||
|
|
@ -42,6 +42,7 @@
|
|||
app:layout_constraintBottom_toTopOf="@id/reply_container"
|
||||
app:layout_constraintStart_toEndOf="@id/quote_line"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_goneMarginStart="0dp"
|
||||
tools:text="Replied to you" />
|
||||
|
||||
<FrameLayout
|
||||
|
|
@ -52,6 +53,7 @@
|
|||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
app:layout_constraintBottom_toTopOf="@id/tvUsername"
|
||||
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="1"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
|
|
@ -77,7 +79,7 @@
|
|||
android:textSize="14sp"
|
||||
android:visibility="gone"
|
||||
tools:text="Some message"
|
||||
tools:visibility="visible" />
|
||||
tools:visibility="gone" />
|
||||
</FrameLayout>
|
||||
|
||||
<awais.instagrabber.customviews.CircularImageView
|
||||
|
|
|
|||
|
|
@ -24,6 +24,17 @@
|
|||
app:roundAsCircle="true"
|
||||
tools:background="@mipmap/ic_launcher" />
|
||||
|
||||
<com.facebook.drawee.view.SimpleDraweeView
|
||||
android:id="@+id/profile_pic2"
|
||||
android:layout_width="@dimen/dm_inbox_avatar_size"
|
||||
android:layout_height="@dimen/dm_inbox_avatar_size"
|
||||
app:actualImageScaleType="centerCrop"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:roundAsCircle="true"
|
||||
tools:background="@mipmap/ic_launcher" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/full_name"
|
||||
android:layout_width="0dp"
|
||||
|
|
@ -55,7 +66,8 @@
|
|||
app:layout_constraintEnd_toStartOf="@id/select"
|
||||
app:layout_constraintStart_toEndOf="@id/full_name"
|
||||
app:layout_constraintTop_toTopOf="@id/full_name"
|
||||
tools:text="Admin" />
|
||||
tools:text="Admin"
|
||||
tools:visibility="gone" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/username"
|
||||
|
|
@ -68,7 +80,8 @@
|
|||
app:layout_constraintEnd_toStartOf="@id/select"
|
||||
app:layout_constraintStart_toStartOf="@id/full_name"
|
||||
app:layout_constraintTop_toBottomOf="@id/full_name"
|
||||
tools:text="username" />
|
||||
tools:text="username"
|
||||
tools:visibility="gone" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/select"
|
||||
|
|
@ -83,7 +96,7 @@
|
|||
app:layout_constraintTop_toTopOf="@id/profile_pic"
|
||||
app:srcCompat="@drawable/ic_circle_check"
|
||||
app:tint="@color/ic_circle_check_tint"
|
||||
tools:visibility="gone" />
|
||||
tools:visibility="visible" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/secondary_image"
|
||||
|
|
|
|||
|
|
@ -86,23 +86,23 @@
|
|||
<action
|
||||
android:id="@+id/action_global_user_search"
|
||||
app:destination="@id/user_search_nav_graph">
|
||||
<argument
|
||||
android:name="multiple"
|
||||
app:argType="boolean" />
|
||||
<!--<argument-->
|
||||
<!-- android:name="multiple"-->
|
||||
<!-- app:argType="boolean" />-->
|
||||
|
||||
<argument
|
||||
android:name="title"
|
||||
app:argType="string"
|
||||
app:nullable="true" />
|
||||
<!--<argument-->
|
||||
<!-- android:name="title"-->
|
||||
<!-- app:argType="string"-->
|
||||
<!-- app:nullable="true" />-->
|
||||
|
||||
<argument
|
||||
android:name="action_label"
|
||||
app:argType="string"
|
||||
app:nullable="true" />
|
||||
<!--<argument-->
|
||||
<!-- android:name="action_label"-->
|
||||
<!-- app:argType="string"-->
|
||||
<!-- app:nullable="true" />-->
|
||||
|
||||
<argument
|
||||
android:name="hideUserIds"
|
||||
app:argType="long[]" />
|
||||
<!--<argument-->
|
||||
<!-- android:name="hideUserIds"-->
|
||||
<!-- app:argType="long[]" />-->
|
||||
</action>
|
||||
|
||||
<fragment
|
||||
|
|
|
|||
|
|
@ -1,33 +1,61 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<navigation 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:id="@+id/user_search_nav_graph"
|
||||
app:startDestination="@id/user_search">
|
||||
|
||||
<fragment
|
||||
android:id="@+id/user_search"
|
||||
android:name="awais.instagrabber.fragments.UserSearchFragment"
|
||||
android:label="@string/search">
|
||||
android:label="@string/search"
|
||||
tools:layout="@layout/fragment_user_search">
|
||||
<argument
|
||||
android:name="multiple"
|
||||
android:defaultValue="false"
|
||||
app:argType="boolean" />
|
||||
|
||||
<argument
|
||||
android:name="title"
|
||||
android:defaultValue="@null"
|
||||
app:argType="string"
|
||||
app:nullable="true" />
|
||||
|
||||
<argument
|
||||
android:name="action_label"
|
||||
android:defaultValue="@null"
|
||||
app:argType="string"
|
||||
app:nullable="true" />
|
||||
|
||||
<argument
|
||||
android:name="show_groups"
|
||||
android:defaultValue="false"
|
||||
app:argType="boolean" />
|
||||
|
||||
<argument
|
||||
android:name="search_mode"
|
||||
android:defaultValue="USER_SEARCH"
|
||||
app:argType="awais.instagrabber.fragments.UserSearchFragment$SearchMode" />
|
||||
|
||||
<argument
|
||||
android:name="hideUserIds"
|
||||
app:argType="long[]" />
|
||||
android:defaultValue="@null"
|
||||
app:argType="long[]"
|
||||
app:nullable="true" />
|
||||
|
||||
<argument
|
||||
android:name="hideThreadIds"
|
||||
android:defaultValue="@null"
|
||||
app:argType="string[]"
|
||||
app:nullable="true" />
|
||||
|
||||
|
||||
</fragment>
|
||||
|
||||
<action
|
||||
android:id="@+id/action_global_user_search"
|
||||
app:destination="@id/user_search" />
|
||||
|
||||
<!--<action-->
|
||||
<!-- android:id="@+id/action_global_user_search"-->
|
||||
<!-- app:destination="@id/user_search_nav_graph">-->
|
||||
|
|
|
|||
|
|
@ -2,4 +2,5 @@
|
|||
<resources>
|
||||
<item name="reply" type="id" />
|
||||
<item name="unsend" type="id" />
|
||||
<item name="forward" type="id" />
|
||||
</resources>
|
||||
|
|
@ -398,4 +398,7 @@
|
|||
<string name="message">Message</string>
|
||||
<string name="reply">Reply</string>
|
||||
<string name="tap_to_remove">Tap to remove</string>
|
||||
<string name="forward">Forward</string>
|
||||
<string name="add">Add</string>
|
||||
<string name="send">Send</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue