mobile/android/base/resources/layout/tabs_item_row.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_row.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,55 @@
     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:paddingLeft="12dip"
    1.16 +                                 android:paddingTop="6dip"
    1.17 +                                 android:paddingBottom="6dip"
    1.18 +                                 android:background="@drawable/tab_row">
    1.19 +
    1.20 +    <org.mozilla.gecko.widget.TabThumbnailWrapper 
    1.21 +                  android:id="@+id/wrapper"
    1.22 +	          android:layout_width="wrap_content"
    1.23 +                  android:layout_height="wrap_content"
    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 +    </org.mozilla.gecko.widget.TabThumbnailWrapper>
    1.34 +
    1.35 +    <TextView android:id="@+id/title"
    1.36 +              android:layout_width="0dip"
    1.37 +              android:layout_height="fill_parent"
    1.38 +              android:layout_weight="1.0"
    1.39 +              android:paddingTop="4dip"
    1.40 +              android:paddingLeft="8dip"
    1.41 +              android:paddingRight="4dip"
    1.42 +              style="@style/TabRowTextAppearance"
    1.43 +              android:textColor="#FFFFFFFF"
    1.44 +              android:textSize="14sp"
    1.45 +              android:singleLine="false"
    1.46 +              android:maxLines="4"
    1.47 +              android:duplicateParentState="true"/>
    1.48 +
    1.49 +    <ImageButton android:id="@+id/close"
    1.50 +                 style="@style/TabsItemClose"
    1.51 +                 android:layout_width="34dip"
    1.52 +                 android:layout_height="fill_parent"
    1.53 +                 android:background="@drawable/action_bar_button_inverse"
    1.54 +                 android:scaleType="center"
    1.55 +                 android:contentDescription="@string/close_tab"
    1.56 +                 android:src="@drawable/tab_close"/>
    1.57 +
    1.58 +</org.mozilla.gecko.widget.TabRow>

mercurial