Add task
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Merge core/template-android-project to this repo / merge-if-needed (push) Successful in 13s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Merge core/template-android-project to this repo / merge-if-needed (push) Successful in 13s
				
			This commit is contained in:
		| @@ -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> | ||||
							
								
								
									
										21
									
								
								app/src/main/java/ru/myitschool/work/MainActivity.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								app/src/main/java/ru/myitschool/work/MainActivity.java
									
									
									
									
									
										Normal 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(); | ||||
|     } | ||||
|  | ||||
|     // Добавьте недостающие методы здесь | ||||
| } | ||||
							
								
								
									
										13
									
								
								app/src/main/res/layout/activity_main.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								app/src/main/res/layout/activity_main.xml
									
									
									
									
									
										Normal 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> | ||||
| @@ -1,3 +1,5 @@ | ||||
| <resources> | ||||
|     <string name="app_name">Work</string> | ||||
|     <string name="ncreate">Activity CREATED</string> | ||||
|     <!-- Дополните файл необходимыми ресурсами --> | ||||
| </resources> | ||||
		Reference in New Issue
	
	Block a user