Right gravity and hint in EditText is making hint disappear

by and.pradeep » Mon, 02 Nov 2009 14:35:32 GMT


Sponsored Links
 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

--



Other Threads

1. whether the latest ANDROID supports armv4

hi
Hi all, 

I am a newbie in ANDROID. I am proting ANDROID ON SC32440,can anybody tell me 
whether  the latest ANDROID supports armv4?
2009-08-11 



  
JeefJiang
Room 111,MingZhu Building
Central South University
ChangSha,HuNan
P.R.Cge

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Is it possible to access an Android managed service(i.e remotable

Is it possible to access an Android managed service(i.e remotable
object) from C++ layer?

If I add a new remotable object to the ServiceManager in java layer,
and perform the lookup in C++ layer, it seems my lookup is succesful.
Does it mean that if I provide the corresponding C++ proxy, i will be
able to access the complete java remotable object. Is it right?

Pls clarify. Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. How to add a new application to the cupcake source code?

4. How to load recovery.img on Android and where is the location of boadloader control block (BBC)

5. push or push-like options

6. Urgent Dialog probleme

7. XML Layout does not show AutoCompleteTextView