mirror of
https://github.com/cwinfo/envayasms.git
synced 2025-06-26 02:39:23 +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>
|
Reference in New Issue
Block a user