Home » Android » Edittext with Shape-Background have “lines” around Border

Edittext with Shape-Background have “lines” around Border

Posted by: admin November 1, 2017 Leave a comment


i use a Edittext with a rounded Shape as Background. The Code:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:thickness="0dp" >

<stroke android:width="3dp"

<corners android:bottomLeftRadius="5dp"
    android:topRightRadius="5dp" />

<solid android:color="#c8000000"/>

So far so good. On “normal”-State it looks fine, but if the Editfield have Focus, so the Shape looks like it “redraws” everytime.
There are Lines around the Border, which are getting darker and darker.

The following Image shows the Normal-State, and below them the Focus-State with the Problem (after a few Seconds):
Show the Problem

I’ve enlarged the picture, so you can see, what is the Problem.
I don’t know, where the Problem is, so hope that anyone could help me, thanks.