
android 基础知识
suntiago
与安卓相关的开发,绝大部分
展开
-
Error: Found item Attr/font more than one time Error: Execution failed for task
在 attrs,xml 里面定义属性,有重复的属性时编译报错 Error: Found item Attr/font more than one time Error: Execution failed for task 解决办法: //定义属性 name="titleTextSize" format="dimension" /> name="titleTextColorRes" fo原创 2016-08-09 10:20:26 · 8858 阅读 · 0 评论 -
Android layout_weight layout_width ,Listview单行特定textview省略
这里讲两个问题: 1 如何实现多个 TextView 在同一行,当长度太长时,选择省略其中的某一个 2 当layout_weight 设置后是否需要设置layout_width 先上效果图: 这里需要省略第一个字串。 xml version="1.0" encoding="utf-8"?> xmlns:android="http://schemas.android.com/ap原创 2016-01-26 19:53:19 · 638 阅读 · 0 评论