- 博客(4)
- 收藏
- 关注
原创 广播或者activity跳转singleTask模式的 Activity Bundle和intent参数值为null
由于MainAcitity.class使用的是singleTask启动模式,所以别的Activity跳转到MainActivity.class后所带的参数(Intent & Bundle)均为null,这个是因为: Bundle bundle = getIntent().getExtras();Intent intent = getIntent();这些方法不是在onCreate()中,所以
2016-09-12 16:18:49
493
原创 网络Xutils解析Xml文件
private void initData() { HttpUtils http = new HttpUtils(); http.send(HttpMethod.GET, getPath(), new RequestCallBack() { @Override public void onFailure(HttpException arg0, String arg1) {
2016-06-30 09:22:03
952
原创 radioGroup动态加载radiobutton且radiobutton没有button圆圈按钮
/** * * 初始化控件 * */ private void initView() { mRg = (RadioGroup) findViewById(R.id.rg); mVp = (ViewPager) findViewById(R.id.vp); mRg.setOrientation(RadioGroup.HORIZONTAL); for (int i = 0
2016-06-30 09:15:53
1372
原创 radioGroup的点击监听
/** * radioButton的点击监听 * * */ mRg.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(RadioGroup group, int checkedId) { for (int i = 0; i
2016-06-30 09:09:29
3066
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人