Android Button Bar - buttonBarButtonStyle leaves gap between buttons

franssen00

New Member
I'm having some trouble with the built in Android button bar styling. After giving a width of 0 and weight of 1 to each of my buttons, there's still about a 1px gap in between the two buttons (see image). What is the best way to get rid of that gap? Why is it even there to begin with?\[code\]<LinearLayout android:id="@+id/button_bar" style="?android:attr/buttonBarStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_alignRight="@+id/details_scroll_view" android:paddin="0dp" > <Button android:id="@+id/button1" style="?android:attr/buttonBarButtonStyle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/button_dark_blue" android:text="button1" android:textColor="@color/text_color" /> <Button android:id="@+id/button2" style="?android:attr/buttonBarButtonStyle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/button_light_blue" android:text="button2" android:textColor="@color/text_color" /></LinearLayout>\[/code\][button bar][1]http://i.stack.imgur.com/9Kwf4.png
 
Back
Top