mirror of
https://github.com/cwinfo/envayasms.git
synced 2025-06-25 18:29:24 +00:00
add PendingMessages activity for viewing/retrying/deleting pending messages; clean up UI for ForwardInbox; create Inbox and Outbox class to simplify App class
This commit is contained in:
@ -11,7 +11,6 @@
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:id="@+id/help"
|
||||
android:textSize="16sp"
|
||||
android:autoLink="web"
|
||||
android:textColor="#FFFFFF"
|
||||
android:layout_margin="5px">
|
||||
|
@ -9,10 +9,11 @@
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_weight="1"
|
||||
android:choiceMode="multipleChoice" />
|
||||
<Button
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="Forward selected"
|
||||
android:onClick="forwardSelected" />
|
||||
/>
|
||||
<TextView android:id="@android:id/empty"
|
||||
android:text="The inbox is empty."
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_weight="1"
|
||||
/>
|
||||
</LinearLayout>
|
@ -1,34 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<org.envaya.sms.ui.CheckableRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal"
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#cccccc">
|
||||
<org.envaya.sms.ui.InertCheckBox android:id="@+id/inbox_checkbox"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:focusable="false"
|
||||
/>
|
||||
android:background="#333333">
|
||||
<TextView
|
||||
android:id="@+id/inbox_address"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@id/inbox_checkbox"
|
||||
android:layout_alignTop="@id/inbox_checkbox"
|
||||
android:textColor="#333333"
|
||||
android:textColor="#FFFFFF"
|
||||
android:layout_marginTop="4sp"
|
||||
android:layout_marginLeft="6sp"
|
||||
android:focusable="false"
|
||||
android:layout_marginLeft="6sp"
|
||||
android:textSize="14sp"></TextView>
|
||||
<TextView
|
||||
android:id="@+id/inbox_body"
|
||||
android:layout_below="@id/inbox_address"
|
||||
android:layout_alignLeft="@id/inbox_address"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#666666"
|
||||
android:textColor="#CCCCCC"
|
||||
android:layout_marginLeft="6sp"
|
||||
android:layout_marginBottom="6sp"
|
||||
android:focusable="false"
|
||||
android:paddingBottom="6sp"
|
||||
android:textSize="14sp"></TextView>
|
||||
</org.envaya.sms.ui.CheckableRelativeLayout>
|
||||
</LinearLayout>
|
35
res/layout/pending_message.xml
Executable file
35
res/layout/pending_message.xml
Executable file
@ -0,0 +1,35 @@
|
||||
<?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="wrap_content"
|
||||
android:background="#333333">
|
||||
<TextView
|
||||
android:id="@+id/pending_address"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#FFFFFF"
|
||||
android:layout_marginTop="4sp"
|
||||
android:layout_marginLeft="6sp"
|
||||
android:focusable="false"
|
||||
android:textSize="14sp"></TextView>
|
||||
<TextView
|
||||
android:id="@+id/pending_time"
|
||||
android:layout_below="@id/pending_address"
|
||||
android:layout_alignLeft="@id/pending_address"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="6sp"
|
||||
android:textColor="#CCCCCC"
|
||||
android:focusable="false"
|
||||
android:textSize="14sp"></TextView>
|
||||
<TextView
|
||||
android:id="@+id/pending_status"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#CCCCCC"
|
||||
android:focusable="false"
|
||||
android:paddingBottom="6sp"
|
||||
android:layout_marginLeft="6sp"
|
||||
android:textSize="14sp"></TextView>
|
||||
</LinearLayout>
|
19
res/layout/pending_messages.xml
Executable file
19
res/layout/pending_messages.xml
Executable file
@ -0,0 +1,19 @@
|
||||
<?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"
|
||||
/>
|
||||
<TextView android:id="@android:id/empty"
|
||||
android:text="There are no pending messages."
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_weight="1"
|
||||
/>
|
||||
</LinearLayout>
|
5
res/menu/inbox.xml
Executable file
5
res/menu/inbox.xml
Executable file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:id="@+id/forward_all"
|
||||
android:title="Forward all" />
|
||||
</menu>
|
@ -15,8 +15,8 @@
|
||||
<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" />
|
||||
<item android:id="@+id/pending"
|
||||
android:icon="@drawable/ic_menu_dialog"
|
||||
android:title="@string/pending" />
|
||||
|
||||
</menu>
|
7
res/menu/pending_messages.xml
Executable file
7
res/menu/pending_messages.xml
Executable file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:id="@+id/retry_all"
|
||||
android:title="Retry all" />
|
||||
<item android:id="@+id/delete_all"
|
||||
android:title="Delete all" />
|
||||
</menu>
|
@ -5,6 +5,7 @@
|
||||
<string name="test">Test Connection</string>
|
||||
<string name="check_now">Check Messages</string>
|
||||
<string name="help">Help</string>
|
||||
<string name="pending">Pending Msgs...</string>
|
||||
<string name="retry_now">Retry</string>
|
||||
<string name="forward_inbox">Fwd Inbox...</string>
|
||||
<string name='service_started'>New SMS will be forwarded to server</string>
|
||||
|
@ -80,4 +80,14 @@
|
||||
android:targetClass="org.envaya.sms.ui.TestPhoneNumbers" />
|
||||
</PreferenceScreen>
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="help"
|
||||
android:title="About EnvayaSMS"
|
||||
>
|
||||
<intent
|
||||
android:action="android.intent.action.MAIN"
|
||||
android:targetPackage="org.envaya.sms"
|
||||
android:targetClass="org.envaya.sms.ui.Help" />
|
||||
</PreferenceScreen>
|
||||
|
||||
</PreferenceScreen>
|
Reference in New Issue
Block a user