Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid custom EditText UI
    text
    copied!<p>Hello I would like to customize the way the default EditText is drawn on the screen, I have this code </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item android:state_pressed="true" &gt; &lt;shape android:shape="rectangle"&gt; &lt;solid android:color="#00ff00" /&gt; &lt;stroke android:width="5dp" android:color="#ff0000" android:dashWidth="3dp" android:dashGap="2dp" /&gt; &lt;/shape&gt; &lt;/item&gt; &lt;item android:state_focused="true" &gt; &lt;shape&gt; &lt;gradient android:endColor="#8dc73f" android:centerColor="#d4d4d4" android:startColor="#d4d4d4" android:centerX="0.5" android:centerY="0.5" android:angle="270" /&gt; &lt;stroke android:width="1dp" color="#8dc73f" /&gt; &lt;corners android:radius="6dp" /&gt; &lt;padding android:left="10dp" android:top="10dp" android:right="10dp" android:bottom="10dp" /&gt; &lt;/shape&gt; &lt;/item&gt; &lt;item&gt; &lt;shape&gt; &lt;gradient android:endColor="#d4d4d4" android:centerColor="#d4d4d4" android:startColor="#d4d4d4" android:angle="270" /&gt; &lt;stroke android:width="1dp" color="#00ff00" /&gt; &lt;corners android:radius="7dp" /&gt; &lt;/shape&gt; &lt;/item&gt; &lt;/selector&gt; </code></pre> <p>wich works fine but the problem is that on the focused state I would like to apply the effect round of the EditText and note inside, like the default android effect is applied, is this possible and how because I haven't found a solution, the above code only applies the effect inside the EditText.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload