- 博客(11)
- 收藏
- 关注
原创 SharedPreferences导航
// 得到SharedPreferences SharedPreferences sharedPreferences = getSharedPreferences("xin", MODE_PRIVATE); // 给SharedPreferences存个值 boolean boolean1 = sharedPrefere
2016-05-31 20:35:58 268
原创 百度地图定位
需要的权限在application标签中声明service组件,每个app拥有自己单独的定位service<service android:name="com.baidu.location.f" android:enabled="true" android:process=":remote"></service>定位SDKv3.1版本之后,此权限已不需要,请取消声明,否则将由于Android 5.
2016-05-31 20:27:09 309
原创 全选、反选
XML布局activity_main.xml布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:l
2016-05-31 17:49:44 257
原创 自定义View(多点触控)
XML布局<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="mat
2016-05-31 17:12:42 343
原创 自定义View(单点触控)
XML布局中<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="ma
2016-05-31 17:10:18 423
原创 SlidingMenu侧滑
XML布局 activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android
2016-05-30 21:54:50 259
原创 Fragment工厂模式
XML布局文件中 <android.support.v4.view.ViewPager android:id="@+id/viewPager" android:layout_width="match_parent" android:layout_height="match_parent" > </android.support.v4.view.
2016-05-27 09:41:19 677
原创 ExpandableListview二级菜单
XMLzhong <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height=
2016-05-27 09:35:12 323
原创 Fragment之间的相互替换(内有httpclient请求)
MainActivitypackage com.example.textwork2;import android.os.Bundle;import android.app.Activity;import android.support.v4.app.FragmentActivity;import android.support.v4.app.FragmentManager;import an
2016-05-27 09:27:08 595
原创 (HttpURLConnection )AsyncTask解析xml
package com.baway.test;import java.io.ByteArrayOutputStream;import java.io.IOException;import java.io.InputStream;import java.net.HttpURLConnection;import java.net.URL;import java.util.ArrayList;i
2016-05-23 08:25:49 474
原创 xml解析
public class MainActivity extends Activity implements IXListViewListener { protected static final String tag = "MainActivity"; int pageIndex = 1; private String path; private List<News>
2016-05-16 08:06:13 213
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人