摘要:
程序从一个dialog开始: private void show() { final Dialog dialog = new Dialog(this, R.style.ActionSheetDialogStyle); View inflate = LayoutInflater.from(this). 阅读全文
摘要:
布局就是一个imagview 加依赖 implementation 'com.github.chrisbanes.photoview:library:1.2.4'implementation 'com.android.support:support-v4:27.1.1'调三方控件 photoview 阅读全文
摘要:
老规矩首先先上布局 咱们先看效果 布局实现 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" a 阅读全文
摘要:
借用这个https://blog.csdn.net/fun7646/article/details/80238696 我这里只是记录一下等以后要使用不用先去百度 形式:条件表达式 ?程序块1 :程序块2 ; 含义:如果条件表达式为真,则本程序语句执行程序块1,程序块1的值即为整个表达式的值, 否则为 阅读全文
摘要:
首先初始化 private RecyclerView recycler_view; private MyAdapter mAdapter;//适配器 recycler_view = (RecyclerView) findViewById(R.id.recycler_view); //设置布局管理器 阅读全文
摘要:
1.NoSuchMethodError: No virtual method getBytes(J)[B in class Lcom/huawei/kvdb/KVConnection; or its super classes (declaration of 'com.huawei.kvdb.KVC 阅读全文
摘要:
我是参考这篇文章 :https://www.jianshu.com/p/dbc7e81aead2 主要是布局分横竖屏 然后再java代码 Configuration cf = this.getResources().getConfiguration(); int ori = cf.orientati 阅读全文
摘要:
首先recyclerview适配器继承自RecyclerView.Adapter 不是之前的那个public class MyDetailsAdapter extends RecyclerView.Adapter {//设置常量 //平台 private static final int LEFT 阅读全文