2014年12月17日
摘要:
private ConnectivityManager mConnectivityManager; private NetworkInfo netInfo; 在onCreate 注册广播 IntentFilter mFilter = new IntentFilter(); mFi...
阅读全文
posted @ 2014-12-17 15:28
freexiaoyu
阅读(1191)
推荐(0)
2014年12月13日
摘要:
项目地址:https://github.com/chrisbanes/Android-PullToRefresh不知道为什么这个项目没有给listview 加 OnItemLongClickListener 事件以下是我自己加的 找到com.handmark.pulltorefresh.librar...
阅读全文
posted @ 2014-12-13 13:06
freexiaoyu
阅读(852)
推荐(1)
2014年12月12日
摘要:
整个项目要使用第三方字体首先将字体文件放到assets文件夹下因为整个项目要用第三方字体这里我重写了 TextView Button EditText 三个控件以TextView 为例代码如下 其它控件一样换下继承public class CustomTextView extends TextVie...
阅读全文
posted @ 2014-12-12 15:47
freexiaoyu
阅读(4629)
推荐(0)
2014年12月6日
摘要:
public class UserTypeParentAdapter extends MyBaseAdapter { private int selectItem = -1; public UserTypeParentAdapter(Context context, List datas...
阅读全文
posted @ 2014-12-06 13:37
freexiaoyu
阅读(888)
推荐(0)
2014年11月18日
摘要:
APP用的是高德SDK业务是用户点击APP中的导航按钮,会根据用户当前手机安装地图APP进行导航,顺序是 1高德 2百度,如果用户没有安装高德地图APP则判断是否有百度地图APP因为APP是用的高德SDK所以在导航上没有任何问题,跳转百度后 坐标误差比较大有时候 导航提示 未搜索到结果之类的,造成这...
阅读全文
posted @ 2014-11-18 22:41
freexiaoyu
阅读(8134)
推荐(0)
2014年11月11日
摘要:
原来处理方法是重写ListViewimport android.content.Context;import android.util.AttributeSet;import android.view.MotionEvent;import android.widget.ListView;public...
阅读全文
posted @ 2014-11-11 16:16
freexiaoyu
阅读(10422)
推荐(0)
2014年10月23日
摘要:
百度地图 运行提示java.lang.UnsatisfiedLinkError: Couldn't load vi_voslib from loader dalvik.system.PathClassLoader解放办法在libs下面创建一个armeabi-v7a文件夹 把armeabi *.so的...
阅读全文
posted @ 2014-10-23 17:54
freexiaoyu
阅读(18296)
推荐(2)
2014年9月23日
摘要:
private Map mapDate;//正序mapDate=new TreeMap(new Comparator() { @Override public int compare(String lhs, String rhs) { ...
阅读全文
posted @ 2014-09-23 11:28
freexiaoyu
阅读(1405)
推荐(0)
2014年9月21日
摘要:
获取控件@InjectView(R.id.image_show_password)ImageView image_show_password;控件事件@OnClick(R.id.btn_submit) void btn_submit(){ intent=new Intent(context, M...
阅读全文
posted @ 2014-09-21 11:43
freexiaoyu
阅读(2313)
推荐(0)
2014年9月4日
摘要:
自定义GSON类 1 public class GsonRequest extends Request { 2 private final Gson mGson = new Gson(); 3 private final Class mClazz; 4 private fin...
阅读全文
posted @ 2014-09-04 00:40
freexiaoyu
阅读(8187)
推荐(0)