0
I would like to know how to make the Edittext fund transparent, in this way:
I tried in the following ways, but without success:
edt.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<corners android:radius="5dp" />
<padding
android:bottom="4dp"
android:left="4dp"
android:right="4dp"
android:top="4dp" />
<solid android:color="@color/editText_alpha" />
</shape>
And I tried to set it straight onCreate
:
mEmailView.setAlpha(0.7f);
Weslley like this only works directly in Edittext. I needed it as a specific xml. I actually already got it. I’ll post.
– rbz
I don’t understand, any XML you set the background will work, even in a style if you set the background every application will inherit
– Weslley Barbosa
It could be ! I tried to pull only
color
, thebackground
no! I am leaving all the style for the end ! Rs... Put in your reply by XML that I confirm and already confirm the answer. Thanks !– rbz