- 博客(31)
- 收藏
- 关注
原创 音乐播放带进度条
SeekMusicServicepublic class SeekMusicService extends Service { private MediaPlayer player; private PlayerBroadCastReceiver receiver; @Override public IBinder onBind(Intent intent) ...
2018-05-29 09:31:15 3650
原创 MVP++
BaseActivitypackage com.example.com.mymvp1.ui.base;public abstract class BaseActivaty<T extends BaseContract.BasePresenter> extends AppCompatActivity implements IBase,BaseContract.BaseView{ ...
2018-05-23 18:10:29 254
原创 xrecyclerview 下拉刷新上拉加载
依赖implementation 'com.jcodecraeer:xrecyclerview:1.3.2'implementation 'com.android.support:design:27.1.0' 解决编译有误写入适配器//刷新public void refresh(List<Databean.NewslistBean> temlist){ this.lis...
2018-05-11 19:17:01 1056
原创 自定义点击事件
package com.example.com.myjingdong.ui.click;/** * Created by 他。 on 2018/4/21. *///接口回调public interface OnItreamClickListener { void onItemClick(int position); void onLongItemClick(int position);...
2018-04-27 14:45:21 589
原创 ImageLoader 加载图片
package com.example.com.myjingdong.utils;import android.content.Context;import android.widget.ImageView;import com.bumptech.glide.Glide;import com.youth.banner.loader.ImageLoader;/** * Created by 他。 o...
2018-04-27 14:40:53 313
原创 MVP
OKutilspackage com.example.com.myjingdong.net.myslideshow;import android.os.Environment;import android.os.Handler;import android.util.Log;import java.io.File;import java.io.IOException;import...
2018-04-23 08:01:31 286
原创 快报
依赖 compile'com.sunfusheng:marqueeview:1.3.3' <com.sunfusheng.marqueeview.MarqueeView android:id="@+id/marqueeView" android:layout_width="match_parent" ...
2018-04-21 11:43:26 206
转载 流式布局
首先要导依赖:compile 'com.fynn.fluidlayout:fluidlayout:1.0'<com.fynn.fluidlayout.FluidLayout android:id="@+id/fluid" android:layout_width="match_parent" android:layout_height="120dp"...
2018-04-15 19:18:07 153
转载 子线程向主线程传递消息
package com.example.day19_handler_demo1;import android.os.Bundle;import android.os.Handler;import android.os.Message;import android.app.Activity;import android.util.Log;import android.view.Menu...
2018-04-15 13:25:36 1802
原创 pp
<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <script type="text/javascript" src="js/angular.min.js" ></script> <script type
2018-04-07 11:49:37 169
原创 练习2
<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <script type="text/javascript" src="js/angular.min.js" ></script> <script type
2018-04-07 11:13:00 159
原创 二级联动
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/angular.min.js" type="text/javascript" charset=&
2018-04-02 23:35:21 113
原创 练习
<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> <script type="text/javascript" src="js/angular.min.js" >
2018-03-30 08:51:05 167
原创 路由
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/angular.min.js" type="text/javascript" charset=&
2018-03-30 08:40:03 185
原创 0303
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/jquery-3.2.1.min.js" type="text/javascript" char
2018-03-28 19:59:48 425
原创 Angular控制器
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/angular.min.js" type="text/javascript" charset=&
2018-03-18 13:55:11 274 1
原创 Angular指令
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/angular.min.js" type="text/javascript" charset=&
2018-03-18 13:53:58 166
原创 无限轮播
private ViewPager viewPager; private List<String> picUrls; private DisplayImageOptions options; private Handler myHanler=new Handler(){ @Override public void handleMess...
2018-03-06 09:13:08 143
原创 sql
package animtest.com.example.e531.database_sample.db;import android.content.ContentValues;import android.content.Context;import android.database.Cursor;import android.database.sqlite.SQLiteDatabase;im
2018-01-19 09:49:52 137
原创 WebView
布局 android:id="@+id/text" android:layout_width="wrap_content" android:layout_height="wrap_content" /> android:id="@+id/bar" a
2018-01-16 15:58:29 170
原创 异步请求
String newurl = urlconnectiom.getHeaderField("location");URL u = new URL(newurl);HttpURLConnection uconnec= (HttpURLConnection) u.openConnection();uconnec.setRequestMethod("GET");uconnec.setConnec
2018-01-16 10:48:33 133
原创 横向滑动
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:co
2018-01-15 15:41:59 189
原创 侧滑菜单DrawerLayout
//菜单id zjm=findViewById(R.id.relativeLayout); //抽屉布局 mydrawer=findViewById(R.id.mydrawer); listView=findViewById(R.id.list_ch); ch=findViewById(R.id.ch); ch_jk="http://120.27.2
2018-01-13 15:41:59 115
原创 网络判断
public class NetStateUtil { /* * 判断网络连接是否已开 * true 已打开 false 未打开 * */ public static boolean isConn(Context context){ boolean bisConnFlag=false; ConnectivityManag
2018-01-11 10:43:29 112
原创 pulltorefreshshscrollview
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); scrollView = findViewById
2018-01-11 09:06:28 112
原创 Image
public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); Log.d("zzz","App入口"); Toast.makeText(this,"app",Toast.LEN
2018-01-10 10:04:51 238
原创 xlistview上下拉
package zhanghaijiao.bawei.com.xlistview_demo;import android.os.AsyncTask;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import com.bawei.jane.mxlistview.view
2018-01-06 09:58:40 179
原创 listview多条目
public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); Log.d("zzz","App入口"); Toast.makeText(this,"app",Toast.LEN
2018-01-06 09:51:06 160
原创 list适配器设置网络获取的图片
package com.example.com.rk_day_03;import android.content.Context;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.os.AsyncTask;import android.view.View;import
2017-12-28 14:49:29 260
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人