Center crop and clip notification image.
Test: manual Change-Id: If57b62761622a46496a9491d577694c32c956ae9
This commit is contained in:
@@ -17925,6 +17925,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
* @see #setOutlineProvider(ViewOutlineProvider)
|
||||
* @see #getClipToOutline()
|
||||
*/
|
||||
@RemotableViewMethod
|
||||
public void setClipToOutline(boolean clipToOutline) {
|
||||
damageInParent();
|
||||
if (getClipToOutline() != clipToOutline) {
|
||||
|
||||
@@ -168,6 +168,7 @@
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/content_background"
|
||||
android:background="@drawable/people_space_content_background"
|
||||
android:layout_gravity="center"
|
||||
android:layout_width="match_parent"
|
||||
@@ -187,7 +188,8 @@
|
||||
android:id="@+id/image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"/>
|
||||
android:visibility="gone"
|
||||
android:scaleType="centerCrop"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -282,6 +282,7 @@ public class PeopleSpaceUtils {
|
||||
)
|
||||
);
|
||||
views.setImageViewIcon(R.id.person_icon, tile.getUserIcon());
|
||||
views.setBoolean(R.id.content_background, "setClipToOutline", true);
|
||||
|
||||
Intent activityIntent = new Intent(context, LaunchConversationActivity.class);
|
||||
activityIntent.addFlags(
|
||||
|
||||
Reference in New Issue
Block a user