Wednesday, March 5, 2014

android with a shape to linearLayout set the border, how to keep only the bottom or top of the border, the border of the other three directions to remove it?


Here is my test code, the final results LinearLayout gray border, how to keep the border at the bottom or top of the frame to remove the other three directions?
boder.xml
 



android: width = "0.01dp"
android: color = "# C6C7CE" />
android: bottom = "5dp"
android: top = "5dp"
android: left = "5dp"
android: right = "5dp" />




text.xml
 

android: orientation = "vertical"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent">

android: orientation = "vertical" android: gravity = "center"
android: background = "@ drawable / boder">

android: text = "@ string / log_name" />




<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
android: bottom = "5dp"
android: top = "5dp"
android: left = "5dp"
android: right = "5dp" />
So is not on the line 0
Reply:
Can be attached renderings, it will be better with the analysis points
Reply:
cited a floor pengguohua1988 reply:
android: bottom = "5dp"
android: top = "5dp"
android: left = "5dp"
android: right = "5dp" />
So is not on the line 0


This is just the set margins
Reply:
reference to the second floor hsyouxishe reply:
can be attached renderings, it will be better with the analysis points


Reply:
Solve ah?

No comments:

Post a Comment