These layouts were misaligned. You won't believe what happened when I fixed them!

This commit is contained in:
Anthony Restaino 2014-08-08 17:57:24 -04:00
parent b822573a2f
commit 99d0f8e8c1
3 changed files with 25 additions and 30 deletions

View File

@ -54,16 +54,14 @@
<ImageView
android:id="@+id/plusIcon"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_marginRight="2dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:contentDescription="Favicon"
android:gravity="center_vertical"
android:paddingLeft="2dp"
android:paddingRight="2dp"
android:src="@drawable/ic_action_plus" >
</ImageView>
@ -175,16 +173,14 @@
<ImageView
android:id="@+id/starIcon"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_marginRight="2dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:contentDescription="Favicon"
android:gravity="center_vertical"
android:paddingLeft="2dp"
android:paddingRight="2dp"
android:src="@drawable/ic_action_star" >
</ImageView>

View File

@ -8,14 +8,12 @@
<ImageView
android:id="@+id/favicon1"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_width="20dp"
android:layout_height="20dp"
android:contentDescription="Favicon"
android:gravity="center_vertical"
android:layout_marginLeft="10dp"
android:layout_marginRight="2dp"
android:paddingLeft="2dp"
android:paddingRight="2dp" >
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp" >
</ImageView>
<TextView
@ -25,8 +23,10 @@
android:gravity="center_vertical"
android:fontFamily="sans-serif-light"
android:maxLines="1"
android:singleLine="true"
android:ellipsize="end"
android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:paddingRight="4dp"
android:paddingRight="16dp"
android:textAppearance="?android:attr/textAppearanceListItemSmall"
android:textColor="@color/dark_text" />

View File

@ -8,16 +8,14 @@
<ImageView
android:id="@+id/favicon1"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_marginRight="2dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:contentDescription="Favicon"
android:gravity="center_vertical"
android:paddingLeft="2dp"
android:paddingRight="2dp" >
android:gravity="center_vertical" >
</ImageView>
<TextView
@ -27,10 +25,12 @@
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/delete1"
android:layout_toRightOf="@+id/favicon1"
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"
android:textColor="@color/dark_text" />
@ -40,12 +40,11 @@
android:layout_height="30dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginLeft="6dp"
android:layout_marginRight="6dp"
android:layout_marginRight="13dp"
android:alpha="0.5"
android:contentDescription="Delete Tab"
android:gravity="center_vertical"
android:paddingLeft="2dp"
android:paddingRight="2dp"
android:padding="3dp"
android:src="@drawable/ic_action_delete" >
</ImageView>