两台手机做dailog弹窗高度自定义时发现始终适配不了,经测试发现 getResources().getDisplayMetrics().heightPixels获取到的屏幕...
问题描述 在使用beego框架的bee工具时执行: > bee new project_name 会出现 ERROR You need to set GOPATH envir...
引入implementation'com.jwenfeng.pulltorefresh:library:1.0.3' val pu: PullToRefreshLayout ...
var imageView = ImageView(context) imageView.setImageDrawable(resources.getDrawable(R.d...
val textView = TextView(context) textView.gravity = Gravity.CENTER val textViewPadding ...
val spannableString = SpannableString("在文本中添加表情(表情)") val drawable =resources.getDrawab...
// xml 嵌入QMUIEmptyView "<com.qmuiteam.qmui.widget.QMUIEmptyView" android:id="@+id/em...
val tipDialog: QMUITipDialog tipDialog = QMUITipDialog.Builder(context) .setIconType(QM...
QMUIBottomSheet.BottomListSheetBuilder(activity) .addItem("Item 1") .addItem("Item 2") ...
QMUIDialog.MessageDialogBuilder(activity) .setTitle("标题") .setMessage("确定要发送吗?") .addAc...
定义 简单地说,LiveData是一个数据持有类。它具有以下特点: 数据可以被观察者订阅; 能够感知组件(Fragment、Activity、Service)的生命周期; 只...