mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-06-18 02:38:27 +00:00
72 lines
3.8 KiB
XML
72 lines
3.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
|
|
<org.mozilla.gecko.tabs.TabsLayoutItemView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:gecko="http://schemas.android.com/apk/res-auto"
|
|
style="@style/TabsItem"
|
|
android:id="@+id/info"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:duplicateParentState="true"
|
|
android:paddingLeft="@dimen/tab_highlight_stroke_width"
|
|
android:paddingRight="@dimen/tab_highlight_stroke_width"
|
|
android:paddingBottom="@dimen/tab_highlight_stroke_width">
|
|
|
|
<org.mozilla.gecko.widget.FadedSingleColorTextView
|
|
android:id="@+id/title"
|
|
android:layout_width="0dip"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1.0"
|
|
style="@style/TabLayoutItemTextAppearance"
|
|
android:textSize="14sp"
|
|
android:textColor="@color/tab_item_title"
|
|
android:singleLine="true"
|
|
android:duplicateParentState="true"
|
|
gecko:fadeWidth="15dp"
|
|
android:paddingRight="5dp"
|
|
android:drawablePadding="6dp"/>
|
|
|
|
<!-- Use of baselineAlignBottom only supported from API 11+ - if this needs to work on lower API versions
|
|
we'll need to override getBaseLine() and return image height, but we assume this won't happen -->
|
|
<ImageView android:id="@+id/close"
|
|
style="@style/TabsItemClose"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:scaleType="center"
|
|
android:baselineAlignBottom="true"
|
|
android:background="@android:color/transparent"
|
|
android:contentDescription="@string/close_tab"
|
|
android:src="@drawable/tab_item_close_button"
|
|
android:duplicateParentState="true"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- We set state_private on this View dynamically in TabsGridLayout. -->
|
|
<org.mozilla.gecko.widget.TabThumbnailWrapper
|
|
android:id="@+id/wrapper"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:padding="@dimen/tab_highlight_stroke_width"
|
|
android:background="@drawable/tab_thumbnail"
|
|
android:duplicateParentState="true"
|
|
android:clipToPadding="false">
|
|
|
|
<org.mozilla.gecko.tabs.TabsPanelThumbnailView android:id="@+id/thumbnail"
|
|
android:layout_width="@dimen/tab_thumbnail_width"
|
|
android:layout_height="@dimen/tab_thumbnail_height"
|
|
android:elevation="2dp"
|
|
android:outlineProvider="bounds"
|
|
/>
|
|
|
|
</org.mozilla.gecko.widget.TabThumbnailWrapper>
|
|
|
|
</org.mozilla.gecko.tabs.TabsLayoutItemView>
|