<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[点滴之路的博客]]></title><description><![CDATA[循序而渐进，熟读而精思]]></description><link>https://blog.csdn.net/xiaoshuxgh</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; xiaoshuxgh]]></copyright><item><title><![CDATA[Android WebView由于重定向造成的goBack()无效的问题解决]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/140356265</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/140356265</guid><author>xiaoshuxgh</author><pubDate>Thu, 11 Jul 2024 16:47:09 +0800</pubDate><description><![CDATA[当加载重定向的URL时，点击返回按键时webview.canGoBack()判断为true，即就调用webview.goBack()方法，这时shouldOverrideUrlLoading()方法中return true，表示是程序自己来处理goBack()后的URL加载，当加载重定向URL会变成一个死循环，不会正常退出WebView。当加载重定向Url时，webView不能一级一级goback返回上一页面的问题。]]></description><category></category></item><item><title><![CDATA[WebView设置setBackgroundResource无效]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/126347885</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/126347885</guid><author>xiaoshuxgh</author><pubDate>Mon, 15 Aug 2022 15:34:58 +0800</pubDate><description><![CDATA[webview设置背景图无效问题]]></description><category></category></item><item><title><![CDATA[Android API28+（9.0） Textview 带中文的行高问题]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/125742080</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/125742080</guid><author>xiaoshuxgh</author><pubDate>Tue, 12 Jul 2022 14:16:55 +0800</pubDate><description><![CDATA[Android API28+（9.0） Textview 行高问题]]></description><category></category></item><item><title><![CDATA[华为应用市场上传APP失败多次因为：您的应用在用户同意隐私政策前申请获取用户的（MAC地址）个人信息。]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/124843619</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/124843619</guid><author>xiaoshuxgh</author><pubDate>Wed, 18 May 2022 15:39:27 +0800</pubDate><description><![CDATA[因为您的应用在用户同意隐私政策前申请获取用户的（MAC地址）个人信息。原因APP审核失败多次，后面发现一个方法挺好用的，记录一下：

1.手机先安装xposed，也就是虚拟系统，务必使用我提供的xpose的apk,不然你可能出现安装的xpose虚拟apk以后，在选择安装软件的时候，会出现不支持32位安装，这样就无法测试，这时你只能选择32位还是64位的Xposed；

