display the current note at the top

This commit is contained in:
tibbi 2016-10-01 22:10:36 +02:00
parent 371ee198e0
commit 37e031cfbf
6 changed files with 35 additions and 13 deletions

View File

@ -6,22 +6,39 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<ScrollView <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/notes_holder"
android:id="@+id/notes_scrollview"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
android:fillViewport="true">
<EditText <TextView
android:id="@+id/notes_view" android:id="@+id/current_note_label"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@null" android:layout_margin="@dimen/activity_margin"
android:gravity="top" android:alpha=".6"
android:inputType="textCapSentences|textMultiLine" android:text="@string/current_note"/>
android:padding="@dimen/activity_margin"/>
</ScrollView> <ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/notes_scrollview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/current_note_label"
android:fillViewport="true">
<EditText
android:id="@+id/notes_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:gravity="top"
android:inputType="textCapSentences|textMultiLine"
android:paddingBottom="@dimen/activity_margin"
android:paddingLeft="@dimen/activity_margin"
android:paddingRight="@dimen/activity_margin"/>
</ScrollView>
</RelativeLayout>
<android.support.design.widget.FloatingActionButton <android.support.design.widget.FloatingActionButton
android:id="@+id/notes_fab" android:id="@+id/notes_fab"

View File

@ -18,6 +18,7 @@
<string name="delete_note_prompt_title">Delete note</string> <string name="delete_note_prompt_title">Delete note</string>
<string name="delete_note_prompt_message">Are you sure you want to delete note \"%1$s\"?</string> <string name="delete_note_prompt_message">Are you sure you want to delete note \"%1$s\"?</string>
<string name="pick_a_note">Pick a note</string> <string name="pick_a_note">Pick a note</string>
<string name="current_note">Current note:</string>
<!-- Settings --> <!-- Settings -->
<string name="settings">Einstellungen</string> <string name="settings">Einstellungen</string>

View File

@ -18,6 +18,7 @@
<string name="delete_note_prompt_title">Delete note</string> <string name="delete_note_prompt_title">Delete note</string>
<string name="delete_note_prompt_message">Are you sure you want to delete note \"%1$s\"?</string> <string name="delete_note_prompt_message">Are you sure you want to delete note \"%1$s\"?</string>
<string name="pick_a_note">Pick a note</string> <string name="pick_a_note">Pick a note</string>
<string name="current_note">Current note:</string>
<!-- Settings --> <!-- Settings -->
<string name="settings">Impostazioni</string> <string name="settings">Impostazioni</string>

View File

@ -18,6 +18,7 @@
<string name="delete_note_prompt_title">Delete note</string> <string name="delete_note_prompt_title">Delete note</string>
<string name="delete_note_prompt_message">Are you sure you want to delete note \"%1$s\"?</string> <string name="delete_note_prompt_message">Are you sure you want to delete note \"%1$s\"?</string>
<string name="pick_a_note">Pick a note</string> <string name="pick_a_note">Pick a note</string>
<string name="current_note">Current note:</string>
<!-- Settings --> <!-- Settings -->
<string name="settings">設定</string> <string name="settings">設定</string>

View File

@ -18,6 +18,7 @@
<string name="delete_note_prompt_title">Delete note</string> <string name="delete_note_prompt_title">Delete note</string>
<string name="delete_note_prompt_message">Are you sure you want to delete note \"%1$s\"?</string> <string name="delete_note_prompt_message">Are you sure you want to delete note \"%1$s\"?</string>
<string name="pick_a_note">Pick a note</string> <string name="pick_a_note">Pick a note</string>
<string name="current_note">Current note:</string>
<!-- Settings --> <!-- Settings -->
<string name="settings">Inställningar</string> <string name="settings">Inställningar</string>

View File

@ -18,6 +18,7 @@
<string name="delete_note_prompt_title">Delete note</string> <string name="delete_note_prompt_title">Delete note</string>
<string name="delete_note_prompt_message">Are you sure you want to delete note \"%1$s\"?</string> <string name="delete_note_prompt_message">Are you sure you want to delete note \"%1$s\"?</string>
<string name="pick_a_note">Pick a note</string> <string name="pick_a_note">Pick a note</string>
<string name="current_note">Current note:</string>
<!-- Settings --> <!-- Settings -->
<string name="settings">Settings</string> <string name="settings">Settings</string>