Android布局文件中android:textColor属性失效问题
2016-08-25 09:35
288 查看
最近刚刚更新了最新的Android2.2,用着感觉是快点了 但是出了一问题:
就是我新建一个工程后,布局文件中android:textColor的属性失效了 ,但是在代码中设置就可以,于是乎就查找原因,后来发现是我引用包的问题:
新工程默认:
引用包:
compileSdkVersion 23但是引用的包都是24的
所以引用包改为:
改为23就好了
就是我新建一个工程后,布局文件中android:textColor的属性失效了 ,但是在代码中设置就可以,于是乎就查找原因,后来发现是我引用包的问题:
新工程默认:
compileSdkVersion 23 buildToolsVersion "23.0.3"
引用包:
dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:24.0.0-alpha1' compile 'com.flyco.tablayout:FlycoTabLayout_Lib:2.0.8@aar' compile files('libs/hyphenatechat_3.1.5.jar') compile 'com.android.support:support-v4:24.0.0-alpha1' }
compileSdkVersion 23但是引用的包都是24的
所以引用包改为:
dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) testCompile 'junit:junit:4.12' compile 'com.flyco.tablayout:FlycoTabLayout_Lib:2.0.8@aar' compile files('libs/hyphenatechat_3.1.5.jar') compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:support-v4:23.1.1' }
改为23就好了
相关文章推荐
- android布局文件属性说明(转)
- 关于android R.layout 中找不到已存在的布局文件问题的解决
- Android布局文件中的属性含义
- Android布局文件奇怪问题: Unexpected text found in layout file
- androidUI设计之旅 ----布局文件属性解析
- Android布局文件属性笔记
- Android 布局文件属性讲解
- Android中布局文件滚动及控件置于底部和控件遮挡问题
- android xml布局文件中EditText的属性详解
- android xml布局文件属性说明
- Android布局文件中的属性含义
- Android开发---xml布局文件中的常见属性总结
- android xml布局文件中EditText的属性详解
- Android布局文件属性笔记
- Android布局文件属性笔记
- android布局文件中各属性所代表的意义
- eclipse通过android layour editor无法查看布局文件问题解决
- 2.Android开发---xml布局文件中的常见属性总结
- ListView与GridView的item中使用ImageView的android:scaleType属性失效问题
- Android Layout布局文件里的android:layout_height等属性为什么会不起作用?