<Button android:id= "@+id/btn_showcamera_usephoto" android:layout_width= "Fill_parent" android:layout_height= "Fill_parent" android:layout_weight= "1" android: background= "@color/activity_showcameraview_bottom" android:gravity= "Center" android:text= "@string/ids_compan_pan_00036" &nbsP; android:textcolor= "@color/selector_showcamera_view_bottom" android:textsize= " 15DP " android: visibility= "Visible" />
Selector_showcamera_view_bottom as follows:
To create a new color folder under the Res folder, then put the selector_showcamera_view_bottom.xml inside
<?xml version= "1.0" encoding= "Utf-8"? ><selector xmlns:android= "http://schemas.android.com/apk/res/ Android "> <item android:state_pressed=" true "android:color=" #a5d3f4 "/> <!--pressed--<item Android Oid:state_focused= "true" android:color= "#a5d3f4"/> <!--focused--<item android:color= "#ffffff"/> & lt;! --Default--></selector>
Activity_showcameraview_bottom as follows:
<color name= "Activity_showcameraview_bottom" > #222222 </color>
"Android_ Style" button text style change