Add task
All checks were successful
Merge core/template-android-project to this repo / merge-if-needed (push) Successful in 13s

This commit is contained in:
2024-03-11 01:31:34 +07:00
parent 669f97b566
commit 4f2c4ea995
6 changed files with 114 additions and 1 deletions

View File

@@ -11,6 +11,17 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Default"
tools:targetApi="31" />
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>

View File

@@ -0,0 +1,21 @@
package ru.myitschool.work;
import android.os.Bundle;
import android.widget.Toast;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import ru.myitschool.work.databinding.ActivityMainBinding;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final ActivityMainBinding binding = ActivityMainBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
Toast.makeText(this, R.string.ncreate, Toast.LENGTH_LONG).show();
}
// Добавьте недостающие методы здесь
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Hello World!"/>
</FrameLayout>

View File

@@ -1,3 +1,5 @@
<resources>
<string name="app_name">Work</string>
<string name="ncreate">Activity CREATED</string>
<!-- Дополните файл необходимыми ресурсами -->
</resources>