android-edittext

Issues focusing EditTexts in a ListView (Android)

不羁岁月 提交于 2019-12-29 07:02:42
问题 I have a ListView with a few EditTexts in each item. I have no issues with a hardware keyboard, but things freak out a bit with the soft keyboard. I have two issues. When I first click on an EditText, it briefly appears to have focus but then loses focus once the keyboard has shown. I must then click the EditText again to get focus. When an EditText with focus is scrolled out of view, focus goes to... well... see the screenshot. I'm not sure what's happening. More details on #1: When the

EditText Alternatives in a Widget? There has to be a way

老子叫甜甜 提交于 2019-12-29 06:42:32
问题 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? ANY possible leads on this would be much appreciated! 回答1: Most of this can be google-ed, expept for the style of TextViews (you can not use EditText in widget.

EditText Alternatives in a Widget? There has to be a way

左心房为你撑大大i 提交于 2019-12-29 06:41:33
问题 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? ANY possible leads on this would be much appreciated! 回答1: Most of this can be google-ed, expept for the style of TextViews (you can not use EditText in widget.

EditText background base line color changing based on its focus in android

社会主义新天地 提交于 2019-12-29 05:42:12
问题 I need to design EditText with base line showed in below image and it will be change to some other color when it receives focus.! i am using the following. <EditText android:id="@+id/mobilenumber" android:drawableLeft="@drawable/mobile" android:drawablePadding="15dp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:inputType="number" android:background="@drawable/edt_bg" android:singleLine="true" android:textColorHint="#FFFFFF" android:hint="@string/mobilenumber

Cannot Type EditText in ExpandableListView Child

大憨熊 提交于 2019-12-29 05:36:33
问题 i am using expandableList and each child has its edittext to enter a number... when the child is pressed, the edittext shows. if it is not, the edittext stays invisible.. but when i tap on the edittext, the keyboard shows in number (because i set type input : number) only 1 second. after that it turns to common keyboard. even it backs to common keyboard, still, i cant type on the edittext... here is my code public View getChildView(int groupPosition, int childPosition, boolean isLastChild,

Soft keyboard hides half of EditText

。_饼干妹妹 提交于 2019-12-28 12:00:29
问题 I have a listview and the last list item contains EditText: <RelativeLayout android:id="@+id/contentLayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="30dp" android:orientation="vertical" > <ImageView android:id="@+id/test" android:layout_width="wrap_content"

When the soft keyboard appears, it makes my EditText field lose focus

孤街浪徒 提交于 2019-12-28 07:40:11
问题 I've got a few EditText fields in a ListView. When I tap on one of the EditText fields, the keyboard slides into view (as it should), but the EditText field I tapped loses focus. I've tried using various InputMethodManager methods to make the keyboard start out in view (in order to get around the problem rather than truly solve it), but that didn't work - the keyboard was not in view when the Activity appeared. The EditText's type is number , and when the keyboard is sliding in, it is a

How to change color of EditText handles?

帅比萌擦擦* 提交于 2019-12-28 06:46:50
问题 Where does the green color comes from? I've tried changing the accentColor attribute, which works in other parts of the app, but not here. Screenshot from app in Lollipop. How can I change the colors of: the text handle drawables? how to tint them? the select-all-background color? And maybe some tips for the future... How did you find out? I've been coming across all these confusing color/styling problems. Is there some kind of list somewhere that tells me, which default color or attribute

How to change color of EditText handles?

旧城冷巷雨未停 提交于 2019-12-28 06:46:11
问题 Where does the green color comes from? I've tried changing the accentColor attribute, which works in other parts of the app, but not here. Screenshot from app in Lollipop. How can I change the colors of: the text handle drawables? how to tint them? the select-all-background color? And maybe some tips for the future... How did you find out? I've been coming across all these confusing color/styling problems. Is there some kind of list somewhere that tells me, which default color or attribute

How to make edittext in Android scrollable?

…衆ロ難τιáo~ 提交于 2019-12-28 06:17:26
问题 I am creating a dynamic layout that contains an edit text. I want to make this edit text scrollable. questionEntry.setMaxLines(1); questionEntry.setVerticalScrollBarEnabled(true); questionEntry.setMovementMethod(new ScrollingMovementMethod()); Using this code I made my edit text scrollable. But the problem is when I am typing something. If it reaches the end of the edit text, it will stop typing my text and not automatically jump to the next line. If I press the enter key, it will jump. I