修改Gallery2记录1. 修改ActionBar的背景色,本例为修改为红色#ffff0000,也可以指定到/res/drawable/xx.png1). 在Gallery2/res/values/ 增加自己的资源文件theme.xml[html]view plaincopy2). 在Androi...
分类:
其他好文 时间:
2015-02-02 15:39:20
阅读次数:
256
#title : Two Sum#Given an array of integers, find two numbers such#that they add up to a specific target number.#The function two Sum should return in...
分类:
其他好文 时间:
2015-02-02 14:10:58
阅读次数:
119
1. Introduction
1.1 Scope
规范定义了设备通过USB端口充电的检测、控制和报告机制,这些机制是USB2.0规范的扩展,用于专用
充电器(DCP)、主机(SDP)、hub(SDP)和CDP(大电流充电端口)对设备的充电和power up。这些机制适用
于兼容U...
分类:
其他好文 时间:
2015-02-02 12:35:33
阅读次数:
762
popWIndow的效果就类似一个固定的小窗口。直接看效果吧
效果:
主要代码:
package com.example.popupwindowdemo;
import android.os.Bundle;
import android.app.Activity;
import android.app.ActionBar.LayoutParams;
import andro...
分类:
移动开发 时间:
2015-02-02 10:50:31
阅读次数:
153
QQ空间5.0的ActionBar会随着滚动的距离让ActionBar的透明度发生变化,效果还是非常cool,自己实现了一个小demo,基本实现了上面的所说的效果,但是其他控件的事件监听以及一系列较为复杂的控件的冲突还没考虑,暂时来总结下。
1,实现思路:
在最外层包裹一个自定义的FadingScrollView,监听滑动事件,然后去滚动控件,不过滚动范围只是最上面的fadingVie...
分类:
其他好文 时间:
2015-02-02 09:33:53
阅读次数:
180
做过android开发的同学们应该都知道有个ActionBar的头部操作栏,而wp也有类似的一个固定在app页面里通常拥有的内部属性,就是应用栏。以前叫做ApplicationBar,现在wp和win统一称AppBar,以后Win10一统手机和桌面相信Api将会高度统一。 废话不多说了,从wp...
分类:
其他好文 时间:
2015-02-02 00:38:16
阅读次数:
248
For the first time in its history, Ext JS went through a huge refactoring from the ground up with the new class system. The new architecture stands be...
分类:
Web程序 时间:
2015-02-02 00:33:38
阅读次数:
413
在开写之前需要先引入工程包lib_v7_appcompat,里面为我们提供了ActionBarActivity等许多相关类。
先新建一个activity来继承ActionBarActivity,在里面进行一些基本设置,如下:
/**
* ActionBar基础activity,进行统一的属性设置
* 所有顶部带有actionbar的类都继承此类。
*
* @author leeto...
分类:
其他好文 时间:
2015-02-01 17:51:05
阅读次数:
305
题目链接:https://oj.leetcode.com/problems/binary-tree-level-order-traversal-ii/
题目:
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, l...
分类:
其他好文 时间:
2015-02-01 09:37:45
阅读次数:
155