2.安装sherlock apk，直接安装手机，具体apk地址github地址是：https://github.com/AbandonCod]]></description><category></category></item><item><title><![CDATA[解决TextView的marquee跑马灯效果因失去焦点而失效]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/119796564</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/119796564</guid><author>xiaoshuxgh</author><pubDate>Thu, 19 Aug 2021 10:43:10 +0800</pubDate><description><![CDATA[public class MarqueeTextView extends AppCompatTextView {

    private boolean isMarqueeEnable = false;

    public MarqueeTextView(Context context) {
        super(context);
    }

    public MarqueeTextView(Context context, @Nullable AttributeSet attrs) .]]></description><category></category></item><item><title><![CDATA[Application类中onCreate()执行多次的解决办法]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/119000793</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/119000793</guid><author>xiaoshuxgh</author><pubDate>Thu, 22 Jul 2021 15:43:49 +0800</pubDate><description><![CDATA[@Override
    public void onCreate() {
        super.onCreate();
        String processName = getProcessName(this, android.os.Process.myPid());
        if (processName != null) {
            boolean defaultProcess = processName.equals("包名");//修改为自己项目的包名...]]></description><category></category></item><item><title><![CDATA[webview出现自动滑动]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/118548555</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/118548555</guid><author>xiaoshuxgh</author><pubDate>Wed, 07 Jul 2021 15:50:08 +0800</pubDate><description><![CDATA[动态加载webview，重新加载时出现自动滑动问题，

我的解决方法是，在创建这个WebView的时候就固定好他的大小。因为之前我让他自适应他的高度，导致他每次onFinishPage被调用后都会去触发自己重新 onMeasure，最终导致他的父类ScrollViewonLayout，一旦onLayout，整个页面就重新回到了顶部。 所以我的解决方法是： 要不设置WebView的高度是match_parent，要不固定他的height。
...]]></description><category></category></item><item><title><![CDATA[Glide4.8.0添加自定义动画]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/118308900</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/118308900</guid><author>xiaoshuxgh</author><pubDate>Mon, 28 Jun 2021 18:44:46 +0800</pubDate><description><![CDATA[transition(GenericTransitionOptions.with(R.anim.slide_out_right))


  Glide.with(MainActivity.this)
                    .asBitmap()
//                    .transition(BitmapTransitionOptions.withCrossFade(drawableCrossFadeFactory))
                    .tra.]]></description><category></category></item><item><title><![CDATA[ERROR: Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jre7:1.4.10]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/116015596</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/116015596</guid><author>xiaoshuxgh</author><pubDate>Thu, 22 Apr 2021 15:15:10 +0800</pubDate><description><![CDATA[将APP下的：


api "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"

修改为


api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

即可

唯一的不同就是jre改成jdk
]]></description><category></category></item><item><title><![CDATA[Duplicate class android.support.design.widget.CoordinatorLayout found in modules]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/116015412</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/116015412</guid><author>xiaoshuxgh</author><pubDate>Thu, 22 Apr 2021 15:11:37 +0800</pubDate><description><![CDATA[Duplicate class android.support.design.widget.CoordinatorLayout found in modules classes.jar (com.android.support:coordinatorlayout:28.0.0) and classes.jar (com.android.support:design:25.3.1)。

新建项目时引入了一个状态栏显示框架，结果项目运行时就报了如上的错误，一开始也是一直在找重复依赖的解决办法，试了几个都不管用，]]></description><category></category></item><item><title><![CDATA[BaseQuickAdapter 中item复用导致的Checkbox状态混乱问题【完美解决】]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/113877284</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/113877284</guid><author>xiaoshuxgh</author><pubDate>Sat, 20 Feb 2021 10:04:42 +0800</pubDate><description><![CDATA[if(posList.contains(holder.itemView.getTag())){
                holder.cbSelect.setChecked(true);
            }else{
                holder.cbSelect.setChecked(false);
            }


            holder.cbSelect.setOnCheckedChangeListener((CompoundButton .]]></description><category></category></item><item><title><![CDATA[2021-01-06 安卓实现倒计时]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/112273422</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/112273422</guid><author>xiaoshuxgh</author><pubDate>Wed, 06 Jan 2021 14:58:23 +0800</pubDate><description><![CDATA[最近写了一个倒计时，应公司要求，到年底要完成的任务

用DatePickerDialog可以选择年月日，但是项目要求到春节放假，所以日期是固定的，但是将选择日期的代码附上



        val calendar = Calendar.getInstance()
        val year = calendar[Calendar.YEAR]
        val month = calendar[Calendar.MONTH]
        val day = calendar[Calend]]></description><category></category></item><item><title><![CDATA[No cached version of com.android.tools.build:gradle:3.6.3 available for offline mode.**j解决方案]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/111993172</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/111993172</guid><author>xiaoshuxgh</author><pubDate>Wed, 30 Dec 2020 16:25:50 +0800</pubDate><description><![CDATA[android studio的gradle新建项目时候出现 Gradle sync failed: No cached version of com.android.tools.build:gradle:3.5.3 available for offline mode.

我的studio版本是3.6.1，之前的版本当中Settings-&gt;Builder…bababa… &gt;gradel&gt; offline work有这么个选项 ，现在没有了，新版在这



只要取消选中就是offline w]]></description><category></category></item><item><title><![CDATA[Explanation for issues of type “MissingDefaultResource“:]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/111632896</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/111632896</guid><author>xiaoshuxgh</author><pubDate>Thu, 24 Dec 2020 15:26:43 +0800</pubDate><description><![CDATA[F:\maxbiz\app\src\main\res\values-4096x2160\configs.xml:19: Error: The integer "sd_close_animation_duration" in values-4096x2160 has no declaration in the base values folder; this can lead to crashes when the resource is queried in a configuration that do.]]></description><category></category></item><item><title><![CDATA[Error inflating class androidx.constraintlayout.widget.ConstraintLayout]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/110266815</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/110266815</guid><author>xiaoshuxgh</author><pubDate>Sat, 28 Nov 2020 13:38:29 +0800</pubDate><description><![CDATA[修改布局中的android.support.constraint.ConstraintLayout为androidx.constraintlayout.widget.ConstraintLayout，而不是androidx.constraintlayout.ConstraintLayout
	如果还是不行的话将implementation 'androidx.constraintlayout:constraintlayout:1.1.3’中的版本升级到1.1.3，旧的1.1.2会一直报错
...]]></description><category></category></item><item><title><![CDATA[安卓判断虚拟导航键是否显示]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/107180975</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/107180975</guid><author>xiaoshuxgh</author><pubDate>Tue, 07 Jul 2020 14:38:03 +0800</pubDate><description><![CDATA[在全面屏手机之前，我们对虚拟导航栏的判断就有很多种方法,



    
       // 判断系统是否写入了关于定义虚拟导航栏的高度相关变量。
       //如果高度大于0，则表示该手机有虚拟导航栏
            Resources res = activity.getResources();
            int resourceId = res.getIdentifier("status_bar_height", "dimen", "android");
          ]]></description><category></category></item><item><title><![CDATA[安卓WebView中点击图片事件]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/106836740</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/106836740</guid><author>xiaoshuxgh</author><pubDate>Thu, 18 Jun 2020 15:51:56 +0800</pubDate><description><![CDATA[mWebviewMall.setWebViewClient(new WebViewClient() {//不跳转至浏览器，加载开始和完成监听


            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                  view.loadUrl(url);
                if (allImgURLS.contain...]]></description><category></category></item><item><title><![CDATA[安卓用七牛云做直播]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/106634526</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/106634526</guid><author>xiaoshuxgh</author><pubDate>Tue, 09 Jun 2020 10:10:52 +0800</pubDate><description><![CDATA[上图为拉流页面（即看直播页面）

最近刚刚做完直播项目，来总结一下，直播使用七牛云直播实现的，直播和看直播写了两个Activiy，公用同一个Fragment，大致结构是这样的。下面先来说主播页面（前期引入sak省略）：


  CameraPreviewFrameView cameraPreviewFrameView =
                (CameraPreviewFrameView) findViewById(R.id.cameraPreview_surfaceView);
     ..]]></description><category></category></item><item><title><![CDATA[Android软键盘遮挡输入框问题]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/106618844</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/106618844</guid><author>xiaoshuxgh</author><pubDate>Mon, 08 Jun 2020 14:41:05 +0800</pubDate><description><![CDATA[最近在做直播项目，遇到一个问题就是软键盘弹起时会遮挡一部分的输入框，在网上找了很多办法都不能解决，最后还是dubug发现自己代码中一个获取屏幕可见高度时取值问题，改了之后变好了，下面上实现代码：


public class SoftKeyBoardListener {
    private View rootView;//activity的根视图
    int rootViewVisibleHeight;//纪录根视图的显示高度
    private OnSoftKeyBoardChangeList]]></description><category></category></item><item><title><![CDATA[RecycleView在修改数据后调用 adminAdapter.notifyDataSetChanged()页面不刷新]]></title><link>https://blog.csdn.net/xiaoshuxgh/article/details/106116397</link><guid>https://blog.csdn.net/xiaoshuxgh/article/details/106116397</guid><author>xiaoshuxgh</author><pubDate>Thu, 14 May 2020 11:33:27 +0800</pubDate><description><![CDATA[在修改登录退出页面时，账号被踢掉了，修改数据，发现RecycleView调用的notifyDataSetChanged()不起作用，

改变数据源时一点要改变adapter真正的数据源

so：重新setAdapter一下，之后再调用notifyDataSetChanged()就可以刷新了。


...]]></description><category></category></item></channel></rss>