Test button
This commit is contained in:
@@ -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",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user