1 ViewStub的使用
参考资料:
这里有一系列的实战技巧,可以看看
http://blog.csdn.net/hitlion2008/article/details/6737537
中文API:
http://www.iteedu.com/handset/android/androidcnapi5/42.php

2 使用系统的颜色: android:textColor="@android:color/white"

3 设置Button上的文字:
<Button
android:id="@+id/button5"
android:layout_width="80dip"
android:layout_height="80dip"
android:text="Button5"
android:gravity="bottom"
android:paddingBottom="15dip"
/>

4 使用系统自带的主题或者样式
参考资料:
http://blog.csdn.net/xiaomao5200/article/details/7497691
例子:
<ProgressBar
style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
/>

更多相关文章

  1. 【Android应用】【Shape使用总结】
  2. android ellipsize的内容及使用
  3. android中使用wakelock
  4. android中使用wakelock
  5. Android(安卓)使用Handler的PostDelayed方法实现图片的轮播
  6. android中使用wakelock
  7. android studio 加载.proto不能生成xxxDrpc的问题
  8. android中使用wakelock
  9. 解决android TextView多行文本(超过3行)使用ellipsize属性无效问题

随机推荐

  1. 飞舞的气泡
  2. 飞舞的泡泡球
  3. 人物手部怎么画?手部画法入门教程
  4. PHP 8.1.0 正式发布了
  5. 自定义方法,实现通过类名获取对象集合
  6. 日历的制作
  7. 固定导航栏和可编辑表格
  8. 位置属性 + 动画 = 飞舞的气泡
  9. ES6 基础语法总结
  10. 可以进行数据录入的简历表