Test button
This commit is contained in:
@@ -68,16 +68,18 @@ android {
|
|||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
|
resValue "string", "debug_visibility", "gone"
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
appIcon: "@drawable/icon",
|
appIcon: "@drawable/icon",
|
||||||
appIconRound: "@drawable/icon"
|
appIconRound: "@drawable/icon",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
debug {
|
debug {
|
||||||
applicationIdSuffix ".debug"
|
applicationIdSuffix ".debug"
|
||||||
|
resValue "string", "debug_visibility", "visible"
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
appIcon: "@drawable/icon_debug",
|
appIcon: "@drawable/icon_debug",
|
||||||
appIconRound: "@drawable/icon_debug"
|
appIconRound: "@drawable/icon_debug",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,6 +60,11 @@ public class PuzzleBoardFragment extends Fragment
|
|||||||
public void onTouch() {
|
public void onTouch() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
binding.btnTest.setOnClickListener((View.OnClickListener) view4 -> {
|
||||||
|
createNextLevelDialog((d, w) -> {
|
||||||
|
initAndShowCurrentPuzzle();
|
||||||
|
}).show();
|
||||||
|
});
|
||||||
binding.btnPrev.setOnClickListener((View.OnClickListener) view1 -> {
|
binding.btnPrev.setOnClickListener((View.OnClickListener) view1 -> {
|
||||||
gameState.setCurrentLevel(gameState.getCurrentLevel()-1);
|
gameState.setCurrentLevel(gameState.getCurrentLevel()-1);
|
||||||
PuzzleBoardFragment.this.initAndShowCurrentPuzzle();
|
PuzzleBoardFragment.this.initAndShowCurrentPuzzle();
|
||||||
|
|||||||
@@ -54,6 +54,18 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1" />
|
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
|
<ImageButton
|
||||||
android:id="@+id/btn_prev"
|
android:id="@+id/btn_prev"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|||||||
Reference in New Issue
Block a user