Friday, March 7, 2014

The original was wrong: two buttons on the right side to the right, the left button to fill the other space, code and pictures


 


android: layout_width = "match_parent"
android: layout_height = "wrap_content">




I want a button on the left just occupy the remaining space
current rowHow to write?

Cluster<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
  
android: layout_width = "match_parent"
android: layout_height = "wrap_content"
android: orientation = "horizontal">



Reply:

android: layout_width = "match_parent"
android: layout_height = "match_parent">

android: id = "@ + id / right"
android: layout_width = "wrap_content"
android: layout_height = "fill_parent"
android: layout_alignParentRight = "true"
android: layout_marginLeft = "1dp"
android: orientation = "horizontal">

No comments:

Post a Comment