Saturday, April 12, 2014

Picture Android Layout layout on how to break the background


posts by venlentine on 2013-09-17 21:18:01 Edit
to achieve results

has achieved results


code below, no breakthrough icon picture background ah, how to achieve
xmlns: android = "http://schemas.android.com/apk/res/android"
android: id = "@ + id / list_company_item"
android: layout_width = "fill_parent"
android: layout_height = "wrap_content"
android: background = "@ drawable / bg_company_item"
android: layout_margin = "30dp">
android: layout_height = "wrap_content"
android: layout_width = "fill_parent"
android: layout_gravity = "center_vertical">

android: src = "@ drawable / icon_item"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: layout_gravity = "center_vertical"
/>


<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
android: layout_maginleft = "-xxx"
Reply:
LS positive solutions
Reply:
android: layout_maginleft = "-20dp"
But you need to look at the specific situation and needs the best linear layout
Reply:
Join
in editText codeandroid: drawableLeft = "@ drawable / ic"
"" Where you want to add pictures
Reply:
.9 Figure on ok ah
Reply:
android: layout_maginleft = "-20dp" ah, so that it becomes the following, are hidden

Reply:

android: id = "@ + id/editText1"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: layout_alignParentLeft = "true"
android: layout_alignParentTop = "true"
android: background = "@ android: drawable / editbox_background"
android: drawableLeft = "@ drawable / ic_launcher"
android: ems = "10" />
Reply:

android: id = "@ + id/editText1"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: layout_alignParentLeft = "true"
android: layout_alignParentTop = "true"
android: background = "@ android: drawable / editbox_background"
android: drawableLeft = "@ drawable / ic_launcher"
android: ems = "10" />
Reply:

android: id = "@ + id/editText1"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: layout_alignParentLeft = "true"
android: layout_alignParentTop = "true"
android: background = "@ android: drawable / editbox_background"
android: drawableLeft = "@ drawable / ic_launcher"
android: ems = "10" />
Reply:
FrameLayout pan right about not?
Reply:
reference to the 9th floor u011775829 reply:

android: id = "@ + id/editText1"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: layout_alignParentLeft = "true"
android: layout_alignParentTop = "true"
android: background = "@ android: drawable / editbox_background"
android: drawableLeft = "@ drawable / ic_launcher"
android: ems = "10" />



This is a relative layout you can use in the way
Reply:
android: layout_maginleft = "-20dp"
-20 Is the representative to the left there will certainly be problems ah,
To
android: layout_maginleft = "20dp" should be on it, LZ try it

No comments:

Post a Comment