小编Pra*_*rma的帖子

如何在Android中的聊天或消息应用程序中发送表情符号(图像,表情符号)?

如何发送文本和图释/图像(不是默认的表情符号,资产文件夹中的图像)一起写在一个edittext中,以发送消息和聊天,因为它出现在该edittext中.

ps我正在通过邮件或邮件正文发送这些图像.

我正在尝试以下代码:

public class MainActivity extends FragmentActivity implements KeyClickListener {

private static final int NO_OF_EMOTICONS = 54;

private ListView chatList;
private View popUpView;
private ArrayList<Spanned> chats;
private ChatListAdapter mAdapter;

private LinearLayout emoticonsCover;
private PopupWindow popupWindow;

private int keyboardHeight; 
private EditText content;
CustomizeDialogWithAction customizeDialog = null; 
private LinearLayout parentLayout;

private boolean isKeyBoardVisible;
private boolean keyicon = true;


Bitmap bitmap;
Bitmap temp;
Uri URI = null;
ImageView image;

public String body;

private Bitmap[] emoticons;

@TargetApi(Build.VERSION_CODES.GINGERBREAD)
@Override
protected void onCreate(Bundle savedInstanceState) { …
Run Code Online (Sandbox Code Playgroud)

email sms android image textview

3
推荐指数
1
解决办法
5927
查看次数

标签 统计

android ×1

email ×1

image ×1

sms ×1

textview ×1