摘要: JSONObject jsonObject = new JSONObject(json); Iterator<?> it = jsonObject.keys(); while (it.hasNext()) {// 遍历JSONObject key = (String) it.next().toStr 阅读全文
posted @ 2016-07-12 15:54 Jinger1992223 阅读(266) 评论(0) 推荐(0) 编辑
摘要: //给scrollview嵌套的布局设置以下属性 linear_insideOfScrollView.setFocusable(true); linear_insideOfScrollView.setFocusableInTouchMode(true); linear_insideOfScrollV 阅读全文
posted @ 2016-06-15 10:36 Jinger1992223 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-05-17 18:00 Jinger1992223 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 为了解决scrollview和listview冲突 设置了listview的高度 结果进页面就不是在顶部了 。 解决方案1:ScrollView.post() Java代码 sv_container.post( new Runnable() { public void run() { //sv_co 阅读全文
posted @ 2016-05-07 16:52 Jinger1992223 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 本文通过一段实例代码来解决开发过程中遇到的ScrollView嵌套GridView出问题即GridView会显示不全的解决办法。 AD:网+线下沙龙 | 移动APP模式创新:给你一个做APP的理由>> 本文通过一段实例代码来解决开发过程中遇到的ScrollView嵌套GridView出问题即Grid 阅读全文
posted @ 2016-05-07 16:05 Jinger1992223 阅读(730) 评论(0) 推荐(0) 编辑
摘要: Drawable drawable = context.getResources().getDrawable( R.drawable.radiobg); drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrin 阅读全文
posted @ 2016-05-04 09:16 Jinger1992223 阅读(1612) 评论(0) 推荐(0) 编辑
摘要: 版权声明:本文为博主原创文章,未经博主允许 也可 随意转载。 版权声明:本文为博主原创文章,未经博主允许 也可 随意转载。 有图又真相,先上图再说。 点击效果: 设置虚线: [html] view plain copy <?xml version="1.0" encoding="utf-8"?> < 阅读全文
posted @ 2016-04-22 15:44 Jinger1992223 阅读(254) 评论(0) 推荐(0) 编辑
摘要: TextView tText=(TextView) findViewById(R.id.textv_name); //第1种: tText.setTextColor(android.graphics.Color.RED);//系统自带的颜色类 // 第2种: tText.setTextColor(0 阅读全文
posted @ 2016-04-15 17:32 Jinger1992223 阅读(1623) 评论(0) 推荐(0) 编辑
摘要: 现在开发中的功能需要直接跳转到拨号、联系人、短信界面等等,查找了很多资料,自己整理了一下。 1、跳转到拨号界面,代码如下: 1)直接拨打 Intent intentPhone = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phoneNumbe 阅读全文
posted @ 2016-04-13 14:45 Jinger1992223 阅读(443) 评论(0) 推荐(0) 编辑
摘要: APP发布时一般使用的主题: <application android:allowBackup="true" android:icon="@drawable/applogo" android:theme="@android:style/Theme.Light.NoTitleBar" > 今天希望在g 阅读全文
posted @ 2016-04-09 17:18 Jinger1992223 阅读(192) 评论(0) 推荐(0) 编辑