摘要: 首先是依赖 compile 'com.hjm:BottomTabBar:1.1.1' 下面是activity。xml文件 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="htt 阅读全文
posted @ 2017-12-27 11:25 沫髯小乐 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-12-04 19:03 沫髯小乐 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 原创博客:http://p.codekk.com/detail/Android/lipangit/jiecaovideoplayer按照上面的博客自己试验是否成功.http://blog.csdn.net/androidstarjack/article/details/69526279 compil 阅读全文
posted @ 2017-11-24 13:30 沫髯小乐 阅读(388) 评论(1) 推荐(0) 编辑
摘要: bind,graud 里面添加dataBinding { enabled = true } <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android 阅读全文
posted @ 2017-11-16 08:58 沫髯小乐 阅读(145) 评论(0) 推荐(0) 编辑
摘要: compile 'com.squareup.picasso:picasso:2.5.2' @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCon 阅读全文
posted @ 2017-11-07 09:27 沫髯小乐 阅读(165) 评论(0) 推荐(0) 编辑
摘要: <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/><uses-permission android:name="android.permission.INTERNET"/><uses-permission 阅读全文
posted @ 2017-09-22 11:45 沫髯小乐 阅读(977) 评论(0) 推荐(0) 编辑
摘要: public void popwindow(){ v = View.inflate(context, R.layout.item_cha,null); pop = new PopupWindow(v, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.La 阅读全文
posted @ 2017-09-21 20:59 沫髯小乐 阅读(132) 评论(0) 推荐(0) 编辑
摘要: public void qq(){ Cursor query = db.query("user",null,null,null,null,null,null); while(query.moveToNext()){ Bean b=new Bean(); b.name=query.getString( 阅读全文
posted @ 2017-09-21 20:47 沫髯小乐 阅读(127) 评论(0) 推荐(0) 编辑
摘要: public class bubbleSort { public bubbleSort(){ int a[]={49,38,65,97,**,**,**,**,78,34,12,64,5,4,62,99,98,54,56,17,18,23,34,15,35,25,53,51}; int temp=0 阅读全文
posted @ 2017-09-21 20:43 沫髯小乐 阅读(111) 评论(0) 推荐(0) 编辑
摘要: xutils的使用必须导入一个依赖protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); lv = 阅读全文
posted @ 2017-09-21 09:57 沫髯小乐 阅读(256) 评论(0) 推荐(0) 编辑