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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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/. -->
     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">
    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">
    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"/>
    30     </org.mozilla.gecko.widget.TabThumbnailWrapper>
    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"/>
    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"/>
    55 </org.mozilla.gecko.widget.TabRow>

mercurial