
Android
文章平均质量分 56
hoocy
这个作者很懒,什么都没留下…
展开
-
Android 一些工具类/方法收藏
public Bitmap formatBitMapSize(Bitmap bitmapOrg, int twidth, int theight) { // 获取这个图片的宽和高 int width = bitmapOrg.getWidth(); int height = bitmapOrg.getHeight(); // 定义预转换成的图片的宽度和高度 ...原创 2010-12-15 17:15:44 · 79 阅读 · 0 评论 -
[转]在Windows下批量下载Android源码
转自: http://blog.youkuaiyun.com/waji2000/article/details/4399611 Google开放了Android的源码 。 源码采用Git进行版本控制。 1. 首先,到 http://code.google.com/p/msysgit/downloads/list 下载Git-xxx.exe,下载完成后安装Git。 ...原创 2011-08-28 17:38:30 · 116 阅读 · 0 评论 -
正则表达式
public static boolean isValidFileName2(String fileName) { if (fileName == null || fileName.length() > 255) return false; else return fileName.matches("[^\\s\\\\/:\\*\\...原创 2011-08-31 00:06:47 · 95 阅读 · 0 评论 -
Android自定义TAB选项卡
import android.app.TabActivity; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widg...原创 2011-07-27 15:19:31 · 303 阅读 · 0 评论 -
TextView 学习
自动横向滚动效果 <TextView android:id="@+id/directionTxt" android:singleLine="false" android:text="@string/testcn1" android:layout_marginLeft="20px" android:layout_width="280px" a..原创 2011-03-27 22:22:04 · 94 阅读 · 0 评论 -
中文Listview排序
. import java.text.Collator; import java.util.Comparator; public class ChineseCharComp implements Comparator { @Override public int compare(Object o1, Object o2) { Coll...原创 2011-08-15 10:10:49 · 149 阅读 · 0 评论 -
一般情况下安装APK
private void installNormal() { LogUtils.log(TAG, LogUtils.getThreadName()); setStatus(State.INSTALLING); String rootpath = Environment.getExternalStorageDirectory().getP...原创 2012-10-11 20:23:19 · 142 阅读 · 0 评论