Android - EditText on status notification

后端 未结 3 1071
忘了有多久
忘了有多久 2021-01-02 19:06

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 g

相关标签:
3条回答
  • 2021-01-02 19:38

    Is that good UI? I don't think people expect to write something on a notification. It'll confuse them. Why don't you just have a button that opens your app and lets the user type?

    0 讨论(0)
  • 2021-01-02 19:43

    But it was good in case where you are using the pdf reader and at the same time you need to use a dictionary then its good to type a word into the textbox and will get its meaning instead of switching from one app to another.

    0 讨论(0)
  • 2021-01-02 19:59

    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.

    From the android blog:

    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 blog post that mentions this capability

    Here is were you can learn about "Creating a Custom Notification Layout"

    0 讨论(0)
提交回复
热议问题