Android - 状态通知上的 EditText [英] Android - EditText on status notification

查看:19
本文介绍了Android - 状态通知上的 EditText的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道我是否可以在 Android 通知中插入 EditText(用于插入文本)?我想在按下按钮时有一个按钮和一个编辑文本,然后在编辑文本上取回文本.

Does anyone know if I can insert an EditText (for inserting text) on an Android notification? I would like to have a button and an edittext when the button is pressed then get back the text on the edittext.

有可能吗?谢谢

推荐答案

这可以在 Jelly Bean 中完成,但据我所知在之前的版本中没有.由于这是内置在 android 系统中的,因此应该考虑并接受这种做法.

This can be done in Jelly Bean but as far as I know not in version prior to that. Since this is built in to the android system it should be considered and acceptable practice.

来自安卓博客:

双向文本支持:Android 4.1 通过支持 TextView 和 EditText 元素中的双向文本,帮助您吸引更多用户.

Bi-directional text support: Android 4.1 helps you to reach more users through support for for bi-directional text in TextView and EditText elements.

提及此功能的 Android 博客文章

您可以在此处了解创建自定义通知布局"

这篇关于Android - 状态通知上的 EditText的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