![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
qq_37738188
这个作者很懒,什么都没留下…
展开
-
Activity的数据回传——案例:装备选择
1.先打开Android Studio 2.创建工程。 (1)设计用户交互页面,如图:程序对应的布局文件(activity_main.xml)如下所示,在布局代码中用到了ProgressBar(进度条),它是用来显示小宝宝的生命值、攻击力、敏捷度的。<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="ht原创 2017-03-26 19:23:51 · 891 阅读 · 1 评论 -
网络图片浏览器
首先使用Android Studio新建一个ImageViewDemo的项目,然后在activity_main.xml中输入以下代码:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" androi原创 2017-05-21 13:12:12 · 205 阅读 · 0 评论 -
使用SmartImageView控件实现网络图片的浏览
**在使用SmartImageView之前要先下载它的源代码,登录https://github.com/loopj/android-smart-image-view 下载android-smart-image-view-1.0.0.jar然后将SmartImageView的源代码引入到自己的项目中。新建一个ImageViewDemo项目,把android-smart-image-view-1.0.0原创 2017-05-21 13:39:41 · 642 阅读 · 0 评论 -
案例-----简易新闻客户端
本例将演示AsyncHttpClient和SmartImageView的综合使用。 1.目标:1) 掌握开源项目AsyncHttpClient的使用 2) 掌握如何进行JSON解析2.配置服务器: 由于需要从服务器上下载一个JSON,所以需要开启Tomcat服务器。在Tomcat根目录下找到bin文件夹,运行该文件下的startup.bat文件开启服务器,可在cmd下输入ipcon原创 2017-06-02 21:21:13 · 519 阅读 · 0 评论 -
案例-----拦截有序广播
1.创建程序 程序对应的布局文件(activity_main.xml)如下所示:<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/t原创 2017-06-02 22:09:23 · 459 阅读 · 0 评论