mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-26 08:27:49 +01:00
adding an initial Task activity
This commit is contained in:
parent
77668219be
commit
e73818a791
@ -139,6 +139,11 @@
|
|||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
|
<activity
|
||||||
|
android:name=".activities.TaskActivity"
|
||||||
|
android:launchMode="singleTask"
|
||||||
|
android:parentActivityName=".activities.MainActivity" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.SelectTimeZoneActivity"
|
android:name=".activities.SelectTimeZoneActivity"
|
||||||
android:parentActivityName=".activities.EventActivity">
|
android:parentActivityName=".activities.EventActivity">
|
||||||
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.simplemobiletools.calendar.pro.activities
|
||||||
|
|
||||||
|
import android.os.Bundle
|
||||||
|
import android.view.Menu
|
||||||
|
import com.simplemobiletools.calendar.pro.R
|
||||||
|
import com.simplemobiletools.commons.extensions.checkAppSideloading
|
||||||
|
|
||||||
|
class TaskActivity : SimpleActivity() {
|
||||||
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
|
super.onCreate(savedInstanceState)
|
||||||
|
setContentView(R.layout.activity_task)
|
||||||
|
|
||||||
|
if (checkAppSideloading()) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||||
|
updateMenuItemColors(menu, true)
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
28
app/src/main/res/layout/activity_task.xml
Normal file
28
app/src/main/res/layout/activity_task.xml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:id="@+id/task_scrollview"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/task_holder"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<com.simplemobiletools.commons.views.MyEditText
|
||||||
|
android:id="@+id/task_title"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/activity_margin"
|
||||||
|
android:layout_marginTop="@dimen/activity_margin"
|
||||||
|
android:layout_marginEnd="@dimen/activity_margin"
|
||||||
|
android:hint="@string/title"
|
||||||
|
android:inputType="textCapSentences"
|
||||||
|
android:maxLength="180"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:minEms="20"
|
||||||
|
android:textCursorDrawable="@null"
|
||||||
|
android:textSize="@dimen/day_text_size" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
</ScrollView>
|
Loading…
x
Reference in New Issue
Block a user