<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[qq_35698774的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/qq_35698774</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_35698774]]></copyright><item><title><![CDATA[android PreferenceManager过时]]></title><link>https://blog.csdn.net/qq_35698774/article/details/132433738</link><guid>https://blog.csdn.net/qq_35698774/article/details/132433738</guid><author>qq_35698774</author><pubDate>Tue, 22 Aug 2023 18:35:28 +0800</pubDate><description><![CDATA[解决[deprecation] android.preference�е�PreferenceManager�ѹ�ʱ import android.preference.PreferenceManage。]]></description><category></category></item><item><title><![CDATA[ScrollerCompat过时]]></title><link>https://blog.csdn.net/qq_35698774/article/details/120161906</link><guid>https://blog.csdn.net/qq_35698774/article/details/120161906</guid><author>qq_35698774</author><pubDate>Tue, 07 Sep 2021 16:57:31 +0800</pubDate><description><![CDATA[[deprecation] androidx.core.widget中的ScrollerCompat已过时
import androidx.core.widget.ScrollerCompat;

官网给出的答案是：



使用OverScroller替换原有的ScrollerCompat


]]></description><category></category></item><item><title><![CDATA[警告: [deprecation] Resources中的getDrawable(int)已过时]]></title><link>https://blog.csdn.net/qq_35698774/article/details/118759812</link><guid>https://blog.csdn.net/qq_35698774/article/details/118759812</guid><author>qq_35698774</author><pubDate>Thu, 15 Jul 2021 15:12:07 +0800</pubDate><description><![CDATA[getResources().getDrawable(R.drawable.panel_divider)
ContextCompat.getDrawable(context,R.mipmap.panel_divider)


]]></description><category></category></item><item><title><![CDATA[警告: [deprecation] Resources中的getColor(int)已过时]]></title><link>https://blog.csdn.net/qq_35698774/article/details/118759481</link><guid>https://blog.csdn.net/qq_35698774/article/details/118759481</guid><author>qq_35698774</author><pubDate>Thu, 15 Jul 2021 14:53:51 +0800</pubDate><description><![CDATA[getResources().getColor(R.color.color102f74d)
 ContextCompat.getColor(activity,R.color.color102f74d)


]]></description><category></category></item><item><title><![CDATA[警告: [deprecation] View中的setBackgroundDrawable(Drawable)已过时]]></title><link>https://blog.csdn.net/qq_35698774/article/details/118759308</link><guid>https://blog.csdn.net/qq_35698774/article/details/118759308</guid><author>qq_35698774</author><pubDate>Thu, 15 Jul 2021 14:49:45 +0800</pubDate><description><![CDATA[view.setBackgroundResource(R.drawable.icon);
view.setBackground(ContextCompat.getDrawable(this, R.drawable.icon));


]]></description><category></category></item><item><title><![CDATA[Android和Unity互调]]></title><link>https://blog.csdn.net/qq_35698774/article/details/118406498</link><guid>https://blog.csdn.net/qq_35698774/article/details/118406498</guid><author>qq_35698774</author><pubDate>Fri, 02 Jul 2021 15:00:21 +0800</pubDate><description><![CDATA[1.工具

AndroidStudio：

    Android Gradle Plugin Version 3.5.2

    Gradle Version 5.4.1

Unity 3D:

    2018.4.30f1

2.流程 见下图

2.1 android 加载unity包

2.2 android 点击原生按钮调用unity方法，更新UnityUI


