Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to implement a form with a holo style like the stock add contact app?
    text
    copied!<p>I need to collect user input, and I want to use the same style as the stock android "add contact app", like the screenshot above (can't post images still):</p> <p><a href="http://www.vogella.com/articles/AndroidSQLite/images/xcontact30.png.pagespeed.ic.rcgxciehCj.png" rel="nofollow noreferrer">http://www.vogella.com/articles/AndroidSQLite/images/xcontact30.png.pagespeed.ic.rcgxciehCj.png</a></p> <p>I know I can use the EditText widget but how I add the "Phone", "Email" widget? Are they edit text too? Can you give me some xml example?</p> <p><strong>EDIT</strong>: What I want to diplay is the "Phone" <em>label</em> (not the entry itself): I need the xml values to make it identical to the phone (font, style, type). </p> <p>Thanks a lot</p> <p><strong>EDIT 2 (SOLVED):</strong> I solved this thanks to user @divoom12 and this help <a href="https://stackoverflow.com/questions/5049852/android-drawing-separator-divider-line-in-layout">Android Drawing Separator/Divider Line in Layout?</a></p> <pre><code> &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="left" android:paddingBottom="1dp" android:paddingLeft="6dp" android:text="CATEGORY" android:textColor="#33b5e5" android:textSize="15sp" android:textStyle="bold" /&gt; &lt;View android:layout_width="fill_parent" android:layout_height="1dp" android:background="#33b5e5" /&gt; &lt;EditText android:id="@+id/editText1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:ems="10" android:inputType="textPersonName" android:text="@string/name" android:textColor="#ffffffff" android:textSize="15sp" /&gt; </code></pre>
 

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