- 浏览: 389417 次
- 性别:
- 来自: 北京
-
最新评论
-
longxishui12:
这个一定要顶得高高的。
[Android UI界面] android中仿iphone实现listview的反弹效果 -
klower.jiang:
Good job, Thank you so much!
能够兼容ViewPager的ScrollView -
ZSRTFAT:
...
file size 的大小计算
文章列表
String contactId ;
private List<PeopleInfo> getContactsInfo(){
List<PeopleInfo> list = new ArrayList<PeopleInfo>();
//得到ContentResolver对象
ContentResolver cr = getContentResolver();
//取得电话本中开始一项的光标
Cursor cursor = cr.query(ContactsContract ...
<ProgressBar
android:layout_width="wrap_content"
android:interpolator="@android:anim/linear_interpolator"
style="@style/ProgressBar"
android:layout_height="wrap_content" />
style:
<?xml version="1.0&quo ...
http://www.cyqdata.com/android/article-detail-25069
http://gundumw100.iteye.com/category/156622
http://stars.blog.51cto.com/1966388/1073372(收藏动画)
帧动画,xml文件:animation_left
animation-list:
<?xml version="1.0" encoding="utf-8"?>
<animation-list
xmlns:android="http://schemas.android.com/apk/ ...
private static final SimpleDateFormat formatTimeAA = new SimpleDateFormat(" hh:mm aa MM/dd",Locale.ENGLISH);
public Date getDate(String time,int hour) {
String AA = " AM";
if(hour>11){
AA = " PM";
if(hour>12) ...
formatFileSize 文件大小
- 博客分类:
- android
得到当前大小:
String size = Formatter.formatFileSize(Demo.this,123); Log.d("test", "size"+ size );
定时器:
http://www.cnblogs.com/jqyp/archive/2011/06/14/2080543.html
android疑难问题
- 博客分类:
- android
android疑难问题
http://blog.csdn.net/pilou5400/article/category/744659
显示软键盘:
InputMethodManager imm = (InputMethodManager)this.getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);
imm.showSoftInput(myview, InputMethodManager.SHOW_IMPLICIT);
隐藏软键盘:
imm.hideSoftInputFromWindow(view. ...
dialog 的 textview 弹出软键盘
InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE); imm.showSoftInputFromInputMethod(editTextView.getWindowToken(), 0);
显示服务器端的特殊字符
- 博客分类:
- android
客户端显示服务器端的特殊字符:
比如:< & >登时,客户端解析到的是< & >
显示时可以使用:Html.fromHtml()就行。
android 加载模式
- 博客分类:
- android
android 加载模式:
http://marshal.easymorse.com/archives/2950
http://dev.10086.cn/cmdn/bbs/thread-36313-1-1.html
1、standard模式,也就是默认模式,不需要配置launchMode
intent将发送给新的实例。
2、singleTop:
singleTop和standard模式,都会将intent发送新的实例;
singleTop要求如果创建intent的时候栈顶已经有要创 ...
多方向 抽屉 http://www.oschina.net/question/54100_28627
使用TextWatcher 的时候,
class MonthlyQuotaTextWatcher implements TextWatcher{
@Override public void afterTextChanged(Editable s) { String str = quotaEditText.getText().toString().trim(); int length = str.length(); if(length > 1){ String st = str.substring(0, 1); if( length > 1 & ...
Android NFC开发实战 学习:
http://www.android123.com.cn/androidkaifa/1002.html
http://my.oschina.net/mr81/blog/32674