From e2f045d3e0641d2d748cf75a888272c869cd1f60 Mon Sep 17 00:00:00 2001 From: StayTogetherAllDay Date: Mon, 5 May 2025 22:53:51 +0900 Subject: [PATCH 1/7] goodnight --- .idea/.gitignore | 3 +++ .idea/AndroidProjectSystem.xml | 6 ++++++ .idea/deploymentTargetSelector.xml | 10 ++++++++++ .idea/encodings.xml | 6 ++++++ .idea/gradle.xml | 18 +++++++++++++++++ .idea/kotlinc.xml | 6 ++++++ .idea/migrations.xml | 10 ++++++++++ .idea/misc.xml | 10 ++++++++++ .idea/runConfigurations.xml | 17 ++++++++++++++++ .idea/vcs.xml | 6 ++++++ .../bcsd_android_2025_1/SecondActivity.kt | 20 +++++++++++++++++++ app/src/main/res/layout/activity_second.xml | 10 ++++++++++ 12 files changed, 122 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/AndroidProjectSystem.xml create mode 100644 .idea/deploymentTargetSelector.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/gradle.xml create mode 100644 .idea/kotlinc.xml create mode 100644 .idea/migrations.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/runConfigurations.xml create mode 100644 .idea/vcs.xml create mode 100644 app/src/main/java/com/example/bcsd_android_2025_1/SecondActivity.kt create mode 100644 app/src/main/res/layout/activity_second.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/AndroidProjectSystem.xml b/.idea/AndroidProjectSystem.xml new file mode 100644 index 0000000..4a53bee --- /dev/null +++ b/.idea/AndroidProjectSystem.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml new file mode 100644 index 0000000..22b0bb4 --- /dev/null +++ b/.idea/deploymentTargetSelector.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..97f0a8e --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml new file mode 100644 index 0000000..c224ad5 --- /dev/null +++ b/.idea/kotlinc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/migrations.xml b/.idea/migrations.xml new file mode 100644 index 0000000..f8051a6 --- /dev/null +++ b/.idea/migrations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..3040d03 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..16660f1 --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/example/bcsd_android_2025_1/SecondActivity.kt b/app/src/main/java/com/example/bcsd_android_2025_1/SecondActivity.kt new file mode 100644 index 0000000..49124d3 --- /dev/null +++ b/app/src/main/java/com/example/bcsd_android_2025_1/SecondActivity.kt @@ -0,0 +1,20 @@ +package com.example.bcsd_android_2025_1 + +import android.os.Bundle +import androidx.activity.enableEdgeToEdge +import androidx.appcompat.app.AppCompatActivity +import androidx.core.view.ViewCompat +import androidx.core.view.WindowInsetsCompat + +class SecondActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + enableEdgeToEdge() + setContentView(R.layout.activity_second) + ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets -> + val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars()) + v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom) + insets + } + } +} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_second.xml b/app/src/main/res/layout/activity_second.xml new file mode 100644 index 0000000..9117643 --- /dev/null +++ b/app/src/main/res/layout/activity_second.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file From c996e0f8c7752f49785491825fda04d89da1eeb3 Mon Sep 17 00:00:00 2001 From: StayTogetherAllDay Date: Mon, 5 May 2025 22:54:54 +0900 Subject: [PATCH 2/7] goodnight2 --- .idea/misc.xml | 2 +- app/src/main/AndroidManifest.xml | 4 ++ .../bcsd_android_2025_1/MainActivity.kt | 36 +++++++++++-- .../bcsd_android_2025_1/SecondActivity.kt | 20 +++---- app/src/main/res/layout/activity_main.xml | 52 +++++++++++++++++-- app/src/main/res/layout/activity_second.xml | 26 ++++++++++ 6 files changed, 124 insertions(+), 16 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 3040d03..74dd639 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,7 +1,7 @@ - + diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 4c80941..865b971 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -12,6 +12,10 @@ android:supportsRtl="true" android:theme="@style/Theme.BCSD_Android_20251" tools:targetApi="31"> + + diff --git a/app/src/main/java/com/example/bcsd_android_2025_1/MainActivity.kt b/app/src/main/java/com/example/bcsd_android_2025_1/MainActivity.kt index 3ffa0eb..7d38642 100644 --- a/app/src/main/java/com/example/bcsd_android_2025_1/MainActivity.kt +++ b/app/src/main/java/com/example/bcsd_android_2025_1/MainActivity.kt @@ -1,14 +1,44 @@ package com.example.bcsd_android_2025_1 + import android.os.Bundle -import androidx.activity.enableEdgeToEdge import androidx.appcompat.app.AppCompatActivity -import androidx.core.view.ViewCompat -import androidx.core.view.WindowInsetsCompat +import android.widget.Button +import android.widget.Toast +import android.widget.TextView +import android.content.Intent + class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) + + var count = 0 + + val countButton = findViewById