替代的EditText的工具?必须有一种方式有一种、方式、工具、EditText

2023-09-04 08:36:32 作者:潮男情歌

有没有人成功地实施了一个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>