4
0
mirror of https://github.com/cwinfo/envayasms.git synced 2025-06-25 18:29:24 +00:00

add menu option to forward existing messages from inbox (delivered when kalsms was not enabled)

This commit is contained in:
Jesse Young
2011-09-13 18:26:17 -07:00
parent 61d24b2f64
commit 41141fa5fd
13 changed files with 152 additions and 19 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 944 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

18
res/layout/inbox.xml Executable file
View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingLeft="8dp"
android:paddingRight="8dp">
<ListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:drawSelectorOnTop="false"/>
<Button
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="Forward selected"
android:onClick="forwardSelected" />
</LinearLayout>

31
res/layout/inbox_item.xml Executable file
View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="6sp"
android:background="#cccccc">
<CheckBox android:id="@+id/inbox_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/inbox_address"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#333333"
android:layout_marginTop="4sp"
android:layout_marginLeft="6sp"
android:textSize="14sp"></TextView>
<TextView
android:id="@+id/inbox_body"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#666666"
android:layout_marginLeft="6sp"
android:textSize="14sp"></TextView>
</LinearLayout>
</LinearLayout>

View File

@ -9,10 +9,14 @@
<item android:id="@+id/check_now"
android:icon="@drawable/ic_menu_tick"
android:title="@string/check_now" />
<item android:id="@+id/help"
android:icon="@drawable/ic_menu_puzzle"
android:title="@string/help" />
<item android:id="@+id/forward_inbox"
android:icon="@drawable/ic_menu_dialog"
android:title="@string/forward_inbox" />
<item android:id="@+id/retry_now"
android:icon="@drawable/ic_menu_magnet"
android:title="@string/retry_now" />
<item android:id="@+id/help"
android:icon="@drawable/ic_menu_puzzle"
android:title="@string/help" />
</menu>

View File

@ -6,4 +6,5 @@
<string name="check_now">Check Messages</string>
<string name="help">Help</string>
<string name="retry_now">Retry</string>
<string name="forward_inbox">Fwd Inbox...</string>
</resources>