mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
命名修正など
This commit is contained in:
parent
8fd1e85bcf
commit
5fd3cde33f
|
@ -17,7 +17,7 @@
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:navGraph="@navigation/main_nav"
|
app:navGraph="@navigation/main_nav"
|
||||||
tools:layout="@layout/fragment_blank" />
|
tools:layout="@layout/fragment_debug_menu" />
|
||||||
|
|
||||||
<com.google.android.material.bottomnavigation.BottomNavigationView
|
<com.google.android.material.bottomnavigation.BottomNavigationView
|
||||||
android:id="@+id/bottom_nav"
|
android:id="@+id/bottom_nav"
|
||||||
|
|
|
@ -10,10 +10,10 @@ import android.view.ViewGroup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A simple {@link Fragment} subclass.
|
* A simple {@link Fragment} subclass.
|
||||||
* Use the {@link BlankFragment#newInstance} factory method to
|
* Use the {@link DebugMenuFragment#newInstance} factory method to
|
||||||
* create an instance of this fragment.
|
* create an instance of this fragment.
|
||||||
*/
|
*/
|
||||||
public class BlankFragment extends Fragment {
|
public class DebugMenuFragment extends Fragment {
|
||||||
|
|
||||||
// TODO: Rename parameter arguments, choose names that match
|
// TODO: Rename parameter arguments, choose names that match
|
||||||
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
|
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
|
||||||
|
@ -24,7 +24,7 @@ public class BlankFragment extends Fragment {
|
||||||
private String mParam1;
|
private String mParam1;
|
||||||
private String mParam2;
|
private String mParam2;
|
||||||
|
|
||||||
public BlankFragment() {
|
public DebugMenuFragment() {
|
||||||
// Required empty public constructor
|
// Required empty public constructor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,8 +37,8 @@ public class BlankFragment extends Fragment {
|
||||||
* @return A new instance of fragment BlankFragment.
|
* @return A new instance of fragment BlankFragment.
|
||||||
*/
|
*/
|
||||||
// TODO: Rename and change types and number of parameters
|
// TODO: Rename and change types and number of parameters
|
||||||
public static BlankFragment newInstance(String param1, String param2) {
|
public static DebugMenuFragment newInstance(String param1, String param2) {
|
||||||
BlankFragment fragment = new BlankFragment();
|
DebugMenuFragment fragment = new DebugMenuFragment();
|
||||||
Bundle args = new Bundle();
|
Bundle args = new Bundle();
|
||||||
args.putString(ARG_PARAM1, param1);
|
args.putString(ARG_PARAM1, param1);
|
||||||
args.putString(ARG_PARAM2, param2);
|
args.putString(ARG_PARAM2, param2);
|
||||||
|
@ -59,6 +59,6 @@ public class BlankFragment extends Fragment {
|
||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||||
Bundle savedInstanceState) {
|
Bundle savedInstanceState) {
|
||||||
// Inflate the layout for this fragment
|
// Inflate the layout for this fragment
|
||||||
return inflater.inflate(R.layout.fragment_blank, container, false);
|
return inflater.inflate(R.layout.fragment_debug_menu, container, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -4,7 +4,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
tools:context=".BlankFragment">
|
tools:context=".DebugMenuFragment">
|
||||||
|
|
||||||
<!-- TODO: Update blank fragment layout -->
|
<!-- TODO: Update blank fragment layout -->
|
||||||
<TextView
|
<TextView
|
|
@ -3,13 +3,10 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/feature_debug_navigation"
|
android:id="@+id/feature_debug_navigation"
|
||||||
app:startDestination="@id/blankFragment">
|
app:startDestination="@id/debugMenuFragment">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<fragment
|
<fragment
|
||||||
android:id="@+id/blankFragment"
|
android:id="@+id/debugMenuFragment"
|
||||||
android:name="one.nem.lacerta.feature.debug.BlankFragment"
|
android:name="one.nem.lacerta.feature.debug.DebugMenuFragment"
|
||||||
android:label="fragment_blank"
|
android:label="fragment_debug_menu"
|
||||||
tools:layout="@layout/fragment_blank" />
|
tools:layout="@layout/fragment_debug_menu" />
|
||||||
</navigation>
|
</navigation>
|
Loading…
Reference in New Issue
Block a user