mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 19:47:36 +00:00
WIP
This commit is contained in:
5 files changed
+31
-2
No files matched your search
@@ -7,6 +7,7 @@ import androidx.fragment.app.Fragment;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
|
||||
/**
|
||||
* A simple {@link Fragment} subclass.
|
||||
@@ -15,6 +16,8 @@ import android.view.ViewGroup;
|
||||
*/
|
||||
public class DebugMenuFragment extends Fragment {
|
||||
|
||||
|
||||
|
||||
// TODO: Rename parameter arguments, choose names that match
|
||||
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
|
||||
private static final String ARG_PARAM1 = "param1";
|
||||
@@ -61,4 +64,16 @@ public class DebugMenuFragment extends Fragment {
|
||||
// Inflate the layout for this fragment
|
||||
return inflater.inflate(R.layout.fragment_debug_menu, container, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
|
||||
Button button = view.findViewById(R.id.button_di_test);
|
||||
// Lambda
|
||||
button.setOnClickListener(v -> {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -14,8 +14,9 @@
|
||||
android:text="DebugMenu" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button"
|
||||
android:id="@+id/button_di_test"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
android:layout_height="wrap_content"
|
||||
android:text="DiTest" />
|
||||
|
||||
</LinearLayout>
|
||||
Reference in new issue
Block a user