Hi, I am trying to apply RIGHT gravity to EditText(google search bar) with hint and setSingleLine property to true but hint is disappearing. Have I missing something? below is the code
EditText mEditText = new EditText(this); mEditText.setGravity(Gravity.RIGHT); mEditText.setHint(hint); mEditText.setSingleLine(true); //this is required but without this hint appears //mEditText.setInputType (InputType.TYPE_TEXT_VARIATION_WEB_EDIT_TEXT); //the above line also makes the hint disappear Regards Pradeep -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en