替代的EditText的工具?必须有一种方式 [英] EditText Alternatives in a Widget? There has to be a way

查看:106
本文介绍了替代的EditText的工具?必须有一种方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人成功地实施了一个EditText在一个小部件?我知道Android不支持这一点,但是,朋友流的HTC设备它...这是由于一个HTC的功能?我可以实现这在HTC?任何人有任何疯狂的创意实现一个文本框,实际上允许输入一个主屏幕小工具?

Has anyone ever successfully implemented an EditText in a widget? I realize Android does not support this, however, "Friend Stream" on HTC devices does it... Is this due to an HTC feature? Could I implement this on HTC? Anyone have any crazy creative ideas for implementing a textbox which actually allows typing on a homescreen widget?

任何的可能对这个线索将是非常美联社preciated!

ANY possible leads on this would be much appreciated!

推荐答案

其中大部分可能是谷歌-ED,expept为TextViews的风格(你不能在窗口小部件使用的EditText ..)

Most of this can be google-ed, expept for the style of TextViews (you can not use EditText in widget..)

但..与样式属性去..:)

But.. go with the style property.. :)

<TextView
    android:id="@+id/etBlahblah"
    android:layout_width="0dp"
    android:layout_height="fill_parent"
    android:layout_weight="1"
    android:layout_marginTop="4dp"
    android:layout_marginBottom="4dp"
    android:layout_marginLeft="2dp"
    android:layout_marginRight="2dp"
    style="@android:style/Widget.EditText">
</TextView>

这篇关于替代的EditText的工具?必须有一种方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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