Android零碎知识点
16lz
2021-12-04
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"
/>
更多相关文章
- 【Android应用】【Shape使用总结】
- android ellipsize的内容及使用
- android中使用wakelock
- android中使用wakelock
- Android(安卓)使用Handler的PostDelayed方法实现图片的轮播
- android中使用wakelock
- android studio 加载.proto不能生成xxxDrpc的问题
- android中使用wakelock
- 解决android TextView多行文本(超过3行)使用ellipsize属性无效问题