Tag: android-edittext

ClearableEditText – requestLayout() improperly called on Android 4.3

I implemented ClearableEdittext and it works perfectly except on 4.3 where the logcat floods me with: W/View(16611): requestLayout() improperly called by com.[myPackage].ui.widgets.ClearableEditText{42233dd0 VFED..CL .F….ID 0,0-708,88 #7f050127 app:id/SearchEdittext} during layout: running second layout pass W/View(16611): requestLayout() improperly called by com.[myPackage].ui.widgets.ClearableEditText{42233dd0 VFED..CL .F….ID 0,0-708,88 #7f050127 app:id/SearchEdittext} during layout: running second layout pass W/View(16611): requestLayout() improperly called by […]

Android EditText Multiline with SoftInputMode adjustPan

I have an activity to edit some text with a top bar a EditText view in multiline mode inside a scrollview. At the bottom another view with 2 buttons. What I wanted to achieve is when editing the text that bottom bar would be below the softkeyboard. That is easy using android:windowSoftInputMode=”adjustPan” in the manifest. […]

android : TextInputLayout hides drawableRight of child EditText

I am always updated with library updates, and this is what it resulted into. In build.gradle(Project:xxx): classpath ‘com.android.tools.build:gradle:2.2.0-beta1’ In build.gradle(Module:app) compile ‘com.android.support:appcompat-v7:24.2.0’ compile ‘com.android.support:design:24.2.0’ And put password field as below: <android.support.design.widget.TextInputLayout android:layout_width=”match_parent” android:layout_height=”wrap_content”> <android.support.v7.widget.AppCompatEditText android:layout_width=”match_parent” android:layout_height=”wrap_content” android:inputType=”textPassword” /> </android.support.design.widget.TextInputLayout> Taadaa…My Password field looks now as below: You can also go simply with EditText. But, there […]

How to add EditText in listview and get its value dynamically in all the rows?

I have Checkbox and EditText and a Textview in a listView. It gets value for the text view from a list. Checkbox will be checked dynamically. In the same way EditText also can be entered dynamically. Now my problem is, When i scroll the list view (up and down) after entering the text in the […]

CoordinatorLayout messing up setError popup position

I’m facing an issue with EditText setError popup position. I’m using the following code in to create the layout: activity_profile.xml <?xml version=”1.0″ encoding=”utf-8″?> <android.support.design.widget.CoordinatorLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” android:fitsSystemWindows=”true” tools:context=”.ProfileActivity” android:orientation=”vertical”> <android.support.design.widget.AppBarLayout android:layout_height=”wrap_content” android:layout_width=”match_parent” android:theme=”@style/AppTheme.AppBarOverlay”> <android.support.v7.widget.Toolbar android:id=”@+id/toolbar” android:layout_width=”match_parent” android:layout_height=”?attr/actionBarSize” android:background=”?attr/colorPrimary” app:popupTheme=”@style/AppTheme.PopupOverlay” /> </android.support.design.widget.AppBarLayout> <include layout=”@layout/profile” /> </android.support.design.widget.CoordinatorLayout> profile.xml <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” […]

How to set edittext preference summary and have it stick

I have gone back and fourth on this and I just can not get it. I am setting up my settings using a preference fragment. I can get the settings to work and I can even get the “summary” to update when I make the change. But if I leave the settings screen and come […]

How to get text input on Canvas?

I’m new in the Android world and I have a very annoying problem. In my program I use the Android Canvas. I’d like to add an EditText element, or something like that, to get user text inputs. Can you help me find a way to solve this problem? Thanks for the answers.

Force FullScreen on EditText in Android

I am currently developing an app with Samsung Galaxy Tab 2 as my device. My Code in the XML is: <EditText android:id=”@+id/analysis_text” style=”@style/icon_text” android:imeOptions=”actionDone” android:inputType=”textMultiLine” android:onClick=”onBtnClicked” /> When this code executes, the full screen data entry mode (Extract Mode) is triggered automatically only in certain situations. I would like my users to get a full […]

Text is messed up with ImageSpan in EditText

I am building a simple chat app where the user has the ability to send text and emoticons. I can send both text and emoticons to another phone. My problems are: 1.When I type something and add an emoticon: Then I cannot type any text right before and right after the image. I can write […]

Listview with edittext – auto scroll on “next”

I have a ListView with one EditText on each row (in addition to a couple of non-editable TextView’s). When I’m editing the text in the EditText, the soft keyboard has “Next” button – and pressing it moves the focus to the next field – this is great. On the last row, the button changes to […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.