From 3fdc8f60757b69a076e0265dfa2d8f28b4daa4c7 Mon Sep 17 00:00:00 2001 From: wiecktobi Date: Sun, 3 May 2020 19:52:43 +0200 Subject: [PATCH] Regiser Activity --- .../de/hft/geotracker/{login.kt => Login.kt} | 0 .../main/java/de/hft/geotracker/Register.kt | 12 ++++++++++ .../main/java/de/hft/geotracker/Settings.kt | 24 +++++++++++++++++++ .../src/main/res/layout/activity_register.xml | 9 +++++++ .../src/main/res/layout/settings_activity.xml | 9 +++++++ .../src/main/res/layout/spinner_layout.xml | 6 +++++ android/app/src/main/res/values/arrays.xml | 15 ++++++++++++ 7 files changed, 75 insertions(+) rename android/app/src/main/java/de/hft/geotracker/{login.kt => Login.kt} (100%) create mode 100644 android/app/src/main/java/de/hft/geotracker/Register.kt create mode 100644 android/app/src/main/java/de/hft/geotracker/Settings.kt create mode 100644 android/app/src/main/res/layout/activity_register.xml create mode 100644 android/app/src/main/res/layout/settings_activity.xml create mode 100644 android/app/src/main/res/layout/spinner_layout.xml create mode 100644 android/app/src/main/res/values/arrays.xml diff --git a/android/app/src/main/java/de/hft/geotracker/login.kt b/android/app/src/main/java/de/hft/geotracker/Login.kt similarity index 100% rename from android/app/src/main/java/de/hft/geotracker/login.kt rename to android/app/src/main/java/de/hft/geotracker/Login.kt diff --git a/android/app/src/main/java/de/hft/geotracker/Register.kt b/android/app/src/main/java/de/hft/geotracker/Register.kt new file mode 100644 index 0000000..99e3864 --- /dev/null +++ b/android/app/src/main/java/de/hft/geotracker/Register.kt @@ -0,0 +1,12 @@ +package de.hft.geotracker + +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle + +class Register : AppCompatActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_register) + } +} diff --git a/android/app/src/main/java/de/hft/geotracker/Settings.kt b/android/app/src/main/java/de/hft/geotracker/Settings.kt new file mode 100644 index 0000000..d3610b1 --- /dev/null +++ b/android/app/src/main/java/de/hft/geotracker/Settings.kt @@ -0,0 +1,24 @@ +package de.hft.geotracker + +import android.os.Bundle +import androidx.appcompat.app.AppCompatActivity +import androidx.preference.PreferenceFragmentCompat + +class Settings : AppCompatActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.settings_activity) + supportFragmentManager + .beginTransaction() + .replace(R.id.settings, SettingsFragment()) + .commit() + supportActionBar?.setDisplayHomeAsUpEnabled(true) + } + + class SettingsFragment : PreferenceFragmentCompat() { + override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { + setPreferencesFromResource(R.xml.root_preferences, rootKey) + } + } +} \ No newline at end of file diff --git a/android/app/src/main/res/layout/activity_register.xml b/android/app/src/main/res/layout/activity_register.xml new file mode 100644 index 0000000..c446de9 --- /dev/null +++ b/android/app/src/main/res/layout/activity_register.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/android/app/src/main/res/layout/settings_activity.xml b/android/app/src/main/res/layout/settings_activity.xml new file mode 100644 index 0000000..de6591a --- /dev/null +++ b/android/app/src/main/res/layout/settings_activity.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/android/app/src/main/res/layout/spinner_layout.xml b/android/app/src/main/res/layout/spinner_layout.xml new file mode 100644 index 0000000..61a4490 --- /dev/null +++ b/android/app/src/main/res/layout/spinner_layout.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/android/app/src/main/res/values/arrays.xml b/android/app/src/main/res/values/arrays.xml new file mode 100644 index 0000000..79f08f6 --- /dev/null +++ b/android/app/src/main/res/values/arrays.xml @@ -0,0 +1,15 @@ + + + + Reply + Reply to all + + + + reply + reply_all + + + No Account + + \ No newline at end of file