I've created a simple app that has only one TextView and one EditText :
Asyoucanseechangedthebackgroundofboth,sofarnoproblem:
TheproblemappearswhenIinserttext,asitispoorlypositionedinthelayoutofbothTextViewandEditText:
Evenindifferentways...
Anyway,I'vetriedsomewaystoworkaroundthis,includingselectingotheralignments,butnoneofthebehaviorchanges:
IwouldliketobeinformedhowtomakethetextboxesworksimilarlytowhatIwilldisplay:
Imadeanine-patchwiththeimageintheapplication:
ButalreadyinthepreviewofthelayoutIfoundstrangebecauseitappearedbugada:
Inthefinalresultintheandroidemulator,itwasdifferent,butalsobad:
The original image has the following dimensions = > 714x627 ... I made a rule of 3 because I wanted it to be 100 wide.
I placed it in layout_width 100 and layout_heigth 88 .
The value equivalent to 100 in height, gave 87 and a broken because I made rule of 3, approached to 88 . Even so, I should not present something so strange ...
The solution was to resize the image and re-import it into android studio, I took 2 extra width and height pixels to cut it.