- 博客(41)
- 收藏
- 关注
原创 一篇Centos7下的asp.net core部署教程
网上有很多部署Net Core3.1的帖子、但是坑比较多,下面完整说一下Centos7系统完整部署 dotnet 避免踩坑。首先是安装.net Core ,官方网址如下:https://docs.microsoft.com/zh-cn/dotnet/core/install/选择Centos7系统 安装SDK与ASP.NET Core 运行时 两个仅可一...
2020-04-08 11:23:36 338
原创 流式布局
4个布局页面1:<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" ...
2020-04-08 10:54:33 107
原创 webview
简单易学 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_particulars);final WebView mWebView= ...
2019-01-20 09:04:28 149
原创 base
public abstract class BaseActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentVi...
2019-01-20 08:44:36 135
原创 phone pwd
1:public class LoginActivity extends BaseActivity { @BindView(R.id.ed_name) EditText edName; @BindView(R.id.ed_password) EditText edPassword; private LoginPresenter loginPrese...
2019-01-20 08:44:19 475
原创 app缓冲
RetrofitUtil.init(); DiskCacheConfig config = DiskCacheConfig.newBuilder(this) .setBaseDirectoryPath(new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/c...
2018-12-21 08:27:38 119
原创 xiangji
依赖:implementation 'cn.yipianfengye.android:zxing-library:2.2' private static final int REQUEST_CODE = 123;一个点击按钮id:openZXing.setOnClickListener(new View.OnClickListener() { @Override ...
2018-12-20 22:38:35 202
原创 单个列表显示2,
////adapter页面public class PZadapter extends RecyclerView.Adapter<PZadapter.ViewHolder> { private Context context; private List<Showone.ResultBean.PzshBean.CommodityListBeanX> l...
2018-12-20 21:02:43 138
原创 动态申请权限
////动态申请权限 if (Build.VERSION.SDK_INT >=Build.VERSION_CODES.M){ requestPermissions(new String[]{Manifest.permission.ACCESS_NETWORK_STATE},200); }...
2018-12-20 20:37:45 168
原创 多条目
1:adapter 适配器 (只有一个适配器而且不需要写viewhodel)public class Recviewadapter extends RecyclerView.Adapter { private List<Shopbean.ItemsBean> list=new ArrayList<>(); private Context context...
2018-12-20 20:32:16 94
原创 显示列表
首先布局主页面 布局管理器LinearLayoutManager linearLayoutManager=new LinearLayoutManager(context);linearLayoutManager.setOrientation(LinearLayoutManager.HORIZONTAL);mreview01.setLayoutManager(linearLayoutM...
2018-12-16 19:34:27 235
原创 单个购物车
1:布局 <?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="
2018-12-16 19:31:10 102
原创 购物车
一个依赖:implementation 'com.squareup.picasso:picasso:2.5.2'3个布局 一共4个布局1:界面 自定义的那个public class ShopCarPriceLayout extends RelativeLayout implements View.OnClickListener { private EditText edi...
2018-11-23 08:23:22 109
原创 商品列表
需要一个依赖包: implementation 'com.github.bumptech.glide:glide:4.8.0' 0:首先创建两个 bean类 一共要创建3个布局,但是写4个布局 左 bean类里要加这个:(布尔值的) private boolean isClick; public boolean isClick() { ...
2018-11-22 15:42:32 144
原创 圆角框实现
首先在drawable目录下创建shpe文件,名字自定义<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid android:color="#00000000"
2018-11-19 15:49:41 113
原创 MVP
1: public interface IDelegate { //初始化(联网操作,数据操作等) void initData(); //创建布局 void create(LayoutInflater inflater, ViewGroup viewGroup, Bundle bundle); View getRootView(); ...
2018-11-18 19:11:14 127
原创 瀑布流
两个adapter public class ShopListAdapter extends RecyclerView.Adapter<ShopListAdapter.MyHolder> { private List<ShopBean.DataBean> list=new ArrayList<>(); private Context c...
2018-11-18 19:06:03 109
原创 第三方
public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layo...
2018-11-18 19:02:13 122
原创 login
1:<uses-permission android:name="android.permission.INTERNET" />:2:public class CaptureActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState)...
2018-11-12 08:27:32 442
原创 雪花动画(仅供个人参考)
public class CustomView extends View { private Context mContext; private AttributeSet mAttrs; private int viewWidth; private int viewHeight; private static final int default...
2018-09-28 19:07:58 181
原创 Gaode
****************主 public class MainActivity extends AppCompatActivity implements AMapLocationListener, LocationSource { MapView mMapView = null; AMap aMap; MyLocationStyle myLocationSt...
2018-09-25 08:12:27 209
原创 MVP
仅供个人参考IModdel 不做操作 public interface IPressent<V extends IView> { void attach(V v); void detach();}public interface IView<V extends IView> { public void onSuccess(V v...
2018-09-22 18:06:12 120
原创 搜索
搜索框支持实现搜索资源布局中加入这两个 <ImageView android:id="@+id/iv_serac" android:layout_width="30dp" android:layout_height="match_parent" android:padding="8dp" android:src="@drawable/ic_...
2018-09-19 14:05:02 84
原创 recyclerView
public class MainActivity extends AppCompatActivity implements View.OnClickListener,MainContract.MainView { private static final int CODE_REQUEST_LOGIN = 1000; private ImageView ivHead; ...
2018-09-18 19:56:18 91
原创 AT
public class App extends Application { @Override public void onCreate() { super.onCreate(); initUment(); } private void initUment() { UMConfigure.init(this,...
2018-09-16 19:34:51 185
原创 自定义柱状图
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="ht
2018-09-02 19:02:12 142
原创 轮播不连接 Fragment的方法的方法 -----111111
public class MainActivity extends AppCompatActivity { private DrawerLayout dar; private TabLayout wid_tab; private ViewPager view_par; private List<Fragment> fragments; @O...
2018-07-22 21:29:07 126
原创 圆点布局
<RadioGroup android:id="@+id/ra_dio" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_alignParentBottom...
2018-07-19 20:03:27 158
转载 完成轮播加Frgemnt Lun bo 22222
读取 写入 注册Apppublic class MyAppclicon extends Application { //1 @Override public void onCreate() { super.onCreate(); //2 ImageLoaderConfiguration configuration ...
2018-07-19 17:20:12 140
原创 打开相机
权限<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"></uses-permission> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>//布...
2018-07-18 17:32:34 485
原创 从图库中获取照片
权限<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"></uses-permission> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>布局...
2018-07-18 17:28:10 153
原创 FAHUO
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <style> span{ color:red; } .myborder{ border: 1px solid red; }
2018-04-06 22:37:55 357
原创 为何AI增改
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/angular.min.js"></script> <sc
2018-04-06 22:08:50 101
转载 BAT电商货品
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <style> span{ color:red; } .myborder{ border: 1px solid red; }
2018-04-06 22:03:11 204
原创 原创项目理
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/angular.min.js"></script> <sc
2018-04-06 20:53:36 112
转载 电商项目zhong paixu+
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/angular.min.js"></script> <sc
2018-04-06 20:36:10 122
转载 京东的清理
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/angular.min.js"></script> <sc
2018-04-06 20:07:23 91
转载 全与jia
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/angular.min.js"></script> <sc
2018-04-06 20:00:57 131
转载 电商基础理论
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="js/angular.min.js"></script> <sc
2018-04-06 19:44:07 393
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人