转载请注明出处:http://blog.csdn.net/zhaokaiqiang1992 本篇文章翻译自Android开发者网站,但并不是完全按照原意翻译,添加了我个人的一些理解。想看原文的请戳:http://developer.android.com/training/basics/actionbar/styling.html ActionBar控件,可以为我们的App提供一致的导...
分类:
移动开发 时间:
2014-12-14 15:54:13
阅读次数:
249
Adding a Table View Controller连接到tab bar controller中的两个窗口都是regular UIViewControllers.你将使用UITableViewController来替换第一个tab选择第一个view controller然后delete它。拖...
分类:
其他好文 时间:
2014-12-13 17:49:34
阅读次数:
352
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:
其他好文 时间:
2014-12-12 22:09:45
阅读次数:
191
android控件开发之progress
本博文主要讲述的是android开发中的progress进度条的使用方法,代码如下:
MainActivity.java:
package com.example.progress;
import android.os.Bundle;
import android.R.integer;
import android.ap...
分类:
移动开发 时间:
2014-12-12 19:11:38
阅读次数:
164
1. 仅更新单个库只想更新某个特定的库,不想更新它的所有依赖,很简单:composer update foo/bar 此外,这个技巧还可以用来解决“警告信息问题”。你一定见过这样的警告信息:Warning: The lock file is not up to date with the late....
分类:
Web程序 时间:
2014-12-12 18:43:57
阅读次数:
238
QML动态组件指的是按需分配,需要时我们就创建一个自定义组件,也就是所谓的对象延迟实例化,而不是在程序一开始就创建它,不需要时我们就把它销毁以节约内存,而不是传统意义上的隐藏或覆盖。我们可以使用Component与Loader,也可以使用JavaScript的形式来完成。
先来介绍一下Component——
progress属性,加载组件的过程,从0.0到1.0变化。
status属性,加载...
分类:
其他好文 时间:
2014-12-12 16:39:25
阅读次数:
718
1. ? 存在错误的程序例子 class?Foo
{
public:
?int?m_nVal;
?Foo?*m_pNext;
};
void?Foo_Bar(?void?)
{
?Foo?bar;
?
?if?(?bar.m_nVal?||?bar.m_pNext?)
?{
??int?i;
??i++;
?}
} (1...
分类:
其他好文 时间:
2014-12-12 13:30:27
阅读次数:
135
android控件开发之SeekBar
本博文主要讲述的是SeekBar的使用,此控件在播放器中使用时相当的广泛。下面我们直接来看看代码吧!
mainActivity.java:
package com.example.seekbar;
import android.os.Bundle;
import android.app.Activity;
impo...
分类:
移动开发 时间:
2014-12-12 11:45:45
阅读次数:
149
异步任务AsyncTask
AsyncTask主要用来更新UI线程,比较耗时的操作可以在AsyncTask中使用。
AsyncTask是个抽象类,使用时需要继承这个类,然后调用execute()方法。注意继承时需要设定三个泛型Params,Progress和Result的类型,如AsyncTask:
Params是指调用execute()方法时传入的参数类型和doInBack...
分类:
移动开发 时间:
2014-12-11 22:25:36
阅读次数:
249