安卓初级
你听哥说
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
通过url联网获取图片并解析
public static Bitmap getResponsebitmap(String urlPath) { URL url; Bitmap map = null; try { // 创建url对象 url = new URL(urlPath); // 通过url获取对象 HttpURLConnection conn = (HttpURLConnection原创 2014-11-10 09:27:44 · 1409 阅读 · 0 评论 -
Android广告展示ViewPager
从资源文件里面获取public class MainActivity extends Activity { private LayoutInflater inflater; private LinearLayout line_mountainflower_main; private ViewPager adViewPager; private View adview1, adview原创 2014-12-05 10:45:54 · 867 阅读 · 0 评论 -
Android跑马灯效果
布局文件:<LinearLayout android:layout_width="fill_parent" android:layout_height="60dip" > <com.example.guanggao.AutoScrollTextView android:id="@+id/tv_notice"原创 2014-12-05 13:07:26 · 695 阅读 · 0 评论 -
将数据从文件中读出来放入list中
public static List getList(File file, List list) { try { BufferedReader reader = new BufferedReader(new InputStreamReader( new FileInputStream(file))); for (String line = reader.readLine原创 2014-11-24 13:20:38 · 1123 阅读 · 0 评论 -
得到当前外部设备的存储目录
SDPATH = android.os.Environment.getExternalStorageDirectory().getPath() + "/";原创 2014-11-24 13:18:51 · 479 阅读 · 0 评论 -
判断字符串是否为空
/** 判断字符串是否为空 */ public static boolean isNotNull(String packName) { boolean isNull = packName != null && packName.length() > 0; return isNull; }原创 2014-11-24 09:56:25 · 404 阅读 · 0 评论 -
动态获取当前时间显示
又学到个新技能,马上get√原创 2014-11-21 11:18:08 · 698 阅读 · 0 评论 -
Android requires compiler compliance level 5.0 or 6.0. Found '1.3' instead.
重装操作系统后,要重新配置Android开发环境。配置成功后,添加原本项目时却出现了错误!Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties.解决方法:1.项目右键 ->and原创 2014-10-17 13:12:03 · 615 阅读 · 0 评论 -
Android Call requires API level 11 (current min is 8)的解决方案
右键点击项目->Android tools ->Clear Link Markers.即可解决.原创 2014-11-19 16:35:55 · 355 阅读 · 0 评论 -
popupwindow的用法
popupWindow = new PopupWindow(popupwindow的布局, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, true); popupWindow.setBackgroundDrawable(new BitmapDrawable()); popupWindow.setAnimationS原创 2014-11-14 10:12:44 · 355 阅读 · 0 评论 -
工作中学到的json解析
ArrayList beans = new ArrayList(); try { JSONObject jo = new JSONObject(info); JSONArray publicJo = jo.getJSONArray("data"); for (int i = 0; i < publicJo.length(); i++) { PublicBenefitB原创 2014-10-28 13:58:15 · 351 阅读 · 0 评论 -
Android中的Selector的用法
Android中的Selector主要是用来改变ListView和Button控件的默认背景。其使用方法可以按一下步骤来设计:(以在mylist_view.xml为例)1.创建mylist_view.xml文件首先在res目录下新建drawable文件夹,再在新建的drawable文件夹中新建mylist_view.xml,其目录结构为:res/drawable/mylis转载 2014-10-10 15:52:34 · 372 阅读 · 0 评论 -
把json文件写入本地
1.联网通过url获取json文件原创 2014-11-10 09:31:29 · 789 阅读 · 0 评论 -
线程的详细说明
http://www.cnblogs.com/shirley-1019/p/3557800.html(转载)转载 2015-07-23 14:28:58 · 381 阅读 · 0 评论
分享