自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Android接入stripe支付

Android接入stripe支付阅读之前请大家先了解流程哦(适用于先绑卡后扣款的情况)stripe国际化支付流程:1.初始化stripe,创建stripe对象;2.检索后台SetupIntent,得到client secret,也就是client token;(客户机密可用于通过信用卡网络验证和验证卡详细信息)3.获取卡片信息,判断卡号,有效期,cvv是否正确有效4.客户端收集付款方...

2019-12-12 17:57:06 2459

原创 调用系统相机相册

方法一:@Overrideprotected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data);// Uri uri = data.getData();// image.setImageU...

2018-12-20 16:17:20 171

原创 fresco的封装

public static void init(){ Fresco.initialize(App.mContext,ImagePipelineConfig.newBuilder(App.mContext) .setMainDiskCacheConfig(DiskCacheConfig.newBuilder(App.mContext) ...

2018-12-17 08:11:34 245

原创 Recyclerview瀑布流效果

添加依赖,如上文public class RecycleAdapter extends RecyclerView.Adapter<RecycleAdapter.MyHolder> {private Context context;private ArrayList<String> list;private List<Integer> random_nu...

2018-11-22 16:58:25 245

原创 自定义控件实现波浪效果

<RelativeLayout android:layout_width="match_parent" android:layout_height="200px" android:background="#FF0000"> <com.yx.waveview.WaveView android:id="@+id/wv" ...

2018-11-22 15:51:53 344

原创 自定义流式布局

效果<com.yaxin.liushibuju.FloatLayout android:layout_width="match_parent" android:layout_height="wrap_content" > <TextView android:layout_width="wrap_content" ...

2018-11-22 15:26:54 122

原创 Android------圆形搜索框

效果图方法一:<SearchView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentStart="true" android:layout_alignParentTop="t...

2018-11-22 10:24:43 1549

原创 Recyclerview的简单使用

RecyclerView 是新添加的一个用来取代ListView的SDK,它的灵活性与可替代性比listview更好。效果图:第一步:添加依赖implementation 'com.android.support:recyclerview-v7:28.0.0'布局省略直接用private RecyclerView recyclerView;//主体private List<...

2018-11-18 20:58:25 119

原创 Android自定义通用的标题栏CustomTitleBar

1自定义一个public_titlebar.xml文件<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rootView" android:layout_w...

2018-11-11 20:12:36 1789

原创 背景灯光

背景灯光------感兴趣的可以参考<ImageViewandroid:layout_width="match_parent"android:layout_height="match_parent"android:background="#b7e4bf&quo

2018-11-08 21:05:16 180

原创 Android中使用Thread.UncaughtExceptionHandler捕获全局异常

//创建一个类实现Thread.UncaughtExceptionHandlerpublic class UnCatchExceptionHandler implements Thread.UncaughtExceptionHandler {private Context context;private Thread.UncaughtExceptionHandler defaultExce...

2018-11-08 20:38:39 675

原创 流式布局的简单使用

布局文件<com.bawei.jyx.floatlayout.FloatLayout android:id="@+id/floatlayout" android:layout_width="match_parent" android:layout_height="match_parent"></co

2018-11-08 20:16:20 226

原创 Android之跑马灯

第一种方式:通过xml文件中设置TextView属性 <TextView android:singleLine="true" android:ellipsize="marquee" android:text="还记得你说家是唯一的城堡 随着稻香河流继续奔跑,微微笑 小时

2018-11-08 18:54:40 1672

原创 Listview多条目的简单使用

1.创建一个新的布局(需要几种布局创建几种)2.新建一个类型的Type3.initData();里重新去做一个判断,数据添加类型时,添加一个fourType属性4.在适配器中把getViewTypeCount()里的数据添加一条即可5.再创建一个ViewHolder6.在getView方法里,在复制switch里的一个case,全部在增加一个即可//设置三种类型,对应不同的类型的ite...

2018-10-25 18:50:51 190

原创 Gson简单解析网络接口数据

第一步:postman测试接口数据,查看是否返回成功第二步:需要添加的依赖implementation ‘com.google.guava:guava:16.0.1’implementation ‘com.google.code.gson:gson:2.2.4’Ctrl C/V 到项目的build.gradle,同步第三步:File–Settings–Plugins搜索GsonFor...

2018-10-25 15:38:39 671

原创 TabLayout滑动

TabLayout需要添加依赖implementation ‘com.android.support:design:28.0.0’ <android.support.design.widget.TabLayout android:id="@+id/tablayout" android:layout_width="match_parent" ...

2018-10-24 15:51:38 484

原创 Drawlayout抽屉---侧滑菜单的简单使用

主页面布局,根布局是drawlayout<?xml version="1.0" encoding="utf-8"?><android.support.v4.widget.DrawerLayout xmlns:android=“http://schemas.android.com/apk/res/android”xmlns:app=“http://schemas

2018-10-24 15:23:26 266

原创 JDK和android Studio的环境变量配置

一、jdk的环境变量配置变量名: JAVA_HOME(不区分大小写)变量值为: D:\Program Files\Java\jdk1.8.0_144其中变量值是自己安装的jdk的根路径在Path环境变量里添加(如果已经有其他内容,则前面加上分号):%JAVA_HOME%\bin\二、android studio的配置和jdk配置类似,增加如下的环境变量变量名:ANDROID_HO...

2018-10-24 14:21:21 1227 3

空空如也

空空如也

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

TA关注的人

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