| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright 2014 The Chromium Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style license that can be |
| found in the LICENSE file. |
| --> |
| |
| <org.chromium.chrome.browser.banners.AppBannerView |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/app_banner_view" |
| android:background="@drawable/card_background_default" |
| android:clickable="true" |
| android:focusableInTouchMode="true" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| <!-- View showing the icon. --> |
| <ImageView |
| android:id="@+id/app_icon" |
| android:adjustViewBounds="true" |
| android:layout_width="wrap_content" |
| android:layout_height="@dimen/app_banner_icon_size" |
| android:layout_marginEnd="@dimen/app_banner_icon_margin_end" /> |
| |
| <!-- View showing the app's title. --> |
| <TextView |
| android:id="@+id/app_title" |
| android:textAppearance="@style/AppBannerTitle" |
| android:includeFontPadding="false" |
| android:lines="1" |
| android:ellipsize="end" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/app_banner_title_margin_top" |
| android:layout_marginBottom="@dimen/app_banner_title_margin_bottom" /> |
| |
| <!-- Button that triggers installation and opening of the app. --> |
| <Button |
| android:id="@+id/app_install_button" |
| style="@style/AppBannerButton" |
| android:textColor="@color/app_banner_install_button_fg" |
| android:ellipsize="end" |
| android:singleLine="true" |
| android:minHeight="@dimen/app_banner_button_height" |
| android:paddingStart="@dimen/app_banner_button_padding_sides" |
| android:paddingEnd="@dimen/app_banner_button_padding_sides" |
| android:paddingTop="@dimen/app_banner_button_padding_above_below" |
| android:paddingBottom="@dimen/app_banner_button_padding_above_below" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/app_banner_button_margin_top" /> |
| |
| <!-- Logo for the store. --> |
| <ImageView |
| android:id="@+id/store_logo" |
| android:src="@drawable/google_play_logo" |
| android:adjustViewBounds="true" |
| android:layout_width="wrap_content" |
| android:layout_height="@dimen/app_banner_logo_height" |
| android:layout_marginTop="@dimen/app_banner_logo_margin_top" |
| android:layout_marginBottom="@dimen/app_banner_logo_margin_bottom" |
| android:layout_marginEnd="@dimen/app_banner_logo_margin_end"/> |
| |
| <!-- View showing how well the app is rated. --> |
| <org.chromium.chrome.browser.banners.RatingView |
| android:id="@+id/app_rating" |
| android:adjustViewBounds="true" |
| android:layout_width="wrap_content" |
| android:layout_height="@dimen/app_banner_star_height" /> |
| |
| <!-- Button that closes the banner. --> |
| <ImageButton |
| android:id="@+id/close_button" |
| android:contentDescription="@string/infobar_close" |
| android:adjustViewBounds="true" |
| android:src="@drawable/infobar_close_button" |
| android:background="@drawable/app_banner_button_close" |
| android:padding="@dimen/app_banner_close_button_padding" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content"/> |
| |
| <!-- View covering the entire banner. Used to indicate the banner is highlighted. --> |
| <View |
| android:id="@+id/banner_highlight" |
| android:background="@color/app_banner_card_highlight" |
| android:visibility="gone" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" /> |
| </org.chromium.chrome.browser.banners.AppBannerView> |