<resources> <!-- Declare custom theme attributes that allow changing which styles are used for button bars depending on the API level. ?android:attr/buttonBarStyle is new as of API 11 so this is necessary to support previous API levels. --> <declare-styleable name="ButtonBarContainerTheme"> <attr name="buttonBarStyle" format="reference" /> <attr name="buttonBarButtonStyle" format="reference" /> </declare-styleable> </resources>