Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6df2318f authored by Anna Zappone's avatar Anna Zappone Committed by Android (Google) Code Review
Browse files

Merge "Update template tile to fit worse-case dimens" into sc-dev

parents fc7b3733 898ccb31
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2021 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License
  -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
    android:width="50dp"
    android:height="50dp"
    android:viewportWidth="50"
    android:viewportHeight="50">
  <path
      android:pathData="M0,24C0,10.7452 10.7452,0 24,0V0C37.2548,0 48,10.7452 48,24V24C48,37.2548 37.2548,48 24,48V48C10.7452,48 0,37.2548 0,24V24Z"
      android:fillColor="?androidprv:attr/colorAccentSecondary"/>
  <path
      android:pathData="M31.2003,19.2C31.2003,23.1764 27.9767,26.4 24.0003,26.4C20.0238,26.4 16.8003,23.1764 16.8003,19.2C16.8003,15.2235 20.0238,12 24.0003,12C27.9767,12 31.2003,15.2235 31.2003,19.2ZM28.8003,19.2C28.8003,21.851 26.6513,24 24.0003,24C21.3493,24 19.2003,21.851 19.2003,19.2C19.2003,16.549 21.3493,14.4 24.0003,14.4C26.6513,14.4 28.8003,16.549 28.8003,19.2Z"
      android:fillColor="@color/people_tile_background"
      android:fillType="evenOdd"/>
  <path
      android:pathData="M24.0003,30C16.231,30 9.6114,34.5941 7.0898,41.0305C7.7041,41.6404 8.3512,42.2174 9.0282,42.7585C10.9059,36.8492 16.7964,32.4 24.0003,32.4C31.2042,32.4 37.0947,36.8492 38.9724,42.7585C39.6494,42.2174 40.2965,41.6404 40.9108,41.0305C38.3892,34.5941 31.7696,30 24.0003,30Z"
      android:fillColor="@color/people_tile_background"/>
  <path
      android:pathData="M40,40m-10,0a10,10 0,1 1,20 0a10,10 0,1 1,-20 0"
      android:fillColor="?androidprv:attr/colorAccentTertiary"/>
</vector>
+40 −18
Original line number Diff line number Diff line
@@ -25,23 +25,36 @@
        android:id="@+id/item"
        android:orientation="horizontal"
        android:gravity="center"
        android:layout_gravity="top"
        android:layout_gravity="center"
        android:paddingVertical="8dp"
        android:paddingHorizontal="16dp"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        android:paddingHorizontal="2dp"
        android:layout_width="136dp"
        android:layout_height="51dp">
        <TextView
            android:layout_weight="6"
            android:layout_width="0dp"
            android:layout_height="match_parent"/>

        <LinearLayout
            android:layout_weight="34"
            android:orientation="vertical"
            android:paddingEnd="20dp"
            android:gravity="start|bottom"
            android:gravity="start|center_vertical"
            android:layout_gravity="start|center_vertical"
            android:layout_width="0dp"
            android:layout_height="match_parent">
            <TextView
                android:layout_weight="1"
                android:layout_width="wrap_content"
            android:layout_height="wrap_content">

                android:layout_height="wrap_content"/>
            <ImageView
                android:background="@drawable/ic_person"
                android:layout_width="48dp"
                android:layout_height="48dp" />
                android:layout_weight="1"
                android:gravity="start"
                android:layout_gravity="start"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/ic_avatar_with_badge"
                android:adjustViewBounds="true"
                android:scaleType="centerInside" />

            <TextView
                android:id="@+id/name"
@@ -54,16 +67,25 @@
                android:ellipsize="end"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
            <TextView
                android:layout_weight="1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>
        </LinearLayout>

        <TextView
            android:layout_weight="52"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:ellipsize="end"
            android:maxLines="2"
            android:text="@string/empty_status"
            android:textColor="?android:attr/textColorPrimary"
            android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title"
            android:textSize="12sp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:maxLines="3"
            android:ellipsize="end" />
            android:textColor="?android:attr/textColorPrimary"
            android:textSize="12sp" />
        <TextView
            android:layout_weight="6"
            android:layout_width="0dp"
            android:layout_height="wrap_content"/>
    </LinearLayout>
</LinearLayout>
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -2932,7 +2932,7 @@
    <string name="audio_status">Listening</string>
    <!-- Status text on the Conversation widget for playing a game [CHAR LIMIT=20] -->
    <string name="game_status">Playing</string>
    <!-- Empty user name before user has selected a friend for their Conversation widget [CHAR LIMIT=20] -->
    <!-- Empty user name before user has selected a friend for their Conversation widget [CHAR LIMIT=10] -->
    <string name="empty_user_name">Friends</string>
    <!-- Empty status shown before user has selected a friend for their Conversation widget [CHAR LIMIT=20] -->
    <string name="empty_status">Let’s chat tonight!</string>