Anthony Restaino
9 years ago
2 changed files with 67 additions and 75 deletions
@ -1,61 +1,53 @@
@@ -1,61 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:id="@+id/tab_item_background" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="56dp" |
||||
android:clickable="true" |
||||
android:gravity="center_vertical" |
||||
android:orientation="horizontal"> |
||||
<LinearLayout android:id="@+id/tab_item_background" |
||||
xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="56dp" |
||||
android:background="?attr/listBackground" |
||||
android:clickable="true" |
||||
android:gravity="center_vertical" |
||||
android:orientation="horizontal" |
||||
android:weightSum="1"> |
||||
|
||||
<LinearLayout |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
android:background="?attr/listBackground" |
||||
<ImageView |
||||
android:id="@+id/faviconTab" |
||||
android:layout_width="24dp" |
||||
android:layout_height="24dp" |
||||
android:layout_marginLeft="16dp" |
||||
android:layout_marginRight="16dp" |
||||
android:contentDescription="Favicon" |
||||
android:gravity="center_vertical"/> |
||||
|
||||
<TextView |
||||
android:id="@+id/textTab" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginLeft="16dp" |
||||
android:layout_marginRight="16dp" |
||||
android:layout_weight="1" |
||||
android:ellipsize="end" |
||||
android:fontFamily="sans-serif-light" |
||||
android:gravity="center_vertical" |
||||
android:orientation="horizontal" |
||||
android:weightSum="1"> |
||||
android:maxLines="1" |
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall" |
||||
android:singleLine="true" |
||||
android:textAppearance="?android:attr/textAppearanceListItemSmall"/> |
||||
|
||||
<ImageView |
||||
android:id="@+id/faviconTab" |
||||
android:layout_width="24dp" |
||||
android:layout_height="24dp" |
||||
android:layout_marginLeft="16dp" |
||||
android:layout_marginRight="16dp" |
||||
android:contentDescription="Favicon" |
||||
android:gravity="center_vertical" /> |
||||
<FrameLayout |
||||
android:id="@+id/deleteAction" |
||||
android:layout_width="48dp" |
||||
android:layout_height="48dp" |
||||
android:layout_gravity="center_vertical" |
||||
android:layout_marginRight="4dp" |
||||
android:background="?attr/actionBarItemBackground" |
||||
android:gravity="center"> |
||||
|
||||
<TextView |
||||
android:id="@+id/textTab" |
||||
android:layout_width="0dp" |
||||
<ImageView |
||||
android:id="@+id/deleteButton" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginLeft="16dp" |
||||
android:layout_marginRight="16dp" |
||||
android:layout_weight="1" |
||||
android:ellipsize="end" |
||||
android:fontFamily="sans-serif-light" |
||||
android:gravity="center_vertical" |
||||
android:maxLines="1" |
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall" |
||||
android:singleLine="true" |
||||
android:textAppearance="?android:attr/textAppearanceListItemSmall" /> |
||||
|
||||
<FrameLayout |
||||
android:id="@+id/deleteAction" |
||||
android:layout_width="48dp" |
||||
android:layout_height="48dp" |
||||
android:layout_gravity="center_vertical" |
||||
android:layout_marginRight="4dp" |
||||
android:background="?attr/actionBarItemBackground" |
||||
android:gravity="center"> |
||||
|
||||
<ImageView |
||||
android:id="@+id/deleteButton" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_gravity="center" |
||||
android:contentDescription="Delete Tab" |
||||
android:src="@drawable/ic_action_delete" /> |
||||
</FrameLayout> |
||||
</LinearLayout> |
||||
|
||||
android:layout_gravity="center" |
||||
android:contentDescription="Delete Tab" |
||||
android:src="@drawable/ic_action_delete"/> |
||||
</FrameLayout> |
||||
</LinearLayout> |
Loading…
Reference in new issue