Animate gif avatars (#1279)
* animate gif avatars * add setting to enable avatar animation * cleanup code
This commit is contained in:
parent
da1089184c
commit
83696b5c7f
40 changed files with 381 additions and 547 deletions
|
@ -352,7 +352,7 @@
|
|||
|
||||
<include layout="@layout/item_status_bottom_sheet" />
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/accountAvatarImageView"
|
||||
android:layout_width="@dimen/account_activity_avatar_size"
|
||||
android:layout_height="@dimen/account_activity_avatar_size"
|
||||
|
@ -364,4 +364,4 @@
|
|||
app:layout_scrollFlags="scroll"
|
||||
app:srcCompat="@drawable/avatar_default" />
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
android:layout_marginBottom="8dp"
|
||||
android:background="@android:color/transparent">
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/composeAvatar"
|
||||
android:layout_width="?attr/actionBarSize"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
app:layout_constraintStart_toStartOf="@id/headerPreview"
|
||||
app:layout_constraintTop_toTopOf="@id/headerPreview" />
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/avatarPreview"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp">
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/account_avatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
@ -19,7 +19,7 @@
|
|||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:src="@drawable/avatar_default" />
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/account_avatar_inset"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
android:gravity="center_vertical"
|
||||
android:padding="8dp">
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="42dp"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/blocked_user_avatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
tools:text="ConnyDuck boosted"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/status_avatar_2"
|
||||
android:layout_width="52dp"
|
||||
android:layout_height="52dp"
|
||||
|
@ -42,7 +42,7 @@
|
|||
app:layout_constraintTop_toTopOf="@id/status_avatar_1"
|
||||
tools:src="@drawable/avatar_default" />
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/status_avatar_1"
|
||||
android:layout_width="52dp"
|
||||
android:layout_height="52dp"
|
||||
|
@ -55,7 +55,7 @@
|
|||
app:layout_constraintTop_toTopOf="@id/status_avatar"
|
||||
tools:src="@drawable/avatar_default" />
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/status_avatar"
|
||||
android:layout_width="52dp"
|
||||
android:layout_height="52dp"
|
||||
|
@ -68,7 +68,7 @@
|
|||
app:layout_constraintTop_toBottomOf="@id/conversation_name"
|
||||
tools:src="@drawable/avatar_default" />
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/status_avatar_inset"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
* This is the for folnotificationsEnabledions, the layout for the follows/following listings on account
|
||||
* This is the for follow notifications, the layout for the follows/following listings on account
|
||||
* pages are instead in item_account.xml.
|
||||
-->
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
|
@ -27,7 +27,7 @@
|
|||
android:textSize="?attr/status_text_medium"
|
||||
tools:text="Someone followed you" />
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/notification_avatar"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/muted_user_avatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
tools:text="ConnyDuck boosted"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/status_avatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
@ -43,7 +43,7 @@
|
|||
app:layout_constraintTop_toBottomOf="@id/status_info"
|
||||
tools:src="@drawable/avatar_default" />
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/status_avatar_inset"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
android:paddingLeft="14dp"
|
||||
android:paddingRight="14dp">
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/status_avatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
@ -24,7 +24,7 @@
|
|||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:src="@drawable/avatar_default" />
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/status_avatar_inset"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
|
|
|
@ -137,7 +137,7 @@
|
|||
android:textSize="?attr/status_text_medium"
|
||||
android:visibility="gone" />
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/notification_status_avatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
@ -153,7 +153,7 @@
|
|||
tools:ignore="RtlHardcoded,RtlSymmetry"
|
||||
tools:src="@drawable/avatar_default" />
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/notification_notification_avatar"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="Account has moved" />
|
||||
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
<ImageView
|
||||
android:id="@+id/accountMovedAvatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue