diff options
author | Isidro Henoch <imhenoch@protonmail.com> | 2021-12-03 21:18:33 -0600 |
---|---|---|
committer | Isidro Henoch <imhenoch@protonmail.com> | 2021-12-03 21:18:33 -0600 |
commit | c7039b6b0f6ab0f99fefecac07196ada6da2221a (patch) | |
tree | ab598ce96300b71607f9501bbb52b5ac6ea4528c /androidApp/src/main | |
download | etbsa-trackermap-mobile-c7039b6b0f6ab0f99fefecac07196ada6da2221a.tar.gz etbsa-trackermap-mobile-c7039b6b0f6ab0f99fefecac07196ada6da2221a.tar.bz2 etbsa-trackermap-mobile-c7039b6b0f6ab0f99fefecac07196ada6da2221a.zip |
Inits the project
Diffstat (limited to 'androidApp/src/main')
-rw-r--r-- | androidApp/src/main/AndroidManifest.xml | 18 | ||||
-rw-r--r-- | androidApp/src/main/java/mx/trackermap/TrackerMap/android/MainActivity.kt | 20 | ||||
-rw-r--r-- | androidApp/src/main/res/layout/activity_main.xml | 19 | ||||
-rw-r--r-- | androidApp/src/main/res/values/colors.xml | 6 | ||||
-rw-r--r-- | androidApp/src/main/res/values/styles.xml | 9 |
5 files changed, 72 insertions, 0 deletions
diff --git a/androidApp/src/main/AndroidManifest.xml b/androidApp/src/main/AndroidManifest.xml new file mode 100644 index 0000000..8131d77 --- /dev/null +++ b/androidApp/src/main/AndroidManifest.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="mx.trackermap.TrackerMap.android"> + + <application + android:allowBackup="false" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <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>
\ No newline at end of file diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/MainActivity.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/MainActivity.kt new file mode 100644 index 0000000..e7d1b5e --- /dev/null +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/MainActivity.kt @@ -0,0 +1,20 @@ +package mx.trackermap.TrackerMap.android + +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import mx.trackermap.TrackerMap.Greeting +import android.widget.TextView + +fun greet(): String { + return Greeting().greeting() +} + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val tv: TextView = findViewById(R.id.text_view) + tv.text = greet() + } +} diff --git a/androidApp/src/main/res/layout/activity_main.xml b/androidApp/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..73626a6 --- /dev/null +++ b/androidApp/src/main/res/layout/activity_main.xml @@ -0,0 +1,19 @@ +<?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:id="@+id/main_view" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + android:id="@+id/text_view" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintTop_toTopOf="parent" + tools:text="Hello World!" /> + +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/androidApp/src/main/res/values/colors.xml b/androidApp/src/main/res/values/colors.xml new file mode 100644 index 0000000..4faecfa --- /dev/null +++ b/androidApp/src/main/res/values/colors.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#6200EE</color> + <color name="colorPrimaryDark">#3700B3</color> + <color name="colorAccent">#03DAC5</color> +</resources>
\ No newline at end of file diff --git a/androidApp/src/main/res/values/styles.xml b/androidApp/src/main/res/values/styles.xml new file mode 100644 index 0000000..1971a0a --- /dev/null +++ b/androidApp/src/main/res/values/styles.xml @@ -0,0 +1,9 @@ +<resources> + + <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources>
\ No newline at end of file |