上一页 1 ··· 4 5 6 7 8
摘要: 方法: 1.1.1 通过BaseAdapter的getViewTypeCount()获取Item种类数量,然后在getView()方法中根据不同的type设置不同的item布局 (操作麻烦,维护方便) 1.1.2 根据需求设置布局的显示隐藏效果 (操作方便,维护麻烦 ) 下面展示第一种 主页面布局 阅读全文
posted @ 2016-04-12 19:33 只剩下我自己了 阅读(231) 评论(0) 推荐(0)
摘要: 各个组件位置: 导xutils包gson包配置网络权限 values包下面 strings修改 <?xml version="1.0" encoding="utf-8"?><resources> <string name="app_name">Pull</string> <string name=" 阅读全文
posted @ 2016-04-12 19:30 只剩下我自己了 阅读(260) 评论(0) 推荐(0)
摘要: Java 程序在解析 HTML 文档时,相信大家都接触过 htmlparser 这个开源项目,我曾经在 IBM DW 上发表过两篇关于 htmlparser 的文章,分别是:从 HTML 中攫取你所需的信息和 扩展 HTMLParser 对自定义标签的处理能力。但现在我已经不再使用 htmlpars 阅读全文
posted @ 2016-04-12 17:39 只剩下我自己了 阅读(206) 评论(0) 推荐(0)
摘要: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_ 阅读全文
posted @ 2016-04-12 17:36 只剩下我自己了 阅读(730) 评论(0) 推荐(0)
摘要: <oschina> <catalog>1</catalog> <newsCount>0</newsCount> <pagesize>20</pagesize> <newslist> <news> <id>72168</id> <title> <![CDATA[ PC-BSD 10.3 发布,桌面 B 阅读全文
posted @ 2016-04-12 17:34 只剩下我自己了 阅读(753) 评论(0) 推荐(0)
摘要: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_pa 阅读全文
posted @ 2016-04-12 17:31 只剩下我自己了 阅读(242) 评论(0) 推荐(0)
摘要: 第一种 /MainActivity/res/values/attrs.xml <?xml version="1.0" encoding="utf-8"?><resources> <declare-styleable name="MyCircle"> <attr name="radius" forma 阅读全文
posted @ 2016-04-12 17:30 只剩下我自己了 阅读(179) 评论(0) 推荐(0)
摘要: xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="matc 阅读全文
posted @ 2016-04-12 16:50 只剩下我自己了 阅读(242) 评论(0) 推荐(0)
摘要: 自定义Line.java package com.bawei.brush; import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graph 阅读全文
posted @ 2016-04-12 16:49 只剩下我自己了 阅读(528) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8