Tag: android-edittext

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 EditText blends into background

My app uses Theme.Holo.Light.DarkActionBar as the parent theme. When I use my Android 3.2 tablet emulator, the EditText shape is almost impossible to see. It looks like it is trying to draw white on white. Seen here: When I use it on my Android 4.0 tablet emulator, the EditText shape looks just fine. You can […]

How do I use AsYouTypeFormatter TextWatcher in Android App?

I am trying to use the AsYouTypeFormatter from Google’s libphonenumber with TextWatcher and am not sure if it’s possible. I have been able to format the text as typed from an EditText field and output it in another EditText but not able to change the original EditText field directly (which is what I want). I […]

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