mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-07 13:07:22 +00:00
Set up with Fragments, DrawerLayout and Adaptive Icons
This commit is contained in:
1 parent
33698b8b8a
commit
bff8e44d28
53 files changed
+966
-7
No files matched your search
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/nav_header_height"
|
||||
android:background="@drawable/side_nav_bar"
|
||||
android:gravity="bottom"
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/drawer_header_img"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:contentDescription="@string/app_name"
|
||||
app:layout_constraintBottom_toTopOf="@+id/drawer_header_title"
|
||||
app:layout_constraintStart_toStartOf="@+id/drawer_header_title"
|
||||
app:srcCompat="@drawable/ic_sat" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/drawer_header_title"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:text="@string/nav_header_title"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Title"
|
||||
android:textColor="@color/colorText"
|
||||
app:layout_constraintBottom_toTopOf="@+id/drawer_header_subtitle"
|
||||
app:layout_constraintStart_toStartOf="@+id/drawer_header_subtitle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/drawer_header_subtitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:text="@string/nav_header_subtitle"
|
||||
android:textColor="@color/colorText"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Reference in new issue
Block a user