diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-08-15 21:16:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-15 21:16:30 -0500 |
commit | f6438b7cd9a8e2091971ae65892e3ff10d89a572 (patch) | |
tree | a017f78b65b01b87519ff29d17b5f61cd9701d74 /app/src/main/res/layout | |
parent | 1643931494c2b9411a05fdefe8c03416fe072142 (diff) | |
parent | b4078fe23a7cbae5eb2a017663c5b46990defcb7 (diff) | |
download | wiimmfi-watcher-f6438b7cd9a8e2091971ae65892e3ff10d89a572.tar wiimmfi-watcher-f6438b7cd9a8e2091971ae65892e3ff10d89a572.tar.gz wiimmfi-watcher-f6438b7cd9a8e2091971ae65892e3ff10d89a572.tar.bz2 |
Merge pull request #1 from brysonsteck/detour
adding pictures instead
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_main.xml | 22 | ||||
-rw-r--r-- | app/src/main/res/layout/activity_wiimmfi.xml | 43 |
2 files changed, 53 insertions, 12 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index bf5adcd..863ff0c 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -31,6 +31,28 @@ app:title="Wiimmfi Watcher" app:titleTextColor="@color/white" /> + <com.google.android.material.tabs.TabLayout + android:id="@+id/tablayout_main" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/blue_700" + app:tabIndicatorColor="@color/white" + app:tabMode="fixed" + app:tabTextColor="@color/white"> + + <com.google.android.material.tabs.TabItem + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Friend Code" /> + + <com.google.android.material.tabs.TabItem + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Mii Name" /> + + </com.google.android.material.tabs.TabLayout> + + </com.google.android.material.appbar.AppBarLayout> <androidx.fragment.app.FragmentContainerView diff --git a/app/src/main/res/layout/activity_wiimmfi.xml b/app/src/main/res/layout/activity_wiimmfi.xml index f62fe15..41cf4fe 100644 --- a/app/src/main/res/layout/activity_wiimmfi.xml +++ b/app/src/main/res/layout/activity_wiimmfi.xml @@ -15,20 +15,39 @@ <com.google.android.material.appbar.AppBarLayout style="@style/Widget.MaterialComponents.AppBarLayout.Primary" android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="200dp" android:fitsSystemWindows="true"> - <com.google.android.material.appbar.MaterialToolbar - android:id="@+id/toolbar" - style="@style/Widget.MaterialComponents.Toolbar.Primary" + <com.google.android.material.appbar.CollapsingToolbarLayout android:layout_width="match_parent" - android:layout_height="?attr/actionBarSize" - android:background="@android:color/transparent" - android:elevation="0dp" - app:navigationIcon="@drawable/ic_baseline_menu_24" - app:navigationIconTint="#FFFFFF" - app:title="Watching 0000-0000-0000" - app:titleTextColor="#FFFFFF" /> + android:layout_height="match_parent" + android:fitsSystemWindows="true" + app:expandedTitleTextAppearance="@style/TextAppearance.App.CollapsingToolbar.Expanded" + app:collapsedTitleTextAppearance="@style/TextAppearance.App.CollapsingToolbar.Collapsed"> + + <ImageView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true" + android:scaleType="centerCrop" + android:src="@drawable/course_ctgp" /> + + <com.google.android.material.appbar.MaterialToolbar + android:id="@+id/toolbar" + style="@style/Widget.MaterialComponents.Toolbar.Primary" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/transparent" + android:elevation="0dp" + app:navigationIcon="@drawable/ic_baseline_menu_24" + app:title="Watching 0000-0000-0000" + app:titleTextColor="#FFFFFF" /> + + </com.google.android.material.appbar.CollapsingToolbarLayout> + + + + </com.google.android.material.appbar.AppBarLayout> @@ -51,7 +70,7 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="start" - android:theme="@style/Theme.WiimmfiWatcher" + android:theme="@style/Theme.WiimmfiWatcher.Watching" app:headerLayout="@layout/header_navigation_drawer" app:menu="@menu/drawer_navigation_menu"> |