Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: chrome/android/java/res/layout/app_banner_view.xml

Issue 141853007: Update the AppBannerView appearance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another update for tablets Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 --> 5 -->
6 6
7 <org.chromium.chrome.browser.banners.AppBannerView 7 <org.chromium.chrome.browser.banners.AppBannerView
8 xmlns:android="http://schemas.android.com/apk/res/android" 8 xmlns:android="http://schemas.android.com/apk/res/android"
9 android:id="@+id/app_banner_view" 9 android:id="@+id/app_banner_view"
10 android:background="@drawable/app_banner_background" 10 android:background="@drawable/card_background_default"
newt (away) 2014/02/19 21:52:49 so you're just adding xxhdpi assets and letting An
gone 2014/02/19 23:31:43 Guess so, yeah. That's the only asset size the UX
11 android:layout_width="wrap_content" 11 android:layout_width="match_parent"
12 android:layout_height="wrap_content" 12 android:layout_height="wrap_content">
13 android:layout_marginBottom="@dimen/app_banner_margin_bottom">
14 <ImageView 13 <ImageView
15 android:id="@+id/app_icon" 14 android:id="@+id/app_icon"
16 android:adjustViewBounds="true" 15 android:adjustViewBounds="true"
17 android:layout_width="wrap_content" 16 android:layout_width="wrap_content"
18 android:layout_height="@dimen/app_banner_icon_size" 17 android:layout_height="@dimen/app_banner_icon_size"
19 android:layout_marginEnd="@dimen/app_banner_icon_margin_end" /> 18 android:layout_marginEnd="@dimen/app_banner_icon_margin_end" />
20 <TextView 19 <TextView
21 android:id="@+id/app_title" 20 android:id="@+id/app_title"
22 android:textAppearance="@style/AppBannerTitle" 21 android:textAppearance="@style/AppBannerTitle"
22 android:includeFontPadding="false"
23 android:minLines="1" 23 android:minLines="1"
24 android:maxLines="1"
24 android:ellipsize="end" 25 android:ellipsize="end"
25 android:layout_width="wrap_content" 26 android:layout_width="wrap_content"
26 android:layout_height="wrap_content" 27 android:layout_height="wrap_content"
27 android:layout_marginTop="@dimen/app_banner_text_margin_top" /> 28 android:layout_marginTop="@dimen/app_banner_text_margin_top"
29 android:layout_marginBottom="@dimen/app_banner_text_margin_bottom" / >
28 <Button 30 <Button
29 android:id="@+id/app_install_button" 31 android:id="@+id/app_install_button"
30 android:background="@color/app_banner_install_button" 32 android:background="@color/app_banner_install_button_bg"
31 android:text="Install" 33 android:text="Install"
32 android:textAppearance="@style/AppBannerInstallButton" 34 android:textAppearance="@style/AppBannerInstallButton"
33 android:paddingStart="@dimen/app_banner_button_padding_sides" 35 android:paddingStart="@dimen/app_banner_button_padding_sides"
34 android:paddingEnd="@dimen/app_banner_button_padding_sides" 36 android:paddingEnd="@dimen/app_banner_button_padding_sides"
35 android:paddingTop="@dimen/app_banner_button_padding_above_below" 37 android:paddingTop="@dimen/app_banner_button_padding_above_below"
36 android:paddingBottom="@dimen/app_banner_button_padding_above_below" 38 android:paddingBottom="@dimen/app_banner_button_padding_above_below"
37 android:layout_width="wrap_content" 39 android:layout_width="wrap_content"
38 android:layout_height="@dimen/app_banner_button_height" 40 android:layout_height="@dimen/app_banner_button_height"
39 android:layout_marginTop="@dimen/app_banner_margin_full" 41 android:layout_marginTop="@dimen/app_banner_button_margin_top"
40 android:layout_marginStart="@dimen/app_banner_margin_full" /> 42 android:layout_marginStart="@dimen/app_banner_button_margin_start" / >
41 <ImageView 43 <ImageView
42 android:id="@+id/store_logo" 44 android:id="@+id/store_logo"
43 android:src="@drawable/google_play_logo" 45 android:src="@drawable/logo_play_bw"
newt (away) 2014/02/19 21:52:49 "google_play_logo" seems like a clearer name
gone 2014/02/19 23:31:43 Agreed -- renaming his asset.
44 android:adjustViewBounds="true" 46 android:adjustViewBounds="true"
45 android:layout_width="wrap_content" 47 android:layout_width="wrap_content"
46 android:layout_height="@dimen/app_banner_logo_height" 48 android:layout_height="@dimen/app_banner_logo_height"
47 android:layout_marginBottom="@dimen/app_banner_logo_margin_bottom" / > 49 android:layout_marginBottom="@dimen/app_banner_logo_margin_bottom" / >
48 <ImageView 50 <org.chromium.chrome.browser.banners.RatingView
49 android:id="@+id/app_rating" 51 android:id="@+id/app_rating"
50 android:adjustViewBounds="true" 52 android:adjustViewBounds="true"
51 android:layout_width="wrap_content" 53 android:layout_width="wrap_content"
52 android:layout_height="@dimen/app_banner_star_height" /> 54 android:layout_height="@dimen/app_banner_star_height" />
53 </org.chromium.chrome.browser.banners.AppBannerView> 55 </org.chromium.chrome.browser.banners.AppBannerView>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698