android:gravity="center_horizontal" IF you find that the alignment will not work as you desire, then the next move would be to use a table row and set the gravity for the table row - with the use of either gravity and/or padding you will get the desired effect.
Regards, Fred On 16 November 2012 14:03, Live Happy <[email protected]> wrote: > i tried it but it not work > > > On Fri, Nov 16, 2012 at 3:45 PM, Fred Niggle > <[email protected]>wrote: > >> adjust gravity of the layout to center... >> >> On 16 November 2012 13:20, Live Happy <[email protected]> wrote: >> >>> >>> >>> I display emoji in EditText using spannable, but the problem is that >>> the text appears in the bottom of the emoji picture, not in the middle of >>> it (see picture). >>> >>> So, how to make it display in the middle? >>> >>> [image: Inline image 1] >>> >>> <EditText >>> android:id="@+id/et_tInput" >>> android:layout_width="0dip" >>> android:layout_height="match_parent" >>> android:layout_weight="1" >>> android:inputType="textCapSentences|textMultiLine" >>> android:maxLength="2000" >>> android:maxLines="4" >>> android:textColor="@android:color/black" >>> android:textCursorDrawable="@drawable/black_cursor"/> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >> >> >> >> >> -- >> Ubuntu Speech >> input<https://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinput>is >> now available on Google Play, along with Magnetic >> Door Alarm >> app<https://play.google.com/store/apps/details?id=com.nds.magneticdooralarm> >> . >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Ubuntu Speech input<https://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinput>is now available on Google Play, along with Magnetic Door Alarm app<https://play.google.com/store/apps/details?id=com.nds.magneticdooralarm> . -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
<<123.png>>

