Browse Source

Add MainActivity

tags/Release_1
Loch Christian (uib05376) 3 years ago
parent
commit
8738f02178
5 changed files with 34 additions and 1 deletions
  1. +1
    -0
      .idea/gradle.xml
  2. +1
    -0
      app/build.gradle
  3. +9
    -1
      app/src/main/AndroidManifest.xml
  4. +14
    -0
      app/src/main/java/de/hems/trafficsim/MainActivity.java
  5. +9
    -0
      app/src/main/res/layout/activity_main.xml

+ 1
- 0
.idea/gradle.xml View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>


+ 1
- 0
app/build.gradle View File

@@ -24,6 +24,7 @@ android {
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'


+ 9
- 1
app/src/main/AndroidManifest.xml View File

@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.hems.trafficsim">

@@ -7,6 +8,13 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme" />
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>

+ 14
- 0
app/src/main/java/de/hems/trafficsim/MainActivity.java View File

@@ -0,0 +1,14 @@
package de.hems.trafficsim;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}

+ 9
- 0
app/src/main/res/layout/activity_main.xml View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

</androidx.constraintlayout.widget.ConstraintLayout>

Loading…
Cancel
Save