mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
WIP
This commit is contained in:
parent
cd537649a0
commit
35a0e68e2d
|
@ -80,11 +80,14 @@ public class DebugMenuFragment extends Fragment {
|
|||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
|
||||
Button button = view.findViewById(R.id.button_di_test);
|
||||
// Lambda
|
||||
button.setOnClickListener(v -> {
|
||||
Toast.makeText(getContext(), deviceMeta.getDeviceId(), Toast.LENGTH_SHORT).show();
|
||||
});
|
||||
// Button button = view.findViewById(R.id.button_di_test);
|
||||
// // Lambda
|
||||
// button.setOnClickListener(v -> {
|
||||
// Toast.makeText(getContext(), deviceMeta.getDeviceMeta().getAndroidApiLevel()
|
||||
// + deviceMeta.getDeviceMeta().getAndroidVersion()
|
||||
// + deviceMeta.getDeviceMeta().getDeviceManufacturer()
|
||||
// + deviceMeta.getDeviceMeta().getDeviceModel(), Toast.LENGTH_SHORT).show();
|
||||
// });
|
||||
|
||||
}
|
||||
}
|
|
@ -1,22 +1,81 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".DebugMenuFragment">
|
||||
|
||||
<!-- TODO: Update blank fragment layout -->
|
||||
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="DebugMenu" />
|
||||
android:text="Debug Menu"
|
||||
android:textSize="36sp"
|
||||
android:padding="16dp"
|
||||
android:textColor="@color/material_dynamic_primary10" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_di_test"
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="DiTest" />
|
||||
android:orientation="vertical" >
|
||||
|
||||
<!-- Call Events -->
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Call Debug Events"
|
||||
android:textSize="24sp"
|
||||
android:padding="8dp" />
|
||||
<!-- android:textColor="@color/material_dynamic_primary10" />-->
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btn_debug_menu_scan"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Start scan action"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginTop="8dp" />
|
||||
|
||||
<!-- Padding -->
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="16dp" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Call Debug Events"
|
||||
android:textSize="24sp"
|
||||
android:padding="8dp" />
|
||||
<!-- android:textColor="@color/material_dynamic_primary10" />-->
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btn_debug_menu_clear_pref"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Clear Preferences"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginTop="8dp" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btn_debug_menu_clear_storage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Clear Storage"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginTop="8dp" />
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
Loading…
Reference in New Issue
Block a user