<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[github_38163856的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/github_38163856</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; github_38163856]]></copyright><item><title><![CDATA[Listview的Headerview中有Edittext焦点处理]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/128028623</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/128028623</guid><author>github_38163856</author><pubDate>Thu, 24 Nov 2022 22:58:12 +0800</pubDate><description><![CDATA[在headerview这一类view中如果有edittext，在点击edittext时可能会出现focus死循环问题，这时需要在listivew上设置item中focus的传递和消费规则，]]></description><category></category></item><item><title><![CDATA[Android 微信原生登录，支付，以及一些奇奇怪怪的问题。（wxApi.isWXAppInstalled 一直返回false）]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/125883732</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/125883732</guid><author>github_38163856</author><pubDate>Wed, 20 Jul 2022 00:23:09 +0800</pubDate><description><![CDATA[isWXAppInstalled()一直返回false。]]></description><category></category></item><item><title><![CDATA[Android 桌面图标长按快捷菜单]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/125524056</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/125524056</guid><author>github_38163856</author><pubDate>Wed, 29 Jun 2022 16:16:18 +0800</pubDate><description><![CDATA[Android 桌面快捷入口]]></description><category></category></item><item><title><![CDATA[ImageView自适应大小]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/123920678</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/123920678</guid><author>github_38163856</author><pubDate>Sat, 02 Apr 2022 15:05:02 +0800</pubDate><description><![CDATA[SumeFitImage
public class SumeFitImage extends AppCompatImageView {

    private int width;
    private int height;

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

    public SumeFitImage(Context context, AttributeSet attrs) {
  ]]></description><category></category></item><item><title><![CDATA[TextView自适应大小]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/123907383</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/123907383</guid><author>github_38163856</author><pubDate>Fri, 01 Apr 2022 20:48:16 +0800</pubDate><description><![CDATA[AutoFitTextView
public class AutoFitTextView extends AppCompatTextView {
    private static final String TAG = "CustomFitViewTextView";
    //控件的宽
    private int mViewWidth;
    //可以设置的最小文字
    private float mMinTextSize = 6;

    public AutoFitTextView(C]]></description><category></category></item><item><title><![CDATA[Android 支付宝支付SDK接入]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/123624829</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/123624829</guid><author>github_38163856</author><pubDate>Sun, 20 Mar 2022 23:46:57 +0800</pubDate><description><![CDATA[Android对接SDK不需要任何参数，只需要依赖官方aar即可

导入支付宝 SDK

在主项目的 build.gradle 中，添加下面的内容：

allprojects {
    repositories {
        // 添加下面的内容
        mavenCentral()
        // ... jcenter() 等其他仓库
    }
}


在您 App Module 的 build.gradle 中，添加下面的内容，将支付宝 SDK 作为项目依赖：

depend.]]></description><category></category></item><item><title><![CDATA[安卓 协调者布局]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/122925148</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/122925148</guid><author>github_38163856</author><pubDate>Mon, 14 Feb 2022 15:20:54 +0800</pubDate><description><![CDATA[&lt;androidx.coordinatorlayout.widget.CoordinatorLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_marginTop="10dp"
        app:layout_constraintBottom_toBottomOf="parent"&gt;

        &lt;com.go.]]></description><category></category></item><item><title><![CDATA[Edit text 可点击不可以输入]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/122883836</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/122883836</guid><author>github_38163856</author><pubDate>Fri, 11 Feb 2022 16:39:16 +0800</pubDate><description><![CDATA[editText.etInputContent.setCursorVisible(false);
           editText.etInputContent.setFocusable(false);
            editText.etInputContent.setFocusableInTouchMode(false);


]]></description><category></category></item><item><title><![CDATA[城市三级列表数据]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/122842877</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/122842877</guid><author>github_38163856</author><pubDate>Wed, 09 Feb 2022 15:22:18 +0800</pubDate><description><![CDATA[[
    {
        "name": "北京市",
        "city": [
            {
                "name": "北京市",
                "area": [
                    "东城区",
                    "西城区",
                    "崇文区",
                    "宣武区",
                    "朝阳区",
 ]]></description><category></category></item><item><title><![CDATA[安卓 StorageUtils]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/122541678</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/122541678</guid><author>github_38163856</author><pubDate>Mon, 17 Jan 2022 15:52:53 +0800</pubDate><description><![CDATA[public class StorageUtils {

    public static String DIRECTORY_MUSIC = "Music";
    public static String DIRECTORY_ALARMS = "Alarms";
    public static String DIRECTORY_NOTIFICATIONS = "Notifications";
    public static String DIRECTORY_PICTURES = "Pictur]]></description><category></category></item><item><title><![CDATA[Unable to load class ‘javax.xml.bind.JAXBException‘]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/121532820</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/121532820</guid><author>github_38163856</author><pubDate>Thu, 25 Nov 2021 10:54:47 +0800</pubDate><description><![CDATA[Android Studio 在到入其他项目是发生报错，大概率是jdk版本有问题




将jdk换成当前使用的版本即可


]]></description><category></category></item><item><title><![CDATA[Android 设备间TCP通讯]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/120181239</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/120181239</guid><author>github_38163856</author><pubDate>Wed, 08 Sep 2021 15:38:22 +0800</pubDate><description><![CDATA[TcpService

初始化ServerSocket

    class SocketAcceptThread extends Thread{
        @Override
        public void run() {
            try {
                mServerSocket = new ServerSocket(5566);
                mSocket = mServerSocket.accept();
            ]]></description><category></category></item><item><title><![CDATA[Android 保存View到图库 （这种方法避免了一次保存多张的问题）]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/117360447</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/117360447</guid><author>github_38163856</author><pubDate>Fri, 28 May 2021 13:45:25 +0800</pubDate><description><![CDATA[开启权限  可以多种形式

    @SuppressLint("CheckResult")
    private void saveImageLocation(View view) {

        new RxPermissions(getActivity()).request(Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE)
                .subscr.]]></description><category></category></item><item><title><![CDATA[记录安卓开发过程中   一些控件的使用方法]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/117221706</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/117221706</guid><author>github_38163856</author><pubDate>Mon, 24 May 2021 13:25:24 +0800</pubDate><description><![CDATA[CheckBox 自定义背景图片

       &lt;CheckBox
            android:id="@+id/iv_check"
            android:layout_width="20dp"
            android:layout_height="20dp"
            android:gravity="center"
            android:button="@drawable/check_box"/&gt;

     .]]></description><category></category></item><item><title><![CDATA[Android 应用内更新 并且通知更新下载进度(通知栏兼容 Android 8.0)]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/105769174</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/105769174</guid><author>github_38163856</author><pubDate>Sun, 26 Apr 2020 15:06:16 +0800</pubDate><description><![CDATA[安卓8.0之后 原来的Notification 有所变动 已不满足需求
1. 首先增加了 NotificationChannel 属性 需要对其进行相关配置
    private static void createNotification(NotificationManager notificationManager) {
        if (Build.VERSION.SDK_INT &...]]></description><category></category></item><item><title><![CDATA[## Android   适配国际化多语言开发  一键生成插件]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/105364477</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/105364477</guid><author>github_38163856</author><pubDate>Tue, 07 Apr 2020 14:54:43 +0800</pubDate><description><![CDATA[一：插件名称 AndroidLocalize
直接搜索下载下载成功后例行重启

二：strings.xml   选中  右键

三： 选择需要的国家语言  确定

四： 大功告成  它不仅会帮你生成相关的文件夹 还带了基础的翻译  当然翻译是否准备要根据实际情况而定了。


...]]></description><category></category></item><item><title><![CDATA[完美监听软键盘弹出收起  不受windowSoftInputMode和Activity状态的影响]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/82014474</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/82014474</guid><author>github_38163856</author><pubDate>Fri, 24 Aug 2018 11:03:10 +0800</pubDate><description><![CDATA[
  此方法通过获取跟View的高度，然后对高度变化幅度进行监听，判断软键盘的显隐状态




public class SoftKeyBoardListener {
    private View rootView;//activity的根视图
    int rootViewVisibleHeight;//纪录根视图的显示高度
    private OnSoftKeyBoardChange...]]></description><category></category></item><item><title><![CDATA[RecycleView的layoutManager.setStackFromEnd(true);layoutManager.setReverseLayout(true);]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/80937257</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/80937257</guid><author>github_38163856</author><pubDate>Fri, 06 Jul 2018 10:29:26 +0800</pubDate><description><![CDATA[1.使用


  RecycleView中item从上到下依次添加，并且第一个添加的item始终在最上面，新添加的item需要滑下去才能看到。




layoutManager =new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false)



2.使用


  layoutManager =new Li...]]></description><category></category></item><item><title><![CDATA[android 接入 reactnative 之Js调用原生方法]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/80321425</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/80321425</guid><author>github_38163856</author><pubDate>Tue, 15 May 2018 13:18:22 +0800</pubDate><description><![CDATA[
  最近项目中接入RN  其中最基本的一个问题就是处理返回事件问题  这里我们需要一个中间变量来帮我完成这个事件


新建一个类  继承RN的方法


public class ToastModule extends ReactContextBaseJavaModule {
    private static final String DURATION_SHORT_KEY = &quot;SHORT&quot;;...]]></description><category></category></item><item><title><![CDATA[安卓 让View追随你的手指移动、移动~]]></title><link>https://blog.youkuaiyun.com/github_38163856/article/details/79896550</link><guid>https://blog.youkuaiyun.com/github_38163856/article/details/79896550</guid><author>github_38163856</author><pubDate>Wed, 11 Apr 2018 14:48:08 +0800</pubDate><description><![CDATA[
  先来个图吧 
  
  
  大概的效果就是这样，代码就一个监听事件，把需要移动的View添加这个监听事件就可以了，具体的参数要根据自己的项目情况而定。


    private View.OnTouchListener shopCarSettleTouch = new View.OnTouchListener() {
        int rawY1, rawX1, rawY, raw...]]></description><category></category></item></channel></rss>