Test button

This commit is contained in:
2021-10-09 14:34:05 +01:00
parent b9cfbaf4df
commit 8cbc732965
3 changed files with 21 additions and 2 deletions

View File

@@ -68,16 +68,18 @@ android {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
resValue "string", "debug_visibility", "gone"
manifestPlaceholders = [
appIcon: "@drawable/icon",
appIconRound: "@drawable/icon"
appIconRound: "@drawable/icon",
]
}
debug {
applicationIdSuffix ".debug"
resValue "string", "debug_visibility", "visible"
manifestPlaceholders = [
appIcon: "@drawable/icon_debug",
appIconRound: "@drawable/icon_debug"
appIconRound: "@drawable/icon_debug",
]
}
}

View File

@@ -60,6 +60,11 @@ public class PuzzleBoardFragment extends Fragment
public void onTouch() {
}
});
binding.btnTest.setOnClickListener((View.OnClickListener) view4 -> {
createNextLevelDialog((d, w) -> {
initAndShowCurrentPuzzle();
}).show();
});
binding.btnPrev.setOnClickListener((View.OnClickListener) view1 -> {
gameState.setCurrentLevel(gameState.getCurrentLevel()-1);
PuzzleBoardFragment.this.initAndShowCurrentPuzzle();

View File

@@ -54,6 +54,18 @@
android:layout_height="match_parent"
android:layout_weight="1" />
<Button
android:id="@+id/btn_test"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_weight="0"
android:background="@color/transparent"
android:scaleType="fitCenter"
android:visibility="visible"
android:text="test" />
<ImageButton
android:id="@+id/btn_prev"
android:layout_width="wrap_content"