Note that there are some explanatory texts on larger screens.

plurals
  1. POEmail Application in android
    text
    copied!<p>I am working on a new module of Email application in android.</p> <p>My main.xml file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" /&gt; &lt;FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;TextView android:id="@+id/textview1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="" /&gt; &lt;TextView android:id="@+id/textview2" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="" /&gt; &lt;TextView android:id="@+id/textview3" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="" /&gt; &lt;TextView android:id="@+id/textview4" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="" /&gt; &lt;TextView android:id="@+id/textview5" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="" /&gt; &lt;/FrameLayout&gt; &lt;/LinearLayout&gt; &lt;/TabHost&gt; </code></pre> <p>Its working fine. My query is: I have 5 tabs(Compose mail,Inbox,Sentmail,Drafts and Contacts). On clicking the respective tab I need to display corresponding application. Eg. Wen i click on Compose mail tab, I need to compose mail application to get displayed and wen i click Inbox tab i need to display Inbox mails and so on.</p> <p>Can some body help me in this issue?</p> <p>Pls refer me any links for complete mailbox application source code.</p> <p>Thanks in advace.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload