テーマに設定されている attribute は ? を使って参照することができます。 例えば、 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="?android:attr/selectableItemBackground" android:layout_width="match_parent" android:layout_height="wrap_content" /> とすることで、実際の画像リソースIDではなく、テーマの属性値を指定して、その属性値に設定されているリソースを利用することができます。 <style name="Theme"> <item name="selectableItemBackground">@android:drawable