kopia lustrzana https://github.com/ryukoposting/Signal-Android
Slide badge on swipe to reply.
rodzic
8b23a409ef
commit
db4a0deccc
|
@ -184,7 +184,7 @@ public final class ConversationItem extends RelativeLayout implements BindableCo
|
||||||
private AvatarImageView contactPhoto;
|
private AvatarImageView contactPhoto;
|
||||||
private AlertView alertView;
|
private AlertView alertView;
|
||||||
protected ReactionsConversationView reactionsView;
|
protected ReactionsConversationView reactionsView;
|
||||||
private BadgeImageView badgeImageView;
|
protected BadgeImageView badgeImageView;
|
||||||
|
|
||||||
private @NonNull Set<MultiselectPart> batchSelected = new HashSet<>();
|
private @NonNull Set<MultiselectPart> batchSelected = new HashSet<>();
|
||||||
private @NonNull Outliner outliner = new Outliner();
|
private @NonNull Outliner outliner = new Outliner();
|
||||||
|
|
|
@ -202,8 +202,4 @@ public class ConversationItemSwipeCallback extends ItemTouchHelper.SimpleCallbac
|
||||||
interface OnSwipeListener {
|
interface OnSwipeListener {
|
||||||
void onSwipe(ConversationMessage conversationMessage);
|
void onSwipe(ConversationMessage conversationMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface OnViewHolderTranslated {
|
|
||||||
void onViewHolderTranslated(@NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@ final class ConversationSwipeAnimationHelper {
|
||||||
updateReactionsTransition(conversationItem.reactionsView, dx, sign);
|
updateReactionsTransition(conversationItem.reactionsView, dx, sign);
|
||||||
updateReplyIconTransition(conversationItem.reply, dx, progress, sign);
|
updateReplyIconTransition(conversationItem.reply, dx, progress, sign);
|
||||||
updateContactPhotoHolderTransition(conversationItem.contactPhotoHolder, progress, sign);
|
updateContactPhotoHolderTransition(conversationItem.contactPhotoHolder, progress, sign);
|
||||||
|
updateContactPhotoHolderTransition(conversationItem.badgeImageView, progress, sign);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void trigger(@NonNull ConversationItem conversationItem) {
|
public static void trigger(@NonNull ConversationItem conversationItem) {
|
||||||
|
|
Ładowanie…
Reference in New Issue