 <p>Just add below code in your edit-text</p> <pre><code>android:hint="Your Text"; // XML </code></pre> <p>or even you can set it run time by using following code</p> <pre><code>EditText text = new (EditText) findviewbyid (R.id.text1); text1.setHint("Enter your message here"); </code></pre>