自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(30)
  • 收藏
  • 关注

原创 Excel 表格批量删除不需要的内容

在使用Excel 处理数据时,经常会遇到一些很长的条码,而我们只需要其中的一部分,这时候,就能批量截取我们所要的东西。选中单元格,右键,设置单元格格式,改为数值,小数位数为0,然后确定。出现下面这个,已经截取好了,后面的可以删除了,前面的需要处理一下。选,不导入此列,然后完成。

2023-07-06 10:37:48 1384

原创 你或许能用到的依赖汇总

//Volleyimplementation 'com.mcxiaoke.volley:library:1.0.19'//Gsonimplementation 'com.google.code.gson:gson:2.8.5'//Glideimplementation 'com.github.bumptech.glide:glide:4.8.0'annotationProc...

2019-10-13 20:29:47 179

原创 实用单选功能

实现上图,直接上代码:<RadioGroupandroid:id="@+id/radio_group"android:layout_width="fill_parent"android:layout_height="wrap_content"android:layout_alignParentLeft...

2019-08-21 11:17:13 165

原创 Fragment之间的跳转

Fragment之间的跳转<ViewPage+Fragment>吐槽:其实这个功能的实现只需要那么几行代码,但老是忘记,其实真的很简单啊啊啊啊啊!不废话了,上代码:Fragment里:if (getActivity() instanceof MainActivity){((MainActivity) getActivity()).selected();}Mainactiv...

2019-07-22 17:08:30 197

原创 二维码生成

第一步:导依赖:implementation 'cn.yipianfengye.android:zxing-library:2.2'第二步:public class App extends Application { @Override public void onCreate() { super.onCreate(); //初始化 ...

2019-07-06 09:58:58 190

原创 Glide二次封装

首页注册一下:<meta-data android:name="com.example.lian0629.glide" android:value="AppGlideModule" />public class Glide extends AppGlideModule { @Override public void ap...

2019-07-01 10:41:29 385

原创 购物车逻辑

Contarct:public interface ContarctInterface { //view public interface View{ public void getShow(Object object); public void getJoin(Object object); } //presenter ...

2019-07-01 10:40:54 167

原创 okHttpUtil+Rxjava+Retrofit的网络

BaseUrl:public class BaseUrl { public static String BaseUrl="http://172.17.8.100/";}Api:public interface Api { //登陆 @POST("small/user/v1/login") public rx.Observable<Respons...

2019-07-01 10:37:32 221

原创 Butterknife的使用

第一步:在总项目的build.gradle里面的dependencies里面加: classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-rc1'第二步:添加依赖: implementation 'com.jakewharton:butterknife:9.0.0-rc1' annot...

2019-06-16 21:00:09 144

原创 GreenDao的配置

第一步:在本项目的build.gradle最上面写:apply plugin: 'org.greenrobot.greendao'第二步:在总项目的build.gradle的dependencies里面加上:classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'第三步:在本项目的build.gradle的dependencies上面加:...

2019-06-16 20:18:01 384

原创 Rxjava+Retrofit+Okhttp

Api:public interface Api { @GET("small/order/verify/v1/findShoppingCart") public rx.Observable<ResponseBody>getShow(@Header("userId")int userId,@Header("sessionId")String sessionId);...

2019-06-16 20:09:00 170

原创 WebView与JS交互

布局:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" androi...

2019-05-31 21:21:31 102

原创 自定义加减器

第一种方法:attrs:<resources> <declare-styleable name="MyAddAndRemoveView"> <attr name="textColor" format="string"></attr> <attr name="textSize" format="int...

2019-05-31 21:10:51 138

原创 自定义搜索框

布局:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:...

2019-05-26 20:11:42 170

原创 联系人首字母列表索引

MainActivity.xml布局: <com.example.lian0524.SidebarView android:layout_width="match_parent" android:layout_height="match_parent"/>SidebarView:public class SidebarView exten...

2019-05-25 09:38:42 288

原创 登录,注册,URLConnection

登录Activity:public class MainActivity extends BaseActivity implements ContarctInterface.View { public EditText edit_phone,edit_password; public TextView text_register; public Button butt...

2019-05-12 20:30:55 341

原创 流式布局、折线图、详情页

ShowContarct:public interface ShowContarct { //model public interface ShowModel{ public void getModelData(String keyword,ShowModel.ModelCallBack modelCallBack); public inter...

2019-05-04 15:22:21 373

原创 折线图

public class MyView extends View { Paint paint,paint1,paint2,paint3; public MyView(Context context) { super(context); } public MyView(Context context, AttributeSet attrs) { ...

2019-05-04 14:59:43 237

原创 属性动画

attrs.xml: <declare-styleable name="MyTextView"> <attr name="myText" format="string"/> <attr name="myTextColor" format="color"/> <attr name="myTextSize" ...

2019-05-04 14:56:33 224

原创 二级联动适配器

ShowAdapter:public class ShowAdapter extends XRecyclerView.Adapter<ShowAdapter.holder> { public Person person; public Context context; public ShowAdapter(Person person, Context c...

2019-05-04 14:51:56 238

原创 XrecyclerView上下拉刷新、商品二级联动

ShowContarct:public interface ContarctInterface { //model public interface ShowModel{ public void getShow(String show,CallBack callBack); public void getLeft(String left,Cal...

2019-05-04 14:49:00 162

原创 折线图

public class MyView extends View { Paint paint,paint1 ; public MyView(Context context) { super(context); } public MyView(Context context, AttributeSet attrs) { super(...

2019-04-26 21:23:05 76

原创 流式布局

Activity:public class MyLiu extends ViewGroup { public MyLiu(Context context) { super(context); } public MyLiu(Context context, AttributeSet attrs) { super(context, at...

2019-04-26 21:18:41 76

原创 全局异常捕获机制

public class CrashHandler implements Thread.UncaughtExceptionHandler { Context context; volatile private static CrashHandler crashHandler; public CrashHandler(Context context) { ...

2019-04-26 21:16:45 351

原创 多条目MVP框架

Contarct:public interface ShowContarct { //model public interface ShowModel{ public void getModelData(String keyword,ShowModel.ModelCallBack modelCallBack); public interface...

2019-04-26 21:13:03 91

原创 总布局

MainActivity.xml:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools...

2019-04-26 21:05:50 101

原创 多条目适配器

public class ShowAdapter extends RecyclerView.Adapter { public Context context; public Show show; public int RxxpType=0; public int MlssType=1; public int PzshType=2; pub...

2019-04-21 20:09:30 124

原创 网络工具框架Volley

App类:public class ShowApp extends Application { public static RequestQueue requestQueue; @Override public void onCreate() { super.onCreate(); requestQueue = Volley.newR...

2019-04-21 20:06:32 74

原创 多条目布局

MainActivity.xml:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools...

2019-04-21 19:52:59 62

原创 简单购物车逻辑

MainActivity.xml:<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="h...

2019-04-06 20:42:12 162

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除