Change Version Code, Fix bugs

This commit is contained in:
icewithcola 2024-04-14 22:52:47 +08:00
parent a348085743
commit a0db00e660
4 changed files with 18 additions and 12 deletions

View file

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">

View file

@ -11,8 +11,8 @@ android {
applicationId = "uk.kagurach.android101"
minSdk = 31
targetSdk = 34
versionCode = 101
versionName = "1.0.1"
versionCode = 131
versionName = "1.3.1"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

View file

@ -83,11 +83,8 @@ public class Page3 extends AppCompatActivity {
case "=":
calc();
s = tv.getText().toString();
if (!s.contains(".")){
dot.setEnabled(true);
}
dot.setEnabled(!s.contains("."));
setOpButton(true);
return;
case ".":
dot.setEnabled(false);

View file

@ -43,7 +43,9 @@
android:layout_height="0dp"
android:layout_weight="1"
android:ems="10"
android:inputType="number" />
android:inputType="number"
android:text="字体大小"
/>
<Button
android:id="@+id/Page2SetSize"
android:layout_width="80dp"
@ -89,7 +91,9 @@
android:layout_height="match_parent"
android:layout_weight="1"
android:ems="10"
android:inputType="number" />
android:inputType="number"
android:text="R:0-255"
/>
<EditText
android:id="@+id/G"
@ -97,7 +101,9 @@
android:layout_height="match_parent"
android:layout_weight="1"
android:ems="10"
android:inputType="number" />
android:inputType="number"
android:text="G:0-255"
/>
<EditText
android:id="@+id/B"
@ -105,7 +111,9 @@
android:layout_height="match_parent"
android:layout_weight="1"
android:ems="10"
android:inputType="number" />
android:inputType="number"
android:text="B:0-255"
/>
</LinearLayout>
<LinearLayout
@ -118,7 +126,9 @@
android:layout_height="match_parent"
android:layout_weight="1"
android:ems="10"
android:inputType="text" />
android:inputType="text"
android:text="测试文本"
/>
<Button
android:id="@+id/Page2SetTestTextButton"