Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Text display in the bottom of emoji
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Live Happy  
View profile  
 More options Nov 16 2012, 8:23 am
From: Live Happy <livehap...@gmail.com>
Date: Fri, 16 Nov 2012 15:20:01 +0200
Local: Fri, Nov 16 2012 8:20 am
Subject: Text display in the bottom of emoji

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"/>

  123.png
5K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fred Niggle  
View profile  
 More options Nov 16 2012, 8:50 am
From: Fred Niggle <fred.nig...@googlemail.com>
Date: Fri, 16 Nov 2012 13:45:57 +0000
Local: Fri, Nov 16 2012 8:45 am
Subject: Re: [android-developers] Text display in the bottom of emoji

adjust gravity of the layout to center...

On 16 November 2012 13:20, Live Happy <livehap...@gmail.com> wrote:

--
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>
.

  123.png
5K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Live Happy  
View profile  
 More options Nov 16 2012, 9:05 am
From: Live Happy <livehap...@gmail.com>
Date: Fri, 16 Nov 2012 16:03:26 +0200
Local: Fri, Nov 16 2012 9:03 am
Subject: Re: [android-developers] Text display in the bottom of emoji

i tried it but it not work

On Fri, Nov 16, 2012 at 3:45 PM, Fred Niggle <fred.nig...@googlemail.com>wrote:

  123.png
5K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fred Niggle  
View profile  
 More options Nov 16 2012, 9:09 am
From: Fred Niggle <fred.nig...@googlemail.com>
Date: Fri, 16 Nov 2012 14:06:28 +0000
Local: Fri, Nov 16 2012 9:06 am
Subject: Re: [android-developers] Text display in the bottom of emoji

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 <livehap...@gmail.com> wrote:

--
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>
.

  123.png
5K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
skink  
View profile  
 More options Nov 17 2012, 4:46 pm
From: skink <psk...@gmail.com>
Date: Sat, 17 Nov 2012 13:42:24 -0800 (PST)
Local: Sat, Nov 17 2012 4:42 pm
Subject: Re: Text display in the bottom of emoji

Live Happy 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?

imho you can't do this using spans, however you could try ImageSpan
ctor with verticalAlignment e.g:

ImageSpan(Context
context, int resourceId, int
verticalAlignment)

pskink


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "答复: [android-developers] Text display in the bottom of emoji" by kimichang
kimichang  
View profile  
 More options Nov 20 2012, 4:35 am
From: "kimichang" <kimichangs...@gmail.com>
Date: Tue, 20 Nov 2012 17:31:53 +0800
Local: Tues, Nov 20 2012 4:31 am
Subject: 答复: [android-developers] Text display in the bottom of emoji

Try  android:layout_gravity

发件人: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] 代表 Live Happy
发送时间: 2012年11月16日 21:20
收件人: android-developers@googlegroups.com
主题: [android-developers] Text display in the bottom of emoji

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?

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

  image001.png
5K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic