Thursday, April 12, 2012

Remove extra spaces around Android textfield (EditText)

To remove extra spaces (Margins) around TextView wrapped in LinearLayout add the following in the tag properties    android:background="@null"

           <EditText
                android:id="@+id/textView"
                android:layout_width="match_parent"
                android:layout_margin="0px"
                android:background="@null"
                android:layout_weight="1" >
            </EditText>


No comments:

Post a Comment