Commit dde4f3d9 authored by Lukas Bersinger's avatar Lukas Bersinger
Browse files

hook up add task activity

parent 1c8afb59
......@@ -9,6 +9,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".activities.AddTaskActivity"/>
<activity android:name=".activities.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
......
package ch.ost.rj.mge.miniproject.tasktracker.activities
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import ch.ost.rj.mge.miniproject.tasktracker.R
class AddTaskActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_add_task)
}
}
\ No newline at end of file
package ch.ost.rj.mge.miniproject.tasktracker.activities
import android.content.Intent
import android.os.Bundle
import android.widget.FrameLayout
import androidx.appcompat.app.AppCompatActivity
......@@ -27,7 +28,8 @@ class MainActivity : AppCompatActivity() {
btnAddTask = findViewById(R.id.btnAddTask)
btnAddTask.setOnClickListener { view ->
// TODO
val intent = Intent(this, AddTaskActivity::class.java)
startActivity(intent)
}
taskListContainer = findViewById(R.id.fltTaskListContainer)
......
<?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=".activities.AddTaskActivity">
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment