]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/layout/navigation_header.xml
Fix the drawer layouts on devices with notches. https://redmine.stoutner.com/issues/250
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / navigation_header.xml
index 7ed9685ec9653b1b18c116b435e91df814e0450c..fe46e20e150b2d08b7cc31d21d052ff37aec8aed 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 
 <!--
-  Copyright 2016 Soren Stoutner <soren@stoutner.com>.
+  Copyright © 2016-2017 Soren Stoutner <soren@stoutner.com>.
 
   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
 
   You should have received a copy of the GNU General Public License
   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
 
-<!-- We can remove android:paddingLeft and android:PaddingRight once API >=17. -->
 <TextView
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:id="@+id/navigationText"
-    android:layout_width="match_parent"
     android:layout_height="wrap_content"
+    android:layout_width="match_parent"
     android:text="@string/navigation"
-    android:paddingTop="60dp"
-    android:paddingBottom="8dp"
-    android:paddingLeft="15dp"
-    android:paddingRight="15dp"
-    android:paddingStart="15dp"
     android:textStyle="bold"
     android:textSize="20sp"
-    android:background="@color/blue"
-    android:textColor="@color/white" />
-
+    android:background="?attr/navigationHeaderBackground"
+    android:textColor="?attr/navigationHeaderTextColor" />
\ No newline at end of file