Align ImageView with EditText horizontally

前端 未结 7 1031
天涯浪人
天涯浪人 2021-01-01 04:21

I\'m trying hard to find a way of aligning an EditText and an ImageView properly on Android. I keep getting this result:

<

7条回答
  •  心在旅途
    2021-01-01 05:04

    To get rid of the padding in the EditText, just use a custom image as background... rectangle with some shadow is enough... or whatever you like... and assign the background to the EditText using

    android:background="@drawable/myBackground"
    

提交回复
热议问题