diff --git a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuFragment.java b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuFragment.java index 45bcc7b2..5096bd56 100644 --- a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuFragment.java +++ b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuFragment.java @@ -9,6 +9,7 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Toast; +import android.widget.Toolbar; import java.io.File; import java.io.IOException; @@ -69,6 +70,11 @@ public class DebugMenuFragment extends Fragment { public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); + // Toolbarの設定 + // TODO-rca: Toolbarの設定を共通化する + Toolbar toolbar = view.findViewById(R.id.toolbar); + toolbar.setTitle("DebugMenu"); + view.findViewById(R.id.btn_debug_menu_scan).setOnClickListener( v -> { // スキャン機能呼び出し Toast.makeText(getContext(), "testMessage", Toast.LENGTH_SHORT).show(); diff --git a/feature/debug/src/main/res/layout/fragment_debug_menu.xml b/feature/debug/src/main/res/layout/fragment_debug_menu.xml index 853b63f5..f3bdb758 100644 --- a/feature/debug/src/main/res/layout/fragment_debug_menu.xml +++ b/feature/debug/src/main/res/layout/fragment_debug_menu.xml @@ -1,45 +1,58 @@ - - + android:tooltipText="Debug menu" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + + + + + + + android:layout_height="match_parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/toolbar"> + android:orientation="vertical"> - + android:textSize="24sp" /> + + android:text="Start scan action" /> @@ -53,25 +66,25 @@ android:padding="8dp" android:text="SharedPref" android:textSize="24sp" /> - + + android:text="Clear Preferences" /> + android:text="Shared Preferences Editor" /> @@ -190,4 +203,4 @@ - \ No newline at end of file + \ No newline at end of file