自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 保存在线测试视频地址

版权声明:本文为CSDN博主「ITingLight」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。原文链接:https://blog.csdn.net/itinglight/article/details/125756585。

2023-04-13 11:28:45 188

原创 Android启动白屏解决方案

Android冷启动白屏

2022-06-30 10:35:45 774

原创 Android RecyclerView设置paddingBottom,scrollbars跟随滑动到底部

<?xml version="1.0" encoding="utf-8"?> <androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rcv" android:layout_width="match_parent" android:layout_height="wrap_content.

2020-11-06 09:15:02 752

原创 监听RecyclerView滑动的距离(项目基于Androidx)

1.亲测有效(LinearLayoutManager) recyclerView.setOnScrollChangeListener(new View.OnScrollChangeListener() { @Override public void onScrollChange(View v, int scrollX, int scrollY, int oldScrollX, int oldScrollY) { int offset = recyclerView.com.

2020-10-12 19:08:33 1359

原创 1.RecyclerView设置clipToPadding=“false“,scrollbars无法跟随列表滚动到底部的解决方案

记录一下,工作遇到的一个问题 <?xml version="1.0" encoding="utf-8"?> <androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rcv" android:layout_width="match_parent" android:layout_heig..

2020-10-12 19:05:58 275

原创 记录一个不显示状态栏和底部导航栏的Dialog

/** * @author huang * @description: tv端选择歌曲 */ public class BoxSongsSelectDialog extends Dialog implements View.OnClickListener { private Activity mContext; private Song mSong; private BoxSelectSongDialogBinding mDataBinding; private O.

2020-09-17 10:33:16 221

原创 PopupWindow显示状态栏和底部导航栏的问题

1.会显示底部导航栏和状态栏 PopupWindow.setOutsideTouchable(true); PopupWindow.setClippingEnabled(false); PopupWindow.setFocusable(true); 2.不会显示底部导航栏和状态栏 PopupWindow.setOutsideTouchable(true); PopupWindow.setClippingEnabled(false); PopupWindow.setFocusable(false)..

2020-09-15 18:05:25 904

原创 电脑几次意外关机之后,Android studio运行项目一直报错Default Activity not found

1.几次意外关机,运行项目一直报错Default Activity not found,无法编译运行 2.invalidate Caches/Restart也无法解决 亲测,删除Android studio的缓存即可C:\Users\Administrator\.AndroidStudio4.0\system\caches

2020-08-26 15:23:41 160

原创 android关于自定义Dialog中布局match_parent 属性 失效的问题

dialog如果没有设置style,那么系统会主动设置一个style,这个style中的decorview会存在padding,所以导致match_parent无效 1.方法一 dialog.show();//在show之后修改,必须这样否则无效,没看源码具体原因不知道 Window window =dialog.getWindow(); if (window == null) { ...

2020-04-29 14:48:41 1997

原创 EditText保存两位小数点

class FloatTextChange(private val mEditText: EditText) : TextWatcher { private var listener: OnTextChangeListener? = null override fun beforeTextChanged(s: CharSequence, start: Int, count: ...

2020-04-18 17:30:54 236

原创 如何让CoordinatorLayout内容滚动到顶部,以及存在的无法滑动的问题

如果布局为:CoordinatorLayout + TabLayout + ViewPager + RecyclerView @BindView(R.id.appBarLayout) AppBarLayout appBarLayout; @BindView(R.id.mRecyclerView) RecyclerView mRecyclerView; 在调用Coordin...

2019-09-19 15:12:01 4600 1

空空如也

空空如也

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

TA关注的人

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