1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-24 18:02:20 -05:00

Add header to navigation drawer.

This commit is contained in:
Sebastian Kaspari 2015-04-06 21:42:06 +02:00
parent 1e0ac76c15
commit c4f3fd1cd8

View File

@ -28,7 +28,7 @@ along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
android:clickable="true"
android:fitsSystemWindows="true"
android:paddingTop="24dp"
app:insetForeground="#4000">
app:insetForeground="@color/primary_dark">
<LinearLayout
android:id="@+id/drawer_content"
@ -36,6 +36,23 @@ along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="@dimen/abc_action_bar_default_height_material"
android:background="@color/primary"
android:elevation="4dp"
android:layout_toRightOf="@id/icon"
android:layout_centerVertical="true"
android:paddingLeft="16dp"
android:drawablePadding="8dp"
android:drawableLeft="@drawable/ic_notification"
android:layout_marginBottom="4dp"
android:gravity="center_vertical"
android:textColor="@color/abc_primary_text_material_dark"
android:text="@string/app_name"
style="@android:style/TextAppearance.Material.Widget.ActionBar.Title"/>
<TextView
android:layout_width="match_parent"
android:layout_height="48dp"