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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/resources/layout/tabs_item_cell.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,61 @@
     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 +<org.mozilla.gecko.widget.TabRow xmlns:android="http://schemas.android.com/apk/res/android"
    1.10 +                                 style="@style/TabsItem"
    1.11 +                                 android:focusable="true"
    1.12 +                                 android:id="@+id/info"
    1.13 +                                 android:layout_width="fill_parent"
    1.14 +                                 android:layout_height="wrap_content"
    1.15 +                                 android:paddingTop="6dip"
    1.16 +                                 android:paddingBottom="6dip"
    1.17 +                                 android:paddingLeft="1dip"
    1.18 +                                 android:paddingRight="1dip"
    1.19 +                                 android:gravity="center">
    1.20 +
    1.21 +    <RelativeLayout android:layout_width="wrap_content"
    1.22 +                    android:layout_height="wrap_content"
    1.23 +                    android:layout_margin="6dip"
    1.24 +                    android:padding="4dip"
    1.25 +                    android:background="@drawable/tab_thumbnail"
    1.26 +                    android:duplicateParentState="true">
    1.27 +
    1.28 +        <org.mozilla.gecko.widget.ThumbnailView android:id="@+id/thumbnail"
    1.29 +                                                android:layout_width="@dimen/tab_thumbnail_width"
    1.30 +                                                android:layout_height="@dimen/tab_thumbnail_height"
    1.31 +                                                android:src="@drawable/tab_thumbnail_default"/>
    1.32 +
    1.33 +        <LinearLayout android:layout_width="@dimen/tab_thumbnail_width"
    1.34 +                      android:layout_height="wrap_content"
    1.35 +                      android:orientation="horizontal"
    1.36 +                      android:background="#EFFF"
    1.37 +                      android:layout_below="@id/thumbnail"
    1.38 +                      android:duplicateParentState="true">
    1.39 +
    1.40 +            <TextView android:id="@+id/title"
    1.41 +                      android:layout_width="0dip"
    1.42 +                      android:layout_height="wrap_content"
    1.43 +                      android:layout_weight="1.0"
    1.44 +                      android:padding="4dip"
    1.45 +                      style="@style/TabRowTextAppearance"
    1.46 +                      android:textSize="12sp"
    1.47 +                      android:textColor="#FF222222"
    1.48 +                      android:singleLine="true"
    1.49 +                      android:duplicateParentState="true"/>
    1.50 +
    1.51 +            <ImageButton android:id="@+id/close"
    1.52 +                         style="@style/TabsItemClose"
    1.53 +                         android:layout_width="32dip"
    1.54 +                         android:layout_height="fill_parent"
    1.55 +                         android:background="@drawable/action_bar_button_inverse"
    1.56 +                         android:scaleType="center"
    1.57 +                         android:contentDescription="@string/close_tab"
    1.58 +                         android:src="@drawable/tab_close"/>
    1.59 +
    1.60 +        </LinearLayout>
    1.61 +
    1.62 +    </RelativeLayout>
    1.63 +
    1.64 +</org.mozilla.gecko.widget.TabRow>

mercurial