Fixed bug with fragment background

This commit is contained in:
Anthony Restaino 2016-03-09 22:53:11 -05:00
parent caa0de84ce
commit ee6314f521
3 changed files with 12 additions and 9 deletions

View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/drawerBackground"
android:clickable="true" android:clickable="true"
android:orientation="vertical"> android:orientation="vertical">
@ -26,7 +28,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:contentDescription="Favicon" android:contentDescription="Favicon"
android:src="@drawable/ic_action_star" /> android:src="@drawable/ic_action_star"/>
</FrameLayout> </FrameLayout>
<TextView <TextView
@ -38,7 +40,7 @@
android:maxLines="1" android:maxLines="1"
android:minHeight="?android:attr/listPreferredItemHeight" android:minHeight="?android:attr/listPreferredItemHeight"
android:text="@string/action_bookmarks" android:text="@string/action_bookmarks"
android:textAppearance="?android:attr/textAppearanceLarge" /> android:textAppearance="?android:attr/textAppearanceLarge"/>
</LinearLayout> </LinearLayout>
<ListView <ListView
@ -48,7 +50,7 @@
android:layout_weight="1" android:layout_weight="1"
android:divider="@null" android:divider="@null"
android:dividerHeight="0dp" android:dividerHeight="0dp"
android:listSelector="?attr/listBackground" /> android:listSelector="?attr/listBackground"/>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -76,7 +78,7 @@
android:paddingLeft="4dp" android:paddingLeft="4dp"
android:paddingRight="4dp" android:paddingRight="4dp"
android:paddingTop="4dp" android:paddingTop="4dp"
android:src="@drawable/ic_action_desktop" /> android:src="@drawable/ic_action_desktop"/>
</FrameLayout> </FrameLayout>
<FrameLayout <FrameLayout
@ -97,7 +99,7 @@
android:paddingLeft="4dp" android:paddingLeft="4dp"
android:paddingRight="4dp" android:paddingRight="4dp"
android:paddingTop="4dp" android:paddingTop="4dp"
android:src="@drawable/ic_action_star" /> android:src="@drawable/ic_action_star"/>
</FrameLayout> </FrameLayout>
<FrameLayout <FrameLayout
@ -118,7 +120,7 @@
android:paddingLeft="4dp" android:paddingLeft="4dp"
android:paddingRight="4dp" android:paddingRight="4dp"
android:paddingTop="4dp" android:paddingTop="4dp"
android:src="@drawable/ic_action_reading" /> android:src="@drawable/ic_action_reading"/>
</FrameLayout> </FrameLayout>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

View File

@ -3,6 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/drawerBackground"
android:clickable="true" android:clickable="true"
android:orientation="vertical"> android:orientation="vertical">

View File

@ -12,9 +12,9 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:fadingEdge="horizontal"
android:overScrollMode="never" android:overScrollMode="never"
android:scrollbars="none" android:scrollbars="none"/>
android:fadingEdge="horizontal"/>
<ImageView <ImageView
android:id="@+id/new_tab_button" android:id="@+id/new_tab_button"