自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 深入理解计算机读书笔记1(计算机组成)

深入理解计算机读书笔记1第一章:计算机系统漫游

2017-02-26 23:49:49 500

原创 PAT 1001. A+B Format (20) JAVA实现

Calculate a + b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits).InputEach input file contains one t

2015-08-04 14:24:20 387

原创 Git版本控制器的主要操作

在项目文件夹下打开gitBash 输入 git init 创建代码仓库git add . 添加所有文件到代码仓库git commit -m “描述信息” 提交touch .gitignore 创建.gitignore文件,在文件内输入bin/ gen/就不会将这两个文件夹里的东西添加到版本控制器中git clone https:/xxxxxxxxxxx 把远程版本库克隆到本地,会生成一个项目名的文件

2015-05-19 15:14:47 457

原创 Notification学习笔记

整体思路: 需求:需要发送一个Notification,点击notification需要跳跃到指定的Activity界面 需要的东东:需要NotificationManager的实例manager、需要Notification的实例notification:notification用new Notification.Builder(Context context).setxxx.build()来

2015-05-19 12:39:05 355

原创 BaseAdapter的使用

package com.example.baseadaptertest;import java.util.List;import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.wid

2015-05-16 23:58:49 347

原创 关于R.id.xxx或者R.layout.xxx找不到id或布局文件的解决方案

很简单,就是不小心导入了android.R,应该import自己项目的R才行,如下:import com.frank.myzhihutest.R; //import android.R; import android.app.Activity; import android.content.SharedPreferences; import android.os.Bundle; import and

2015-05-16 21:30:48 10454

原创 如何自定义ActionProvider

自定义一个MyActionProvider类,继承v4包下的ActionProvider(使用兼容Theme) 重写hasSubMenu(),返回true 重写onPrepareSubMenu()方法,设置submenu的title、icon、点击事件 package com.example.actionbartest.utils;import android.R; import android.c

2015-05-12 15:09:31 678

原创 模仿QQ5.0侧滑菜单栏

/* * 自定义的ViewGroup * * 1/onMeasure * 决定内部的子View的宽和高,以及最后决定自己的宽和高 * * 2/onLayout * 决定子View的摆放位置 * * 3/onTouchEvent * */import com.nineoldandroids.view.ViewHelper;import android.content.Co

2015-05-11 13:14:26 419

原创 Handler详解

为什么要用handler android程序不能在非UI线程中更新UI。handler常见用法:sendMessage sendMessageDelayed post(Runnable) postDelayed()message = new Message();message = handler.obtainMessage() Android为什么要设计只能通过handler更新UI? 最根本的目

2015-05-06 18:09:45 279

原创 欢迎使用CSDN-markdown编辑器

ViewPager、Fragment、ViewPagerFragment分别模仿实现微信界面 ViewPager实现方式 这种实现方式的优点是可以通过滑动屏幕来TAB界面 缺点是viewPager的初始化全在MainActivity.java中,冗长且不易维护import android.support.v4.view.PagerAdapter;//ViewPager是v4包的 import an

2015-05-05 01:26:06 522

空空如也

空空如也

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

TA关注的人

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