Theme.AppCompat.Light.DarkActionBar ActionBarActivity

本文详细介绍了如何正确地引用android-support-v7-appcompat.jar,避免了常见的主题找不到的问题。包括从Android SDK中导入工程、确保libs目录下存在所需jar包并进行clean操作等步骤。
摘要由CSDN通过智能技术生成

关于android-support-v7-appcompat.jar的引用,这个不单纯的把jar拷贝到项目lib文件夹下的,不然就会报一堆主题找不到的2b问题,
正确方法如下:

1.找到android sdk目录/extras/android/suppor/v7/appcompat(没有的去sdk manager里下),然后在eclipse里面导入这个工程,如果libs目录下没有android-support-v7-appcompat.jar和android-support-v4.jar,请找到对应目录拷贝进去,clean下,确保编译通过。 

2.然后在你要用的工程中,选择properties - android - is library 下面add上面工程的,这样就引用进来了

v7-26.0.1-alpha1AppCompat_Body1 style TextAppearance_AppCompat_Body2 style TextAppearance_AppCompat_Button style TextAppearance_AppCompat_Caption style TextAppearance_AppCompat_Display1 style TextAppearance_AppCompat_Display2 style TextAppearance_AppCompat_Display3 style TextAppearance_AppCompat_Display4 style TextAppearance_AppCompat_Headline style TextAppearance_AppCompat_Inverse style TextAppearance_AppCompat_Large style TextAppearance_AppCompat_Large_Inverse style TextAppearance_AppCompat_Light_SearchResult_Subtitle style TextAppearance_AppCompat_Light_SearchResult_Title style TextAppearance_AppCompat_Light_Widget_PopupMenu_Large style TextAppearance_AppCompat_Light_Widget_PopupMenu_Small style TextAppearance_AppCompat_Medium style TextAppearance_AppCompat_Medium_Inverse style TextAppearance_AppCompat_Menu style TextAppearance_AppCompat_Notification style TextAppearance_AppCompat_Notification_Info style TextAppearance_AppCompat_Notification_Line2 style TextAppearance_AppCompat_Notification_Media style TextAppearance_AppCompat_Notification_Time style TextAppearance_AppCompat_Notification_Title style TextAppearance_AppCompat_SearchResult_Subtitle style TextAppearance_AppCompat_SearchResult_Title style TextAppearance_AppCompat_Small style TextAppearance_AppCompat_Small_Inverse style TextAppearance_AppCompat_Subhead style TextAppearance_AppCompat_Subhead_Inverse style TextAppearance_AppCompat_Title style TextAppearance_AppCompat_Title_Inverse style TextAppearance_AppCompat_Widget_ActionBar_Menu style TextAppearance_AppCompat_Widget_ActionBar_Subtitle style TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse style TextAppearance_AppCompat_Widget_ActionBar_Title style TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse style TextAppearance_AppCompat_Widget_ActionMode_Subtitle style TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse style TextAppearance_AppCompat_Widget_ActionMode_Title style TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值