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_constraintTop_toTopOf="parent"
|
||||
app:navGraph="@navigation/main_nav"
|
||||
tools:layout="@layout/fragment_blank" />
|
||||
tools:layout="@layout/fragment_debug_menu" />
|
||||
|
||||
<com.google.android.material.bottomnavigation.BottomNavigationView
|
||||
android:id="@+id/bottom_nav"
|
||||
|
|
|
@ -10,10 +10,10 @@ import android.view.ViewGroup;
|
|||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
public class BlankFragment extends Fragment {
|
||||
public class DebugMenuFragment extends Fragment {
|
||||
|
||||
// TODO: Rename parameter arguments, choose names that match
|
||||
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
|
||||
|
@ -24,7 +24,7 @@ public class BlankFragment extends Fragment {
|
|||
private String mParam1;
|
||||
private String mParam2;
|
||||
|
||||
public BlankFragment() {
|
||||
public DebugMenuFragment() {
|
||||
// Required empty public constructor
|
||||
}
|
||||
|
||||
|
@ -37,8 +37,8 @@ public class BlankFragment extends Fragment {
|
|||
* @return A new instance of fragment BlankFragment.
|
||||
*/
|
||||
// TODO: Rename and change types and number of parameters
|
||||
public static BlankFragment newInstance(String param1, String param2) {
|
||||
BlankFragment fragment = new BlankFragment();
|
||||
public static DebugMenuFragment newInstance(String param1, String param2) {
|
||||
DebugMenuFragment fragment = new DebugMenuFragment();
|
||||
Bundle args = new Bundle();
|
||||
args.putString(ARG_PARAM1, param1);
|
||||
args.putString(ARG_PARAM2, param2);
|
||||
|
@ -59,6 +59,6 @@ public class BlankFragment extends Fragment {
|
|||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
// 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_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".BlankFragment">
|
||||
tools:context=".DebugMenuFragment">
|
||||
|
||||
<!-- TODO: Update blank fragment layout -->
|
||||
<TextView
|
|
@ -3,13 +3,10 @@
|
|||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/feature_debug_navigation"
|
||||
app:startDestination="@id/blankFragment">
|
||||
|
||||
|
||||
|
||||
app:startDestination="@id/debugMenuFragment">
|
||||
<fragment
|
||||
android:id="@+id/blankFragment"
|
||||
android:name="one.nem.lacerta.feature.debug.BlankFragment"
|
||||
android:label="fragment_blank"
|
||||
tools:layout="@layout/fragment_blank" />
|
||||
android:id="@+id/debugMenuFragment"
|
||||
android:name="one.nem.lacerta.feature.debug.DebugMenuFragment"
|
||||
android:label="fragment_debug_menu"
|
||||
tools:layout="@layout/fragment_debug_menu" />
|
||||
</navigation>
|
Loading…
Reference in New Issue
Block a user