Android布局文件中android:textColor属性失效问题
来源:互联网 发布:cn域名个人备案 编辑:程序博客网 时间:2024/05/17 06:36
最近刚刚更新了最新的Android2.2,用着感觉是快点了 但是出了一问题:
就是我新建一个工程后,布局文件中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就好了
0 0
- Android布局文件中android:textColor属性失效问题
- android动态设置TextView的textColor问题
- Android布局文件中属性介绍
- Android布局文件中常用的属性
- android布局文件中一些属性介绍
- android radiobutton 改变TextColor
- Android开发中布局文件的问题
- 在Android的TableLayout布局中,column和span属性“失效”原因分析与解决
- android版微信href属性失效问题
- Android 字体颜色在一些机型上不适配(textcolor失效)
- android布局文件中各属性所代表的意义
- android xml布局文件中EditText的属性详解
- android xml布局文件中EditText的属性详解
- Android常用布局文件中元素的属性
- android布局文件中各属性所代表的意义
- 【Android】安卓布局文件中xmlns属性
- Android中常见的布局文件的属性
- [Android] 布局文件中控件属性值为 @null
- sqlserver中DATE类型的数据转化 CONVERT
- 虚函数的引入
- Anroid开发乱码解决
- Java学习笔记 Struts2常用标签
- CDQZ十天集训总结谭
- Android布局文件中android:textColor属性失效问题
- visual studio 2015快捷键整理
- blcok基础
- APICloud成长记录 二 页面框架搭建
- 光绘发明——LED视觉显示棒magicShifter3000,坚守15年的创造之旅!
- base64位字符 上传多张图片保存服务器端
- 互斥锁、条件变量、信号量
- Linux下多核、GPU编程
- Android酷炫实用的开源框架(UI框架)