2
I am using a Autocompletetextview and an Edittext, for email and password, respectively. Is it possible to change their color? Here is an image: Change the selection color and the color on the screen:
XML:`
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<AutoCompleteTextView
android:id="@+id/email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusableInTouchMode="true"
android:hint="@string/prompt_email"
android:inputType="textEmailAddress"
android:maxLines="1"
android:singleLine="true"
android:textColor="#D3D3D3"
android:textSize="12dp"/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:hint="@string/prompt_password"
android:imeActionId="@+id/login"
android:imeActionLabel="@string/action_sign_in_short"
android:imeOptions="actionUnspecified"
android:inputType="textPassword"
android:maxLines="1"
android:singleLine="true"
android:textColor="#D3D3D3"
android:textSize="12dp"/>
</android.support.design.widget.TextInputLayout>
` Thank you
So, I already had a custom style, it changes the color of the line, but the text "email for example", which continues in black and the selection still in "pink".
– Henrique
You tried to use the code I put in
– Bruno Romualdo
These days I was also looking for how to change this and after researching many topics I managed to join this ai kk
– Bruno Romualdo
In my example the colors are white because my background is black.
– Bruno Romualdo
Bruno, thank you, worked yes, my brain was slow in explaining there. Thank you very much!
– Henrique
That nothing, I also took too long to get it to work kkkk
– Bruno Romualdo