1
0
mirror of https://github.com/sismics/docs.git synced 2026-01-03 20:09:28 +00:00

Android: init document edit activity

This commit is contained in:
jendib
2014-11-26 23:30:25 +01:00
parent 5666d9b8b5
commit 2837b21a86
13 changed files with 192 additions and 274 deletions

View File

@@ -37,7 +37,7 @@
android:textSize="16sp"
android:layout_centerInParent="true"/>
<com.sismics.docs.ui.view.FloatingActionButton
<com.shamanland.fab.FloatingActionButton
android:id="@+id/addDocumentButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:id="@+id/titleEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:padding="16dp"
android:hint="Title"/>
<EditText
android:id="@+id/descriptionEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine"
android:layout_margin="8dp"
android:padding="16dp"
android:hint="Description"
android:lines="2"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:text="Creation date"
android:textColor="#9f9f9f"
android:fontFamily="sans-serif"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:textSize="16sp"
android:padding="16dp"/>
<com.sismics.docs.ui.view.DatePickerView
android:id="@+id/dateEditText"
style="@android:style/Widget.DeviceDefault.Light.Spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:text="15/11/2014"
android:padding="16dp"/>
</LinearLayout>
<Spinner
android:id="@+id/languageSpinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:padding="16dp"/>
<MultiAutoCompleteTextView
android:id="@+id/tagsEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"/>
</LinearLayout>

View File

@@ -41,5 +41,6 @@
<string name="error_loading_documents">Error loading documents</string>
<string name="no_files">No files</string>
<string name="error_loading_files">Error loading files</string>
<string name="new_document">New document</string>
</resources>