/**
     * // objectName: Unity 对象的名称
     * // methodN...]]></description><category></category></item><item><title><![CDATA[Screen position out of view frustum]]></title><link>https://blog.csdn.net/qq_35698774/article/details/117950096</link><guid>https://blog.csdn.net/qq_35698774/article/details/117950096</guid><author>qq_35698774</author><pubDate>Wed, 16 Jun 2021 10:35:38 +0800</pubDate><description><![CDATA[Screen position out of view frustum (screen pos 1155.000000, 650.000000, 5000.000000) (Camera rect 0 0 1155 650)
]]></description><category></category></item><item><title><![CDATA[unity 查看运行平台]]></title><link>https://blog.csdn.net/qq_35698774/article/details/117924028</link><guid>https://blog.csdn.net/qq_35698774/article/details/117924028</guid><author>qq_35698774</author><pubDate>Tue, 15 Jun 2021 14:35:18 +0800</pubDate><description><![CDATA[查看官方地址：https://docs.unity3d.com/Manual/PlatformDependentCompilation.html
]]></description><category></category></item><item><title><![CDATA[unity解析json 数据]]></title><link>https://blog.csdn.net/qq_35698774/article/details/117652097</link><guid>https://blog.csdn.net/qq_35698774/article/details/117652097</guid><author>qq_35698774</author><pubDate>Mon, 07 Jun 2021 10:55:02 +0800</pubDate><description><![CDATA[1.使用JsonUtility解析

JsonUtility是unity自带的解析json的工具。

具体使用创建一个解释数据的对象类


]]></description><category></category></item><item><title><![CDATA[Android Activity 伪弹框的基本使用]]></title><link>https://blog.csdn.net/qq_35698774/article/details/117438989</link><guid>https://blog.csdn.net/qq_35698774/article/details/117438989</guid><author>qq_35698774</author><pubDate>Tue, 01 Jun 2021 18:04:10 +0800</pubDate><description><![CDATA[Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
                                          at android.support.v7.app.AppCompatDelegateIm...]]></description><category></category></item><item><title><![CDATA[Unity 报空错]]></title><link>https://blog.csdn.net/qq_35698774/article/details/114128516</link><guid>https://blog.csdn.net/qq_35698774/article/details/114128516</guid><author>qq_35698774</author><pubDate>Fri, 26 Feb 2021 13:52:57 +0800</pubDate><description><![CDATA[unity 新建一个项目报错如下：



尝试过各种解决办法最后修改了 Scripting Runtime Version 的版本号，由.3NET 4X Equivalent 改为了 .NET 3.5 Equvalent(Deprecated).

路径：File-&gt;BuildSettings-&gt;Player Settings-&gt;Settings for android -&gt;Scripting Runtime Version


...]]></description><category></category></item><item><title><![CDATA[Unity Launch Error]]></title><link>https://blog.csdn.net/qq_35698774/article/details/114127997</link><guid>https://blog.csdn.net/qq_35698774/article/details/114127997</guid><author>qq_35698774</author><pubDate>Fri, 26 Feb 2021 13:41:59 +0800</pubDate><description><![CDATA[打开Unity Hub 创建新项目或者打开原有项目失败并弹出如下对话框

造成这个的原因我这里是和系统兼容性差造成的，右键“以管理员身份运行”就可以打开或者创建项目。

解决办法：右键 兼容性疑难问题解答 就可以可解决，希望可以帮到你。


...]]></description><category></category></item><item><title><![CDATA[LineRenderer的基本使用]]></title><link>https://blog.csdn.net/qq_35698774/article/details/113888160</link><guid>https://blog.csdn.net/qq_35698774/article/details/113888160</guid><author>qq_35698774</author><pubDate>Sat, 20 Feb 2021 17:50:48 +0800</pubDate><description><![CDATA[LineRenderer是unity3D中的画线工具

官方文档：https://docs.unity.cn/cn/current/ScriptReference/LineRenderer.html

基本使用

前提：新建一个Create Empty

     Inspector中点击 Add Component 找到 Line Reanderer

因为业务原因我是通过代码来控制程序的

创建一个脚本并挂载到新建的“Create Empty”中



//添加LineRenderer组件...]]></description><category></category></item><item><title><![CDATA[unity 3D 实现场景旋转、平移、缩放]]></title><link>https://blog.csdn.net/qq_35698774/article/details/113887449</link><guid>https://blog.csdn.net/qq_35698774/article/details/113887449</guid><author>qq_35698774</author><pubDate>Sat, 20 Feb 2021 17:24:15 +0800</pubDate><description><![CDATA[前提将脚本挂载到Camera上

拖拽的原理 ：点击左键记录坐标P1，滑动记录当前坐标P2

           计算P1、P2的坐标差dx、dy，

          根据dx和dy正负确定移动方向

缩放原理：根据滚轮控制摄像机视野和摄像机的正交投影

旋转原理：鼠标右键不太好控制，于是指定了键盘

        就是直接给旋转赋值





完整代码如下：

using System.Collections;
using Syst...]]></description><category></category></item><item><title><![CDATA[Plugin “GsonFormat“ is incompatible]]></title><link>https://blog.csdn.net/qq_35698774/article/details/111191091</link><guid>https://blog.csdn.net/qq_35698774/article/details/111191091</guid><author>qq_35698774</author><pubDate>Tue, 15 Dec 2020 09:35:25 +0800</pubDate><description><![CDATA[升级androidstudio到4.2版本后突然报错，如下：

 Plugin Error
  Plugin "GsonFormat" is incompatible (supported only in IntelliJ IDEA).
  Plugin "Android Parcelable code generator" is incompatible (supported only in IntelliJ IDEA).





原因是现在已经不再支持了，但是我们可以使...]]></description><category></category></item><item><title><![CDATA[TextInputLayout的基本使用]]></title><link>https://blog.csdn.net/qq_35698774/article/details/110497852</link><guid>https://blog.csdn.net/qq_35698774/article/details/110497852</guid><author>qq_35698774</author><pubDate>Thu, 03 Dec 2020 09:11:34 +0800</pubDate><description><![CDATA[TextInputLayout属于EditText的一个浮动标签，属于Material Design 设计规范中的，效果可以看下面的动图


账号：只是普通EditText

密码：用TextInputLayout包裹的EditText



使用的话TextInputLayout包裹一个EditText就可以。当然TextInputLayout也只能包裹EditText：


&lt;android.support.design.widget.TextInputLayout
   android:id=.]]></description><category></category></item><item><title><![CDATA[fragment生命周期]]></title><link>https://blog.csdn.net/qq_35698774/article/details/110402305</link><guid>https://blog.csdn.net/qq_35698774/article/details/110402305</guid><author>qq_35698774</author><pubDate>Mon, 30 Nov 2020 20:04:55 +0800</pubDate><description><![CDATA[fragment的生命周期



图片来自：https://developer.android.google.cn/guide/components/fragments

通常，至少应实现以下生命周期方法：

oncreat():系统会在创建片段时调用此方法。当片段经历暂停或停止状态继而恢复后，如果您希望保留此片段的基本组件，则应在您的实现中将其初始化。

onCreatdView():系统会在片段首次绘制其界面时调用此方法。如要为您的片段绘制界面，您从此方法中返回的View必须是片段布局的根视图。如果..]]></description><category></category></item><item><title><![CDATA[单例模式]]></title><link>https://blog.csdn.net/qq_35698774/article/details/110233033</link><guid>https://blog.csdn.net/qq_35698774/article/details/110233033</guid><author>qq_35698774</author><pubDate>Fri, 27 Nov 2020 15:29:47 +0800</pubDate><description><![CDATA[package com.wanji.v2x20200806.ui.activity.main;

/**
 * Created by wangjisen on 2020/11/27.
 */

