Usage of ?android:attr/ in backwards compatible apps

后端 未结 3 686
自闭症患者
自闭症患者 2020-12-15 08:19

I\'m trying to make my ICS (API level 15) app compatible with Gingerbread (API level 10), and I\'m getting InflateException Error inflating class

3条回答
  •  暖寄归人
    2020-12-15 08:58

    Please check android support v7 - appcompat project. It has many themes and attributes for backwards compatibility (attr/dividerHorizontal also)

    http://developer.android.com/tools/support-library/features.html#v7-appcompat

    To use v7 support you must import it as an Android lib project and reference to it from you project. It also contains v4 support so you may want to remove v4 support in your libs folder :) Good luck!!

提交回复
热议问题