android 实践项目四
2015-11-30 00:48
309 查看
android 实践项目四
本周主要是开发android baidumap实现公交的查询
1、权限的取得和对屏幕的支持
View Code
4、默认的是北京83路公交
本周主要是开发android baidumap实现公交的查询
1、权限的取得和对屏幕的支持
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="在" /> <EditText android:id="@+id/city" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="北京" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="市内找" /> <EditText android:id="@+id/searchkey" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="83" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="公交车" /> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <Button android:id="@+id/search" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="2dip" android:layout_marginRight="2dip" android:layout_weight="1" android:background="@drawable/button_style" android:onClick="searchButtonProcess" android:text="开始" /> <Button android:id="@+id/nextline" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="2dip" android:layout_marginRight="2dip" android:layout_weight="1" android:background="@drawable/button_style" android:onClick="SearchNextBusline" android:text="下一条" /> </LinearLayout> </LinearLayout> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <fragment android:id="@+id/bmapView" android:layout_width="fill_parent" android:layout_height="fill_parent" class="com.baidu.mapapi.map.SupportMapFragment" android:clickable="true" /> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignWithParentIfMissing="false" android:layout_centerHorizontal="true" android:layout_centerVertical="false" android:layout_marginBottom="10dip" > <Button android:id="@+id/pre" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="2dip" android:layout_marginRight="2dip" android:layout_weight="1.0" android:background="@drawable/pre_" android:onClick="nodeClick" /> <Button android:id="@+id/next" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="2dip" android:layout_marginRight="2dip" android:layout_weight="1.0" android:background="@drawable/next_" android:onClick="nodeClick" /> </LinearLayout> </RelativeLayout> </LinearLayout>
View Code
4、默认的是北京83路公交
相关文章推荐
- Android之玩转MPAndroidChart让(折线图、柱形图、饼状图、散列图、雷达图)优雅的舞动
- Android程序使用smartupload上传文件的写法
- android测试分析1
- Android去掉标题栏点菜单键程序崩溃
- 在 Android 应用中使用 HTML Parser 便捷的解析 html 内容
- android在文本框中输入和显示表情
- Android开发之如何让父控件不拦截子空间的事件
- ElyarAnwar的Android实战笔记-----记事本
- Android开发问题汇总
- Android5.1.1源码 - 显示:“很抱歉,“XXX”已停止运行。”的对话框
- GridView的BUG,还是我没用对?
- android 按home键返回到桌面后,再按桌面应用图标又重新打开该应用的解决方法
- Android 开源框架
- github中Android优秀案例
- Android防止按钮连续点击
- Android Studio快捷键(默认设置)
- MAC下命令查看Android studio MD5 SHA1
- MAC下Android Studio获取MD5,SHA1
- Android 应用实现多进程
- Android 逐帧动画与自定义Dialog