随笔分类 -  Android

摘要:1.Android library projects cannot be launched解决办法如下:右键工程根目录->properties左侧选择->android2.Jar mismatch! Fix your dependencies在开发Android项目的时候,有时需要引用多个项目作为library。在引用项目的时候,有时会出现“Jar mismatch! Fix your dependencies”错误。这是因为两个项目的jar包(android-support-v4.jar)不一致。解决方法是把2个jar都删除,然后各自加上最新的jar包。这样2个jar 包就一致了 阅读全文
posted @ 2013-03-23 20:42 Carve_Time 阅读(366) 评论(0) 推荐(0)
摘要:1.图片处理1.圆角图片 /** * 转换成圆角 * * @param bmp * @param roundPx * @return */ public static Bitmap convertToRoundedCorner(Bitmap bmp, float roundPx) { Bitmap newBmp = Bitmap.createBitmap(bmp.getWidth(), bmp.getHeight(), Config.ARGB_8888); // 得到画布 ... 阅读全文
posted @ 2013-03-19 23:17 Carve_Time 阅读(1087) 评论(1) 推荐(1)
摘要:ListViewListView下拉刷新:https://github.com/johannilsson/android-pulltorefreshAndroidPullToRefresh:https://github.com/chrisbanes/Android-PullToRefreshDragSortListView:https://github.com/bauerca/drag-sort-listviewAndroid-SwipeListView:https://github.com/47deg/android-swipelistviewStickyListHeaders:https: 阅读全文
posted @ 2013-03-18 23:23 Carve_Time 阅读(2498) 评论(4) 推荐(4)