- 博客(11)
- 资源 (3)
- 收藏
- 关注
原创 Fresco的使用及圆角
1.依赖 compile 'com.facebook.fresco:fresco:0.13.0'2.布局 <com.facebook.drawee.view.SimpleDraweeView android:id="@+id/sim_fre" android:layout_width="100dp" android:layout_height
2017-12-26 00:45:52 685
原创 简单的二级购物车
1.权限 依赖<uses-permission android:name="android.permission.INTERNET"></uses-permission> compile 'com.squareup.okhttp3:okhttp:3.9.1' implementation files('libs/gson-2.2.4.jar') compile 'com.jakewh
2017-12-20 11:46:35 317
翻译 Recyerview的使用
适配器public class MySearchAdapter extends RecyclerView.Adapter<MySearchAdapter.ViewHolder> { private Context context; private List<Fen_Book> list; private int q; public MySearchAdapter(Cont
2017-12-18 00:33:31 1292
原创 圆角边框shape实现
<?xml version="1.0" encoding="utf-8"?><shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#ffffff"></solid> <corners android:radi
2017-12-16 09:35:13 235
转载 第三方框架依赖
//ok网络请求compile 'com.squareup.okhttp3:okhttp:3.9.1'//recyclerview 与 xrecyclerviewcompile 'com.android.support:recyclerview-v7:26.0.0-alpha1'compile 'com.jcodecraeer:xrecyclerview:1.5.2'//图片加载comp
2017-12-15 09:38:16 423
转载 OKHttp上传下载
public void btnUpload(View view){ OkHttpClient okHttpClient = new OkHttpClient.Builder() .connectTimeout(5, TimeUnit.SECONDS) .build(); //上传的文件路劲
2017-12-08 08:20:56 319
转载 自定义控件+二维码
1.title.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_paren
2017-12-04 00:28:28 491
转载 自定义轮播图+网络请求
1.创建viewpa.xml<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="ma
2017-12-04 00:05:38 350
转载 流式布局(自定义控件)
1.创建MyViewGroup extends ViewGrouppackage com.example.lsllayout;import android.content.Context;import android.graphics.Canvas;import android.util.AttributeSet;import android.view.View;import androi
2017-12-03 23:56:07 282
转载 实现自定义顶部标题栏(自定义控件)
1.创建 layout_title.xml(自定义标题视图)<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layout_titlebar" android:layout_
2017-12-03 23:42:42 517
转载 手指在屏幕上滑动,红色的小球始终跟随手指移动(自定义控件)
1.自定义控件 BallView类public class BallView extends View { private Paint mpaint; private int x=100; private int y=100; private int r=100; public BallView(Context context) {
2017-12-03 23:31:18 803
adb文件(adb.exe,AdbWinApi.dll,AdbWinUsbApi.dll)压缩包
2019-08-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人