Add/remove attachments in new email, list attachments in view email

This commit is contained in:
str4d
2014-12-28 20:16:06 +00:00
parent 2dc6663161
commit 97f290f272
11 changed files with 260 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 B

View File

@@ -68,6 +68,12 @@
android:ems="10"
android:hint="@string/compose_email"
android:inputType="textMultiLine"/>
<LinearLayout
android:id="@+id/attachments"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"/>
</LinearLayout>
</ScrollView>

View File

@@ -221,6 +221,12 @@
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:textAppearance="@style/TextAppearance.AppCompat.Primary"/>
<LinearLayout
android:id="@+id/attachments"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"/>
</LinearLayout>
</ScrollView>

View File

@@ -2,6 +2,12 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:i2pandroid="http://schemas.android.com/apk/res-auto" >
<item
android:id="@+id/action_attach_file"
android:icon="@drawable/ic_attach_file_white_24dp"
android:title="@string/action_attach_file"
i2pandroid:showAsAction="ifRoom"/>
<item
android:id="@+id/action_send_email"
android:icon="@drawable/ic_send_white_24dp"

View File

@@ -38,6 +38,11 @@
<string name="log_out">Log out</string>
<string name="touch_lock_to_log_in">Touch the lock icon to log in.</string>
<string name="action_new_email">New email</string>
<string name="action_attach_file">Attach file</string>
<string name="select_attachment">Select a file to attach</string>
<string name="n_bytes" translatable="false">%s B</string>
<string name="n_kilobytes" translatable="false">%s KB</string>
<string name="n_megabytes" translatable="false">%s MB</string>
<string name="action_send_email">Send email</string>
<string name="action_start_bote">Connect to network</string>
<string name="action_stop_bote">Disconnect from network</string>