I used a stroke to write a component today. However, when two components are placed together, the strokes overlap to make them thicker. It's not very beautiful.
How do I cancel it? On-line search for a long time did not find, and then on their own try, found a solution, on this record, to prevent later forget.
It's easy to add android:layout_marginright= "-1dp" and android:layout_marginleft= "-1DP" to two controls respectively
The value in this is set to -1. Otherwise there is no effect. The effect after setting:
The layout file is as follows.
1<?xml version= "1.0" encoding= "Utf-8"?>2<linearlayout xmlns:android= "Http://schemas.android.com/apk/res/android"3Android:layout_width= "Match_parent"4android:layout_height= "Match_parent"5android:orientation= "Horizontal" >6<EditText7Android:id= "@+id/myet"8Android:layout_weight= "4"9Android:layout_width= "0dip"Tenandroid:layout_height= "50DP" OneAndroid:ems= "10" Aandroid:background= "@drawable/border_text_selector" - android:layout_marginright= " -1DP" -Android:singleline= "true" the> -</EditText> -<ImageView -Android:id= "@+id/myiv" +android:layout_weight= "1" -Android:layout_width= "0DP" +android:layout_height= "50DP" Aandroid:background= "@drawable/bg_border" at android:layout_marginleft= " -1DP" -android:src= "@drawable/ic_launcher"/> -</LinearLayout>