Fully display emails

This commit is contained in:
str4d
2014-02-28 07:29:55 +00:00
parent b5d32c0cc3
commit 04f0958f07
4 changed files with 175 additions and 12 deletions

View File

@@ -3,9 +3,110 @@
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/email_subject"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
</ScrollView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/darker_gray"
android:orientation="vertical" >
<TextView
android:id="@+id/email_subject"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:text="Subject"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TableLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_marginBottom="5dp" >
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="3dp"
android:text="@string/email_from" />
<TextView
android:id="@+id/email_sender"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Sender" />
</TableRow>
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="3dp"
android:text="@string/email_to" />
<LinearLayout
android:id="@+id/email_recipients"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
</LinearLayout>
</TableRow>
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="3dp"
android:text="@string/email_sent" />
<TextView
android:id="@+id/email_sent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Datetime" />
</TableRow>
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="3dp"
android:text="@string/email_received" />
<TextView
android:id="@+id/email_received"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Datetime" />
</TableRow>
</TableLayout>
</LinearLayout>
<TextView
android:id="@+id/email_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:text="Content" />
</LinearLayout>
</ScrollView>

View File

@@ -14,4 +14,9 @@
<string name="folder_empty">Folder is empty</string>
<string name="folder_does_not_exist">Folder does not exist</string>
<string name="email_from">From:</string>
<string name="email_to">To:</string>
<string name="email_sent">Sent:</string>
<string name="email_received">Received:</string>
</resources>