Add RoundedImageView for avatars (#739)
* Add RoundedImageView for avatars * RoundedImageView: Remove unused things, fix touchable area
This commit is contained in:
parent
562beacfc1
commit
133808891d
26 changed files with 367 additions and 49 deletions
|
@ -301,7 +301,7 @@
|
|||
|
||||
<include layout="@layout/item_status_bottom_sheet" />
|
||||
|
||||
<ImageView
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
android:id="@+id/accountAvatarImageView"
|
||||
android:layout_width="@dimen/account_activity_avatar_size"
|
||||
android:layout_height="@dimen/account_activity_avatar_size"
|
||||
|
@ -312,5 +312,4 @@
|
|||
app:layout_anchorGravity="top"
|
||||
app:layout_scrollFlags="scroll"
|
||||
app:srcCompat="@drawable/avatar_default" />
|
||||
|
||||
</android.support.design.widget.CoordinatorLayout>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
android:layout_marginBottom="8dp"
|
||||
android:background="@android:color/transparent">
|
||||
|
||||
<ImageView
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
android:id="@+id/composeAvatar"
|
||||
android:layout_width="?attr/actionBarSize"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="-40dp">
|
||||
|
||||
<com.pkmmte.view.CircularImageView
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
android:id="@+id/avatarPreview"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<com.pkmmte.view.CircularImageView
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
android:id="@+id/account_avatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
android:gravity="center_vertical"
|
||||
android:padding="8dp">
|
||||
|
||||
<ImageView
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="42dp"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<com.pkmmte.view.CircularImageView
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
android:id="@+id/blocked_user_avatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
android:textSize="?attr/status_text_medium"
|
||||
tools:text="Someone followed you" />
|
||||
|
||||
<ImageView
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
android:id="@+id/notification_avatar"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
|
@ -35,7 +35,7 @@
|
|||
android:layout_marginEnd="14dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:contentDescription="@string/action_view_profile"
|
||||
android:scaleType="fitCenter"
|
||||
android:scaleType="centerCrop"
|
||||
android:textSize="?attr/status_text_medium" />
|
||||
|
||||
<android.support.text.emoji.widget.EmojiTextView
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<com.pkmmte.view.CircularImageView
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
android:id="@+id/follow_request_avatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<com.pkmmte.view.CircularImageView
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
android:id="@+id/muted_user_avatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
android:textSize="?attr/status_text_medium"
|
||||
tools:text="ConnyDuck boosted" />
|
||||
|
||||
<ImageView
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
android:id="@+id/status_avatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
@ -31,10 +31,10 @@
|
|||
android:layout_marginEnd="14dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:contentDescription="@string/action_view_profile"
|
||||
android:scaleType="fitCenter"
|
||||
android:scaleType="centerCrop"
|
||||
tools:src="@drawable/avatar_default" />
|
||||
|
||||
<ImageView
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
android:id="@+id/status_avatar_reblog"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
|
|
|
@ -11,14 +11,14 @@
|
|||
android:paddingLeft="14dp"
|
||||
android:paddingRight="14dp">
|
||||
|
||||
<ImageView
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
android:id="@+id/status_avatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:contentDescription="@string/action_view_profile"
|
||||
android:scaleType="fitCenter"
|
||||
android:scaleType="centerCrop"
|
||||
tools:src="@drawable/avatar_default" />
|
||||
|
||||
<LinearLayout
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
android:textSize="?attr/status_text_medium"
|
||||
tools:text="Example status here" />
|
||||
|
||||
<ImageView
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
android:id="@+id/notification_status_avatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
@ -127,7 +127,7 @@
|
|||
android:contentDescription="@string/action_view_profile"
|
||||
android:paddingBottom="12dp"
|
||||
android:paddingRight="12dp"
|
||||
android:scaleType="fitCenter"
|
||||
android:scaleType="centerCrop"
|
||||
tools:ignore="RtlHardcoded,RtlSymmetry"
|
||||
tools:src="@drawable/avatar_default" />
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
android:textSize="?attr/status_text_medium"
|
||||
tools:text="Account has moved" />
|
||||
|
||||
<ImageView
|
||||
<com.keylesspalace.tusky.view.RoundedImageView
|
||||
android:id="@+id/accountMovedAvatar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue