OLD | NEW |
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" |
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_title_margin_top" |
| 29 android:layout_marginBottom="@dimen/app_banner_title_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:minHeight="@dimen/app_banner_button_height" |
32 android:textAppearance="@style/AppBannerInstallButton" | 34 android:textAppearance="@style/AppBannerButton" |
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="wrap_content" |
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/google_play_logo" |
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> |
OLD | NEW |