mobile/android/base/resources/layout/home_banner_content.xml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/resources/layout/home_banner_content.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +<?xml version="1.0" encoding="utf-8"?>
     1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.8 +
     1.9 +<merge xmlns:android="http://schemas.android.com/apk/res/android"
    1.10 +       xmlns:gecko="http://schemas.android.com/apk/res-auto">
    1.11 +
    1.12 +     <ImageView android:id="@+id/icon"
    1.13 +                android:layout_width="48dip"
    1.14 +                android:layout_height="48dip"
    1.15 +                android:layout_marginLeft="10dp"
    1.16 +                android:scaleType="centerInside"/>
    1.17 +
    1.18 +     <org.mozilla.gecko.widget.EllipsisTextView
    1.19 +         android:id="@+id/text"
    1.20 +         android:layout_width="0dip"
    1.21 +         android:layout_height="fill_parent"
    1.22 +         android:layout_weight="1"
    1.23 +         android:layout_marginLeft="10dp"
    1.24 +         android:paddingTop="7dp"
    1.25 +         android:paddingBottom="7dp"
    1.26 +         android:textAppearance="@style/TextAppearance.Widget.HomeBanner"
    1.27 +         android:layout_gravity="bottom"
    1.28 +         android:gravity="center_vertical"
    1.29 +         gecko:ellipsizeAtLine="3"/>
    1.30 +
    1.31 +    <ImageButton android:id="@+id/close"
    1.32 +                 android:layout_width="34dip"
    1.33 +                 android:layout_height="fill_parent"
    1.34 +                 android:background="@drawable/home_banner"
    1.35 +                 android:scaleType="center"
    1.36 +                 android:contentDescription="@string/close_tab"
    1.37 +                 android:src="@drawable/tab_close"/>
    1.38 +
    1.39 +</merge>

mercurial