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

branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
equal deleted inserted replaced
-1:000000000000 0:bda8bd2264d2
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5
6 <org.mozilla.gecko.widget.TabRow xmlns:android="http://schemas.android.com/apk/res/android"
7 style="@style/TabsItem"
8 android:focusable="true"
9 android:id="@+id/info"
10 android:layout_width="fill_parent"
11 android:layout_height="wrap_content"
12 android:paddingLeft="12dip"
13 android:paddingTop="6dip"
14 android:paddingBottom="6dip"
15 android:background="@drawable/tab_row">
16
17 <org.mozilla.gecko.widget.TabThumbnailWrapper
18 android:id="@+id/wrapper"
19 android:layout_width="wrap_content"
20 android:layout_height="wrap_content"
21 android:padding="4dip"
22 android:background="@drawable/tab_thumbnail"
23 android:duplicateParentState="true">
24
25 <org.mozilla.gecko.widget.ThumbnailView android:id="@+id/thumbnail"
26 android:layout_width="@dimen/tab_thumbnail_width"
27 android:layout_height="@dimen/tab_thumbnail_height"
28 android:src="@drawable/tab_thumbnail_default"/>
29
30 </org.mozilla.gecko.widget.TabThumbnailWrapper>
31
32 <TextView android:id="@+id/title"
33 android:layout_width="0dip"
34 android:layout_height="fill_parent"
35 android:layout_weight="1.0"
36 android:paddingTop="4dip"
37 android:paddingLeft="8dip"
38 android:paddingRight="4dip"
39 style="@style/TabRowTextAppearance"
40 android:textColor="#FFFFFFFF"
41 android:textSize="14sp"
42 android:singleLine="false"
43 android:maxLines="4"
44 android:duplicateParentState="true"/>
45
46 <ImageButton android:id="@+id/close"
47 style="@style/TabsItemClose"
48 android:layout_width="34dip"
49 android:layout_height="fill_parent"
50 android:background="@drawable/action_bar_button_inverse"
51 android:scaleType="center"
52 android:contentDescription="@string/close_tab"
53 android:src="@drawable/tab_close"/>
54
55 </org.mozilla.gecko.widget.TabRow>

mercurial