自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 资源 (3)
  • 收藏
  • 关注

转载 listview双联动

activity_main布局<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="h

2017-08-25 10:09:59 300

原创 ListView多条目展示

多条目展示主要实现的是这两个方法 getViewTypeCount();//获取布局的数量 getItemViewType(int position) ;//判断加载那个布局 activity_main布局 <ListView android:id="@+id/listview" android:layout_width="match_parent"

2017-08-24 12:08:58 234

转载 ButterKnife使用详解

转载http://blog.csdn.net/qiaoshi96_bk/article/details/77371035 介绍需要的依赖 compile 'com.jakewharton:butterknife:8.5.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'1212官网地址 :h

2017-08-24 09:26:15 160

转载 SpannableString与SpannableStringBuilder

转自http://blog.csdn.net/harvic880925/article/details/38984705前言:确实有太多东西需要去整理,去学习。慢慢来吧,任何东东的深入学习都是不简单的。今天稍微整理下SpannableString与SpannableStringBuilder,因为在上篇中,我们曾讲到过有关CharSequence的东东,有关CharSequence的话,这两个类是必

2017-08-21 17:41:29 215

转载 Android自定义捕获Application全局异常

http://Git.oschina.NET/oschina/Android-app 大家可以参考。大家都知道,现在安装android系统的手机版本和设备千差万别,在模拟器上运行良好的程序安装到某款手机上说不定就出现崩溃的现象,开发者个人不可能购买所有设备逐个调试,所以在程序发布出去之后,如果出现了崩溃现象,开发者应该及时获取在该设备上导致崩溃的信息,这对于下一个版本的bug修复帮助极大,所以今天就

2017-08-21 17:27:16 267

转载 调用系统相册

转自http://blog.csdn.net/w18756901575 MainActivity 类import android.app.Activity;import android.content.Intent;import android.database.Cursor;import android.graphics.Bitmap;import android.graphics.Bi

2017-08-21 17:01:42 228

原创 跳转传参,butterknife,xrecyclerview监听,刷新加载综合

需要导的依赖包 compile 'com.jcodecraeer:xrecyclerview:1.3.2' compile 'com.squareup.okhttp:okhttp:2.4.0' compile 'com.github.bumptech.glide:glide:4.0.0' compile 'com.jakewharton:butterknife:8.5.1

2017-08-18 21:44:28 272

原创 OKHttp基本的网络请求

导依赖包compile 'com.squareup.okhttp:okhttp:2.4.0' //创建OkHttpClient对象 OkHttpClient mok = new OkHttpClient(); //创建一个Request final Request request = new Request .Bui

2017-08-16 09:49:58 303

原创 获取百度地图相关代码

百度地图开放平台 http://lbsyun.baidu.com/apiconsole/key/create 以及相关的网址: http://blog.csdn.net/double2hao/article/details/49861247 https://github.com/moagrius/TileView http://blog.csdn.net/liaoinstan/artic

2017-08-15 16:05:01 1368

原创 PropertyAnimation属性动画

属性动画跟补间动画实现一样简单<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="h

2017-08-14 18:04:34 202

原创 View Animation补间动画

布局很简单,一个图片,五个监听按钮。<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools

2017-08-13 14:07:08 280

原创 RecyclerView多条目展示

我也不太懂这个代码的基本意思,有的地方还有疑惑,先把代码粘上后期再修改批注。 需要添加的依赖 compile 'com.android.support:recyclerview-v7:26.0.0-alpha1' compile 'com.github.bumptech.glide:glide:4.0.0'MainActivity类public class MainActivity exten

2017-08-13 12:05:01 582

原创 RecyclerView下划线

MainActivity中设置下划线 RecyclerView re = (RecyclerView) findViewById(R.id.recyclerview); LinearLayoutManager layout = new LinearLayoutManager(this); re.addItemDecoration(new DividerItemDecoration

2017-08-11 19:54:50 834

原创 RecyclerView简单实用

RecyclerView适配器,继承的我自己的类的viewholder。继承RecyclerView.ViewHolder也可以。简单的布局没有多条目展示的都可以继承自己类的viewholder。布局我就不粘啦。public class Myadapter extends RecyclerView.Adapter<Myadapter.ViewHolder> { private List<Us

2017-08-10 18:22:46 371

原创 小圆拖动

创建CircleViewpublic class CircleView extends View { //点击坐标 float x; float y; float radius = 100; //圆心 float cx = 100; float cy = 100; boolean isCircle; public CircleView(

2017-08-06 21:23:01 271

原创 Menu菜单

在res目录新建Directory类型的menu,在这个下创建main.xml文件菜单。标签是用来创建具体的菜单项,给它id和名称就可以了。<!--创建添加的菜单项--><item android:id="@+id/add_item" android:title="add"/> <!--创建删除的菜单项--> <item android:id="@+

2017-08-06 19:24:10 692

原创 自定义view继承view

Myview类继承viewpublic class Myview extends View { Paint paint;//画笔 Region region;//圆形区域 Path path;//圆形路径 int x; int y; Path fpath;//矩形路径 Region fregson;//矩形区域 Path ypath;/

2017-08-04 19:00:26 364

原创 自定义view继承RelativeLayout

一.实现思路 先创建一个继承RelativeLayout的类,创建与它相对应的布局,布局随意。给它一个方法获取控件id,然后设置基本属性内容,最后设置监听。 创建attrs设置标题栏的基本属性,然后在activity_main中设置这个自定义控件。 二.实现的代码步骤 titleset.xml布局,设置一个自定义标题栏,控件自己可以随意设计<?xml version="1.0" encodi

2017-08-04 18:38:13 3229

原创 常用浏览器对比

IE :Internet Explorer UCBrowser:UC 浏览器 Fire Fox :火狐 浏览器 Chrome:谷歌 浏览器 360SE:360安全浏览器 Opera :欧鹏 浏览器 猎豹浏览器 QQ浏览器 Mathon :遨游浏览器 世界之窗浏览器 Sogou Explorer...

2017-08-03 11:18:06 649

原创 SQList数据库

Android常用的数据库,有增删改查的功能。 创建SqlistOpenHelps类继承SQLiteOpenHelper//创建数据库 public SqlistOpenHelps(Context context) { super(context, "photo.db", null, 1); }//创建表的属性 @Override public voi

2017-08-01 14:14:17 1727

接口自动化

Python接口自动化pdf版学习资料,详细且基础的课程内容。软件测试的同学很有必要看哦

2018-05-23

HTMLTestRunner.py资源包

导入HTMLTestRunner到Python,生成测试报告的工具类 """ A TestRunner for use with the Python unit testing framework. It generates a HTML report to show the result at a glance. The simplest way to use this is to invoke its main method. E.g. import unittest import HTMLTestRunner ... define your tests ... if __name__ == '__main__': HTMLTestRunner.main() For more customization options, instantiates a HTMLTestRunner object. HTMLTestRunner is a counterpart to unittest's TextTestRunner. E.g. # output to a file fp = file&#40;'my_report.html', 'wb'&#41; runner = HTMLTestRunner.HTMLTestRunner( stream=fp, title='My unit test', description='This demonstrates the report output by HTMLTestRunner.' ) # Use an external stylesheet. # See the Template_mixin class for more customizable options runner.STYLESHEET_TMPL = '&lt;link rel="stylesheet" href="my_stylesheet.css" type="text/css"&gt;' # run the test runner.run(my_test_suite) ------------------------------------------------------------------------ Copyright (c) 2004-2007, Wai Yip Tung All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name Wai Yip Tung nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """

2018-04-19

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除