public class Singleton {
    private static Singleton instance;

    public Singleton() {
    }


    /**
     * 懒汉式  线程不安全 无法处理多线程
     * &lt;p&gt;
   ...]]></description><category></category></item><item><title><![CDATA[SurfaceView导致DrawerLayout显示不全]]></title><link>https://blog.csdn.net/qq_35698774/article/details/109155584</link><guid>https://blog.csdn.net/qq_35698774/article/details/109155584</guid><author>qq_35698774</author><pubDate>Mon, 19 Oct 2020 10:16:23 +0800</pubDate><description><![CDATA[我们在华为的pad算上使用DrawerLayout限制不全，查看发现页面底部使用了SurfaceView，最终的解决办法是：


drawerlayout.setDrawerListener(new DrawerLayout.SimpleDrawerListener() {
    @Override
    public void onDrawerSlide(View drawerView, float slideOffset) {
        // TODO Auto-generat...]]></description><category></category></item><item><title><![CDATA[getResources.getColor过时]]></title><link>https://blog.csdn.net/qq_35698774/article/details/108755179</link><guid>https://blog.csdn.net/qq_35698774/article/details/108755179</guid><author>qq_35698774</author><pubDate>Wed, 23 Sep 2020 16:04:08 +0800</pubDate><description><![CDATA[在android 23（6.0）及以上getResources.getColor（R.color.colorId）API过时时，那么它的替代方法为ContextCompat.getColor(context,R.color.colorId);可以使用最新的V4兼容包中的ContextCompat，这样也可以兼容低版本的平台
...]]></description><category></category></item></channel></rss>