テスト

This commit is contained in:
r-ca committed 2024-01-19 17:27:38 +09:00
1 parent 81ba96a3d0
commit ef48223d46
5 files changed
+49 -38

No files matched your search

@@ -118,7 +118,8 @@ public class HomeTopFragment extends Fragment {
// Set the Toolbar
((AppCompatActivity)getActivity()).setSupportActionBar(toolbar);
DrawerLayout drawer = view.findViewById(R.id.drawer_layout);
// Activity側のDrawerLayoutを取得
DrawerLayout drawer = getActivity().findViewById(R.id.);
ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
getActivity(), drawer, toolbar, one.nem.lacerta.shared.ui.R.string.placeholder, one.nem.lacerta.shared.ui.R.string.placeholder);
drawer.addDrawerListener(toggle);
@@ -1,6 +1,5 @@
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -30,7 +29,7 @@
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_collapseMode="pin"
app:title="HOGE"/>
app:title="HOGE" />
</com.google.android.material.appbar.CollapsingToolbarLayout>
@@ -62,11 +61,4 @@
</androidx.coordinatorlayout.widget.CoordinatorLayout>
<com.google.android.material.navigation.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
app:menu="@menu/drawer_menu" />
</androidx.drawerlayout.widget.DrawerLayout>
</FrameLayout>
@@ -1,8 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/item_placeholder"
android:icon="@drawable/developer_mode_24px"
android:title="@string/placeholder" />
</menu>