android - Custom layout weird bug -
i'm facing weird bug , if remove first layout(id = firstlayout) second layout(id = user_home_buttonsllay) works fine borders , when put buttons border disappear . strange working fine before . help.
my layout :
<linearlayout id="@+id/firtlayout" style="@style/headerllay"> <imageview style="@style/header_left_img" /> <textview android:id="@+id/user_home_headertitulo" android:text="usuário" style="@style/header_titulo" /> <imagebutton android:id="@+id/user_home_headerimgbtinfo" style="@style/header_right_img" /> </linearlayout> <linearlayout android:id="@+id/user_home_buttonsllay" style="@style/user_home_buttonsllay"> <button android:id="@+id/user_home_bt_novocliente" style="@style/user_home_button" android:text="@string/user_home_novocliente" /> <button android:id="@+id/user_home_bt_jacadastrado" style="@style/user_home_button" android:text="@string/user_home_jacadastrado" /> </linearlayout> buttons style
<style name="user_home_button" parent="@android:style/widget.button"> <item name="android:layout_width">200dip</item> <item name="android:layout_height">40dip</item> <item name="android:background">@drawable/bt_padrao_selector</item> <item name="android:textstyle">bold</item> <item name="android:textcolor">#ff0000</item> <item name="android:layout_marginbottom">10dip</item> </style> buttons selector
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/bt_padrao" /> <item android:state_pressed="true" android:drawable="@drawable/bt_padrao_pressed" /> </selector> buttons custom background borders
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape> <padding android:left="1dp" android:top="1dp" android:right="1dp" android:bottom="1dp"/> <solid android:color="#000000"/> <corners android:radius="1dp"/> </shape> </item> <item> <shape> <padding android:left="2dp" android:top="2dp" android:right="2dp" android:bottom="2dp"/> <gradient android:startcolor="#ffffff" android:centercolor="#ffffff" android:endcolor="#ffffff" android:angle="90"/> <corners android:radius="1dp"/> </shape> </item>
already find answer , somehow background of imagebutton set (#00000000) make transparent, interfering on other components . float in css without clear after may disturb rest of page. solve using image instead of imagebutton , lets me remove background (#00000000) .
Comments
Post a Comment