1. Define the drawable style drawable/style_button_subject.xml as follows: <? Xml version = "1.0" encoding = "UTF-8"?> <Selector xmlns: android = "http://schemas.android.com/apk/res/android"> <item android: state_checked = "false" android: drawable = "@ drawable/buttonsubject_1"/> <item android: state_checked = "true" android: drawable = "@ drawable/buttonsubject_2"/> <item android: state_selected = "true" android: drawable = "@ drawable/buttonsubject_2"/> <item android: state_pressed = "true" android: drawable = "@ drawable/buttonsubject_2"/> </selector> 2. set the drawable style for RadioButton <RadioButton android: id = "@ + id/buttonsubject11" android: layout_width = "0dp" android: layout_height = "fill_parent" android: layout_weight = "85" android: button = "@ null" android: gravity = "center" android: textSize = "@ dimen/buttonSubjectTextSize" android: background = "@ drawable/style_button_subject"/> to obtain the RatioButton that can be stretched as the background, set android: button = "@ null ", otherwise, an optional circle will appear.