mirror of
https://github.com/KokaKiwi/BarInsta
synced 2026-03-05 12:01:35 +00:00
Allow removing like/reaction
This commit is contained in:
parent
255c3c84b4
commit
6a163454f4
20 changed files with 613 additions and 50 deletions
|
|
@ -173,28 +173,34 @@
|
|||
|
||||
</awais.instagrabber.customviews.ChatMessageLayout>
|
||||
|
||||
<androidx.emoji.widget.EmojiAppCompatTextView
|
||||
android:id="@+id/emojis"
|
||||
<FrameLayout
|
||||
android:id="@+id/reactions_wrapper"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:background="@drawable/bg_rounded_corner"
|
||||
android:elevation="1dp"
|
||||
android:maxLines="1"
|
||||
android:padding="4dp"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
android:textSize="18sp"
|
||||
android:paddingBottom="2dp"
|
||||
android:translationY="@dimen/dm_reaction_translation_y_type_1"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0"
|
||||
app:layout_constraintStart_toStartOf="@id/chat_message_layout"
|
||||
app:layout_constraintTop_toBottomOf="parent"
|
||||
app:layout_constraintWidth_max="wrap"
|
||||
tools:text="😀"
|
||||
tools:visibility="visible" />
|
||||
tools:visibility="visible">
|
||||
|
||||
<awais.instagrabber.customviews.ReactionEmojiTextView
|
||||
android:id="@+id/emojis"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_rounded_corner"
|
||||
android:elevation="1dp"
|
||||
android:ellipsize="end"
|
||||
android:padding="4dp"
|
||||
android:singleLine="true"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
android:textSize="18sp"
|
||||
tools:text="😀😀😀😀😀😀😀" />
|
||||
</FrameLayout>
|
||||
|
||||
<!--<FrameLayout-->
|
||||
<!-- android:id="@+id/reactions"-->
|
||||
|
|
|
|||
|
|
@ -78,12 +78,26 @@
|
|||
android:duplicateParentState="true"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@id/profile_pic"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/secondary_image"
|
||||
app:layout_constraintStart_toEndOf="@id/info"
|
||||
app:layout_constraintTop_toTopOf="@id/profile_pic"
|
||||
app:srcCompat="@drawable/ic_circle_check"
|
||||
app:tint="@color/ic_circle_check_tint"
|
||||
tools:visibility="visible" />
|
||||
tools:visibility="gone" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/secondary_image"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:duplicateParentState="true"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@id/profile_pic"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/select"
|
||||
app:layout_constraintTop_toTopOf="@id/profile_pic"
|
||||
tools:srcCompat="@mipmap/ic_launcher"
|
||||
tools:visibility="gone" />
|
||||
|
||||
<include
|
||||
layout="@layout/item_pref_divider"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
<dimen name="dm_message_item_margin">80dp</dimen>
|
||||
<dimen name="dm_message_item_avatar_size">48dp</dimen>
|
||||
<dimen name="dm_message_info_padding_small">4dp</dimen>
|
||||
<dimen name="dm_reaction_adjust_margin">22dp</dimen>
|
||||
<dimen name="dm_reaction_adjust_margin">24dp</dimen>
|
||||
<dimen name="dm_reaction_translation_y_type_1">6dp</dimen>
|
||||
<dimen name="dm_reaction_translation_y_type_2">-12dp</dimen>
|
||||
|
||||
|
|
|
|||
|
|
@ -397,4 +397,5 @@
|
|||
<string name="edit_unsuccessful">Edit was unsuccessful</string>
|
||||
<string name="message">Message</string>
|
||||
<string name="reply">Reply</string>
|
||||
<string name="tap_to_remove">Tap to remove</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue