diff options
author | Anthony Chen <ajchen@google.com> | 2017-11-14 16:39:28 -0800 |
---|---|---|
committer | Anthony Chen <ajchen@google.com> | 2017-11-14 16:39:28 -0800 |
commit | c5bf1dd273782b27f218c022333a1c01f44ba949 (patch) | |
tree | 74b92f58a4da93dc075d2cd36ead2523fb12e6d1 | |
parent | 24c62e0a4dc16e7349d31959473c927608b78cb1 (diff) | |
download | Messenger-c5bf1dd273782b27f218c022333a1c01f44ba949.tar.gz |
Migrate to dimensions in car support library.
Test: Build messenger and deploy to mojave.
Bug: 69271624
Change-Id: I81bcc04857c2bc1ca475360836155048f214f105
-rw-r--r-- | res/layout/play_message_layout.xml | 14 | ||||
-rw-r--r-- | res/values/dimens.xml | 1 |
2 files changed, 8 insertions, 7 deletions
diff --git a/res/layout/play_message_layout.xml b/res/layout/play_message_layout.xml index 39812ab..9eaa408 100644 --- a/res/layout/play_message_layout.xml +++ b/res/layout/play_message_layout.xml @@ -24,8 +24,8 @@ android:background="@drawable/round_corner" android:animateLayoutChanges="true" android:alpha="0" - android:layout_marginStart="@dimen/side_margin" - android:layout_marginEnd="@dimen/side_margin" + android:layout_marginStart="@dimen/car_margin" + android:layout_marginEnd="@dimen/car_margin" android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout @@ -99,7 +99,7 @@ android:gravity="center" android:visibility="gone" android:layout_width="match_parent" - android:layout_height="@dimen/single_line_item_height"> + android:layout_height="@dimen/car_single_line_list_item_height"> </TextView> <LinearLayout @@ -107,7 +107,7 @@ android:background="@color/car_card" android:orientation="horizontal" android:layout_width="match_parent" - android:layout_height="@dimen/single_line_item_height"> + android:layout_height="@dimen/car_single_line_list_item_height"> <TextView android:id="@+id/left_btn" style="@style/CarBody1" @@ -124,8 +124,8 @@ <ImageView android:id="@+id/voice_icon" - android:layout_width="@dimen/stream_button_icon_size" - android:layout_height="@dimen/stream_button_icon_size" + android:layout_width="@dimen/car_primary_icon_size" + android:layout_height="@dimen/car_primary_icon_size" android:layout_gravity="center" android:src="@drawable/ic_voice_out" android:scaleType="fitCenter"> @@ -145,4 +145,4 @@ android:layout_height="wrap_content"> </TextView> </LinearLayout> -</LinearLayout>
\ No newline at end of file +</LinearLayout> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index b0eafa5..1fb98d7 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -15,6 +15,7 @@ ~ limitations under the License --> <resources> + <dimen name="car_card_view_elevation">8dp</dimen> <dimen name="notification_contact_photo_size">300dp</dimen> <dimen name="voice_plate_button_margin">32dp</dimen> <dimen name="big_btn_bg_width">614dp</dimen> |