android 实用类
smile3670
这个作者很懒,什么都没留下…
展开
-
文件管理实用类
public class FileUtil {public static void copyFromAssets(Context context,String fileName, String newFileName) {InputStream in = null;OutputStream out = null;try {in = context.getAssets().o原创 2012-06-26 11:22:43 · 438 阅读 · 0 评论 -
xml解析工具类
public class XmlUtil {private DocumentBuilderFactory factory = null;private DocumentBuilder builder = null;/***example, node string: <a> <b>1</b> <c>3</c> </a原创 2012-06-26 11:30:04 · 957 阅读 · 0 评论 -
自定义滑动TAB
public class CustomScrollBarWidget extends FrameLayout implements ChangePage{private Scroller mScroller;private int mPageCount;private int mWidth;private ChangePage changePage;private String原创 2012-06-26 11:35:35 · 301 阅读 · 0 评论 -
CustomFlingView 翻转页面
public class CustomFlingView extends FrameLayout implements ChangePage {private static final String TAG = "FlingLayout";// 用于滑动的类private Scroller mScroller;// 用来跟踪触摸速度的类private VelocityTrack原创 2012-06-26 11:20:53 · 409 阅读 · 0 评论 -
字符转换工具类
public class Utils {/*** IpAddress 转成String* @param i* @return*/public static String intToString(int i) {return ((i & 0xFF) + "." + ((i >> 8) & 0xFF) + "." + ((i >> 16) & 0xFF)+ ".原创 2012-06-26 11:26:47 · 351 阅读 · 0 评论 -
simpleFTP
public class SimpleFTP {private static String TAG = "SimpleFTP";private static boolean DEBUG = true;private Socket socket = null;private BufferedReader reader = null;priv原创 2012-06-29 09:23:07 · 598 阅读 · 0 评论