導入Gallery後,在res/values/styles.xml文件會出現以下問題:
No resource found that matches the given name 'android:style/Theme.Dialog.Alert'.
具體修改方法爲:
將: <style name="Theme.DeleteImageDialog" parent="android:style/Theme.Dialog.Alert">
修改爲:
<style name="Theme.DeleteImageDialog" parent="@*android:style/Theme.Dialog.Alert">
主要原因是android:style/Theme.Dialog.Alert不公有的,導入eclipse後需要添加*纔可使用。
另外Gallery需要導入framework_intermediates目錄下的classes.jar包,並且將Order設定爲Top