I tested the following code: <EditText android:id="@+id/etMessage" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:hint="Compose text message..." android:maxLines="3" android:capitalize="sentences" android:autoText="true" android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine" android:imeOptions="flagNoExtractUi" android:gravity="top|right" />
On the following devices: Motorola Droid (2.2.2) HTC Hero (2.1-update 1) Samsung Galaxy Tab (2.2) Sony Xperia Play (2.3.2) They all worked fine. Maybe adding the "top" to it corrected it. Steven Studio LFP http://www.studio-lfp.com On Saturday, October 8, 2011 10:42:59 AM UTC-5, Kostya Vasilyev wrote: > > FWIW: I just tried it on an HTC Incredible S (official firmware, 2.3.3) > and got the same result as the OP: > > Setting android:gravity="right" made android:hint disappear. > > Previews as rendered by a special library, which, AFAIK, does not use the > same exact code as a real runtime (device or emulator) does. > > -- Kostya > > 08.10.2011 19:20, Studio LFP пишет: > > There is definitely something wrong in the code. > > The first time I tested was on a Samsung Galaxy Tab (2.2) and I just tested > it again on the Xperia Play (2.3.2) and it worked just fine. > > If you want to post the XML that contains the layout, that would be > helpful. > > Steven > Studio LFP > http://www.studio-lfp.com > > > On Saturday, October 8, 2011 10:11:33 AM UTC-5, darrinps wrote: >> >> I have tried it out on a 2.2 device (Samsung Galaxy) and using the 2.3 >> emulator. Same thing on both. What is odd though is that is shows up >> in the preview just fine! >> >> I know, you would think that there is something shifting it in the >> code but the just isn't. >> >> This is very frustrating. >> >> >> On Oct 7, 4:04 pm, Studio LFP <stud...@gmail.com> wrote: >> > I just tested this on an application I had in front of me and it worked >> > well. >> > >> > Which version of Android are you testing on (and what hardware)? Are >> there >> > any other settings on the view that might be causing a conflict? Or >> maybe >> > there is another view overlapping that is causing an issue? >> > >> > Steven >> > Studio LFPhttp://www.studio-lfp.com > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-d...@googlegroups.com > To unsubscribe from this group, send email to > android-develop...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > > > -- > Kostya Vasilyev > > -- 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