I have an ImageButtons series laid out horizontally in LinearLayout. When I make setBackgroundColor in GREEN, these ImageButtons become GREEN rectangles, all connected, which look like a single panel. Is there a way to specify the border between these buttons, so I know where one button starts and where it ends?
To make a space between two buttons by displaying Separator (something like Horizontal line), you must add a blankView between two buttons.
Separator (something like Horizontal line)
View
, . :
<View android:layout_height="2px" android:background="#DDFFDD" android:layout_marginTop="5dip" android:layout_marginBottom="5dip"/>
.
!!
. Android : padding. , , . , backgroundColor.
padding
- layout_margin margin layout - , . .
layout_margin
layout_margin .
Source: https://habr.com/ru/post/1754186/More articles:Inflate the look of the button? - androidHttplib2 - AttributeError: объект "NoneType" не имеет атрибута 'makefile' - pythonДвойной коснитесь UINavigationController navigationBar? - iphoneHow to setup iphone application using twitter? - objective-cPowerbuilder: what does this computed polarizer mean - powerbuilderDo I need to shoot internal objects of a COM Interop object? - vb.netGoal C: Different behavior variables in the header file (.h) compared to the implementation file (.m) - objective-cSynchronize solr documents with database records - solrif in mysql - sqlHow can I dry this code? - ruby | fooobar.comAll Articles