PlaceHolder入れたりした

This commit is contained in:
ろむねこ 2023-12-10 22:57:11 +09:00
parent 35a0e68e2d
commit 031c755e1d
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
2 changed files with 15 additions and 10 deletions

View File

@ -80,14 +80,19 @@ 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.getDeviceMeta().getAndroidApiLevel()
// + deviceMeta.getDeviceMeta().getAndroidVersion()
// + deviceMeta.getDeviceMeta().getDeviceManufacturer()
// + deviceMeta.getDeviceMeta().getDeviceModel(), Toast.LENGTH_SHORT).show();
// });
view.findViewById(R.id.btn_debug_menu_scan).setOnClickListener( v -> {
// スキャン機能呼び出し
Toast.makeText(getContext(), "testMessage", Toast.LENGTH_SHORT).show();
});
view.findViewById(R.id.btn_debug_menu_shared_pref_editor).setOnClickListener( v -> {
// SharedPrefEditor機能呼び出し
Toast.makeText(getContext(), "textMessage", Toast.LENGTH_SHORT).show();
});
view.findViewById(R.id.btn_debug_menu_clear_pref).setOnClickListener( v -> {
// SharedPrefClear
Toast.makeText(getContext(), "textMessage", Toast.LENGTH_SHORT).show();
});
}
}

View File

@ -66,10 +66,10 @@
android:layout_marginTop="8dp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_debug_menu_clear_storage"
android:id="@+id/btn_debug_menu_shared_pref_editor"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Clear Storage"
android:text="Shared Preferences Editor"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginTop="8dp" />