多线程编程--用接口方法实现选城市旅游
2016-05-16 11:08
429 查看
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="com.example.wang.myapplication.ZuoyeActivity" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="40dp" android:background="#ccc" android:textSize="20sp" android:gravity="center" android:id="@+id/tv_1" /> <TextView android:layout_width="match_parent" android:layout_height="40dp" android:background="#cba" android:textSize="20sp" android:gravity="center" android:layout_marginTop="5dp" android:id="@+id/tv_2"/> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:text="去哪旅游" android:id="@+id/bt_1" android:onClick="bt1_OnClick"/> </LinearLayout>
xml
效果图如上一条博客
相关文章推荐
- C语言—动态库建立
- java+jsp导出excel
- java 练习题2
- Myeclipse8.5导入项目后报错:background indexer crash recovery Java.lang.stackoverflowerror
- windows c++ 使用锁来控制线程访问
- git和github的结合使用
- 浅析Python 中整型对象存储的位置
- JAVA基础知识(转)
- git学习
- java循环语句
- 【第十一章】 SSH集成开发积分商城 之 11.1 概述 ——跟我学spring3
- java抽象类和接口
- Spring mvc数据转换与格式化
- springMVC学习笔记之DispatcherServelet
- Java知识点归纳 ―给Java新手的一些建议(新手必看)
- Java/Java Web中乱码解决汇总
- struts之Cookie会话保持
- LNMP-php-fpm参数优化
- Spring AOP @AspectJ 入门基础
- The golden ratio: 1.618