安卓——小笔记
来源:互联网 发布:洛克希德马丁公司知乎 编辑:程序博客网 时间:2024/06/18 10:00
1.修改label就是修改title——setTitle就可以了。
2.布局左右靠边
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="20dp" android:orientation="horizontal" > <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="horizontal" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="当前温度:" /> <TextView android:id="@+id/tv_nowTem" android:layout_width="80dp" android:gravity="center" android:layout_height="wrap_content" android:background="@drawable/abc" /> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="当前湿度:" /> <TextView android:id="@+id/tv_nowhum" android:gravity="center" android:layout_width="80dp" android:layout_height="wrap_content" android:background="@drawable/abc" /> </LinearLayout> </LinearLayout>
阅读全文
0 0
- 安卓——小笔记
- 安卓学习笔记(七)一些小错误的解决方法——安卓第四天
- 安卓之小笔记
- 安卓——窗体小知识
- 安卓开发——安卓界面布局笔记
- 安卓学习笔记——Broadcast
- 《安卓笔记》——Parcelable接口
- 《安卓笔记》——RecyclerView
- 安卓学习笔记——SQLite
- 安卓学习笔记——三
- 安卓学习笔记—popupwindow
- 安卓学习笔记之使用widget桌面小控件
- Android——安卓调试小技巧(一)
- 安卓开发— —小技巧集合
- 安卓学习笔记(八)tabhost——安卓第六天
- 安卓学习笔记(1)——安卓开发环境的搭建
- 安卓学习笔记———猜数字
- 安卓学习笔记3——摄像头的使用
- Universal-Image-Loader
- QR分解求线性方程组的解
- 哈哈日语 日语五十音图之な、は、ま行
- 美团点评数据平台融合实践
- JQuery DataTables 服务端分页的实现(最新实例)
- 安卓——小笔记
- jar包冲突怎么办?
- 闲来无事写个多线程例子总结知识
- 第四周——项目4
- 两个数字交换位置
- 动态分配---栈--堆分配
- Dijkstra--畅通工程续
- forward 和redirect的区别
- poj3480 反NIM游戏