android软键盘遇到的问题

android:windowSoftInputMode属性

 

1,stateVisible:软键盘通常是可见的,想让打开activity时开启软键盘

2,stateHidden:用户选择activity时,软键盘总是被隐藏

 

3,adjustResize:该Activity总是调整屏幕的大小以便留出软键盘的空间  (ScrollView)

4,adjustPan:当前窗口的内容将自动移动以便当前焦点从不被键盘覆盖和用户能总是看到输入内容的部分

设置android:windowSoftInputMode="adjustResize|stateVisible"   打开activity键盘弹出,并且要是和输入框在同一RelativeLayout下的view会被顶起会让屏幕整体上移

 

键盘弹出监听

 

package com.xcm91.xiaocaimi.util;

import android.app.Activity;
import android.graphics.Rect;
import android.view.View;
import android.view.ViewTreeObserver;

import com.xcm91.xiaocaimi.others.utils.LogManager;

/**
 * Created by lhy on 2018/11/8.
 */
public class SoftKeyBoardListener {

    private View rootView;//activity的根视图
    private int rootViewVisibleHeight;//纪录根视图的显示高度
    private OnSoftKeyBoardChangeListener onSoftKeyBoardChangeListener;

    public SoftKeyBoardListener(Activity activity) {
        //获取activity的根视图
        rootView = activity.getWindow().getDecorView();

        //监听视图树中全局布局发生改变或者视图树中的某个视图的可视状态发生改变
        rootView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
            @Override
            public void onGlobalLayout() {
                //获取当前根视图在屏幕上显示的大小
                Rect r = new Rect();
                rootView.getWindowVisibleDisplayFrame(r);

                int visibleHeight = r.height();
              LogManager.i(""+visibleHeight);
                if (rootViewVisibleHeight == 0) {
                    rootViewVisibleHeight = visibleHeight;
                    return;
                }

                //根视图显示高度没有变化,可以看作软键盘显示/隐藏状态没有改变
                if (rootViewVisibleHeight == visibleHeight) {
                    return;
                }

                //根视图显示高度变小超过200,可以看作软键盘显示了
                if (rootViewVisibleHeight - visibleHeight > 200) {
                    if (onSoftKeyBoardChangeListener != null) {
                        onSoftKeyBoardChangeListener.keyBoardShow(rootViewVisibleHeight - visibleHeight);
                    }
                    rootViewVisibleHeight = visibleHeight;
                    return;
                }

                //根视图显示高度变大超过200,可以看作软键盘隐藏了
                if (visibleHeight - rootViewVisibleHeight > 200) {
                    if (onSoftKeyBoardChangeListener != null) {
                        onSoftKeyBoardChangeListener.keyBoardHide(visibleHeight - rootViewVisibleHeight);
                    }
                    rootViewVisibleHeight = visibleHeight;
                    return;
                }

            }
        });
    }

    private void setOnSoftKeyBoardChangeListener(OnSoftKeyBoardChangeListener onSoftKeyBoardChangeListener) {
        this.onSoftKeyBoardChangeListener = onSoftKeyBoardChangeListener;
    }

    public interface OnSoftKeyBoardChangeListener {
        void keyBoardShow(int height);

        void keyBoardHide(int height);
    }

    public static void setListener(Activity activity, OnSoftKeyBoardChangeListener onSoftKeyBoardChangeListener) {
        SoftKeyBoardListener softKeyBoardListener = new SoftKeyBoardListener(activity);
        softKeyBoardListener.setOnSoftKeyBoardChangeListener(onSoftKeyBoardChangeListener);
    }



}

 ScrollView滑动到底部

 SoftKeyBoardListener.setListener(this, new SoftKeyBoardListener.OnSoftKeyBoardChangeListener() {
            @Override
            public void keyBoardShow(int height) {
                if (sv_main != null) {
                    sv_main.postDelayed(new Runnable() {
                        @Override
                        public void run() {
                            sv_main.smoothScrollTo(0, sv_main.getChildAt(0).getHeight());
                        }
                    }, 300);
                }
            }

            @Override
            public void keyBoardHide(int height) {

            }
        });

 

 

在开始进入页面时不弹出键盘

方法一:在包含EditText外层布局上添加

android:focusable="true"
android:focusableInTouchMode="true"

抢在EditText获取焦点,即可

原理 view touch source:

[java] view plain copy

  1. public boolean onTouchEvent(MotionEvent event) {  
  2.     ...  
  3.     if (((viewFlags & CLICKABLE) == CLICKABLE ||   
  4.         (viewFlags & LONG_CLICKABLE) == LONG_CLICKABLE)) {  
  5.         ...  
  6.         if (isFocusable() && isFocusableInTouchMode()   && !isFocused()) {   
  7.                focusTaken = requestFocus();  
  8.         }  
  9.         ...  
  10.     }  
  11.     ...  
  12. }  

即一个子view想要获取焦点必须满足clickable, focusable, focusableInTouchMode 属性为true,缺一不可.

 

方法二:在onResume中加入这行代码

 

[java] view plain copy

  1. getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE |  
  2.                 WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);  

 

 

软键盘出现把原来的布局底部拦布局给顶上去的方法解决办法:

Android:windowSoftInputMode="adjustPan|stateHidden" 


 

1,绑定软键盘到EditText:

 

[java] view plain copy

  1. edit.setFocusable(true);  
  2.             edit.setFocusableInTouchMode(true);  
  3.             edit.requestFocus();  
  4.             InputMethodManager inputManager = (InputMethodManager)edit.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);  
  5.             inputManager.showSoftInput(edit, 0);  

 

 

2,点击空白区域去除EditText软键盘显示:

重写Activity dispatchTouch

 

[java] view plain copy

  1. @Override  
  2. public boolean dispatchTouchEvent(MotionEvent event) {  
  3.     if (event.getAction() == MotionEvent.ACTION_DOWN) {  
  4.         View v = getCurrentFocus();  
  5.         if ( v instanceof EditText) {  
  6.             Rect outRect = new Rect();  
  7.             v.getGlobalVisibleRect(outRect);  
  8.             if (!outRect.contains((int)event.getRawX(), (int)event.getRawY())) {  
  9.                 v.clearFocus();  
  10.                 InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);  
  11.                 imm.hideSoftInputFromWindow(v.getWindowToken(), 0);  
  12.             }  
  13.         }  
  14.     }  
  15.     return super.dispatchTouchEvent( event );  
  16. }  

 

 

 

 

 

EditText始终不弹出软件键盘

EditText edit=(EditText)findViewById(R.id.edit); edit.setInputType(InputType.TYPE_NULL);

还可以

 

[java] view plain copy

  1. InputMethodManager imm = (InputMethodManager)v.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);     
  2.   
  3.   if(imm.isActive()){   //这里可以判断也可以不判断  
  4.   
  5.     imm.hideSoftInputFromWindow(v.getApplicationWindowToken(), 0 );     
  6.   
  7.   }     

 

 

 

 

 

 

 

1,在设置软键盘弹出属性界面加载后,软键盘不能弹出,不能弹出软键盘的主要原因是Android程序未将屏幕绘制完成,所以延迟一定时间,弹出软键盘。

方法一:

 

[java] view plain copy

  1. private Handler hander=new Handler(){  
  2.         public void handleMessage(android.os.Message msg) {  
  3.             edit.setFocusable(true);  
  4.             edit.setFocusableInTouchMode(true);  
  5.             edit.requestFocus();  
  6.             InputMethodManager inputManager = (InputMethodManager)edit.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);  
  7.             inputManager.showSoftInput(edit, 0);  
  8.         };  
  9.     };  

 

[java] view plain copy

  1. @Override  
  2.         public void onWindowFocusChanged(boolean hasWindowFocus) {  
  3.             if(visible){      
  4.                 hander.sendEmptyMessageDelayed(01000);  
  5.             }  
  6.         }  

方法二:

 

[java] view plain copy

  1. Timer timer = new Timer();  
  2. timer.schedule(new TimerTask() {  
  3.     @Override  
  4.     public void run() {  
  5.         InputMethodManager m = (InputMethodManager) editText.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);  
  6.         m.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);  
  7.     }  
  8. }, 300);  


<activity android:windowSoftInputMode="stateVisible|adjustResize" . . . >
 该Activity主窗口总是被调整屏幕的大小以便留出软键盘的空间

 

 

 

 

软键盘打开,关闭监控

 

[java] view plain copy

  1. import android.app.Activity;  
  2. import android.os.Build;  
  3. import android.view.View;  
  4. import android.view.ViewTreeObserver;  
  5. import android.view.Window;  
  6. import android.view.WindowManager;  
  7.   
  8. import java.lang.ref.WeakReference;  
  9.   
  10. /** 
  11.  * Created by froger_mcs on 21/03/16. 
  12.  */  
  13. public class KeyboardWatcher {  
  14.   
  15.     private WeakReference<Activity> activityRef;  
  16.     private WeakReference<View> rootViewRef;  
  17.     private WeakReference<OnKeyboardToggleListener> onKeyboardToggleListenerRef;  
  18.     private ViewTreeObserver.OnGlobalLayoutListener viewTreeObserverListener;  
  19.   
  20.     public KeyboardWatcher(Activity activity) {  
  21.         activityRef = new WeakReference<>(activity);  
  22.         initialize();  
  23.     }  
  24.   
  25.     public void setListener(OnKeyboardToggleListener onKeyboardToggleListener) {  
  26.         onKeyboardToggleListenerRef = new WeakReference<>(onKeyboardToggleListener);  
  27.     }  
  28.   
  29.     public void destroy() {  
  30.         if (rootViewRef.get() != null)  
  31.             if (Build.VERSION.SDK_INT >= 16) {  
  32.                 rootViewRef.get().getViewTreeObserver().removeOnGlobalLayoutListener(viewTreeObserverListener);  
  33.             } else {  
  34.                 rootViewRef.get().getViewTreeObserver().removeGlobalOnLayoutListener(viewTreeObserverListener);  
  35.             }  
  36.     }  
  37.   
  38.     private void initialize() {  
  39.         if (hasAdjustResizeInputMode()) {  
  40.             viewTreeObserverListener = new GlobalLayoutListener();  
  41.             rootViewRef = new WeakReference<>(activityRef.get().findViewById(Window.ID_ANDROID_CONTENT));  
  42.             rootViewRef.get().getViewTreeObserver().addOnGlobalLayoutListener(viewTreeObserverListener);  
  43.         } else {  
  44.             throw new IllegalArgumentException(String.format("Activity %s should have windowSoftInputMode=\"adjustResize\"" +  
  45.                     "to make KeyboardWatcher working. You can set it in AndroidManifest.xml", activityRef.get().getClass().getSimpleName()));  
  46.         }  
  47.     }  
  48.   
  49.     private boolean hasAdjustResizeInputMode() {  
  50.         return (activityRef.get().getWindow().getAttributes().softInputMode & WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE) != 0;  
  51.     }  
  52.   
  53.     private class GlobalLayoutListener implements ViewTreeObserver.OnGlobalLayoutListener {  
  54.         int initialValue;  
  55.         boolean hasSentInitialAction;  
  56.         boolean isKeyboardShown;  
  57.   
  58.         @Override  
  59.         public void onGlobalLayout() {  
  60.             if (initialValue == 0) {  
  61.                 initialValue = rootViewRef.get().getHeight();  
  62.             } else {  
  63.                 if (initialValue > rootViewRef.get().getHeight()) {  
  64.                     if (onKeyboardToggleListenerRef.get() != null) {  
  65.                         if (!hasSentInitialAction || !isKeyboardShown) {  
  66.                             isKeyboardShown = true;  
  67.                             onKeyboardToggleListenerRef.get().onKeyboardShown(initialValue - rootViewRef.get().getHeight());  
  68.                         }  
  69.                     }  
  70.                 } else {  
  71.                     if (!hasSentInitialAction || isKeyboardShown) {  
  72.                         isKeyboardShown = false;  
  73.                         rootViewRef.get().post(new Runnable() {  
  74.                             @Override  
  75.                             public void run() {  
  76.                                 if (onKeyboardToggleListenerRef.get() != null) {  
  77.                                     onKeyboardToggleListenerRef.get().onKeyboardClosed();  
  78.                                 }  
  79.                             }  
  80.                         });  
  81.                     }  
  82.                 }  
  83.                 hasSentInitialAction = true;  
  84.             }  
  85.         }  
  86.     }  
  87.   
  88.     public interface OnKeyboardToggleListener {  
  89.         void onKeyboardShown(int keyboardSize);  
  90.   
  91.         void onKeyboardClosed();  
  92.     }  
  93. }  


使用监控:

 

<activity
    android:name=".MainActivity"
    android:windowSoftInputMode="adjustResize" />
    
   keyboardWatcher = new KeyboardWatcher(this);
  keyboardWatcher.setListener(this);

 

1,绑定软键盘到EditText:

 

[java] view plain copy

  1. edit.setFocusable(true);  
  2.             edit.setFocusableInTouchMode(true);  
  3.             edit.requestFocus();  
  4.             InputMethodManager inputManager = (InputMethodManager)edit.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);  
  5.             inputManager.showSoftInput(edit, 0);  

 

 

2,点击空白区域去除EditText软键盘显示:

重写Activity dispatchTouch

 

[java] view plain copy

  1. @Override  
  2. public boolean dispatchTouchEvent(MotionEvent event) {  
  3.     if (event.getAction() == MotionEvent.ACTION_DOWN) {  
  4.         View v = getCurrentFocus();  
  5.         if ( v instanceof EditText) {  
  6.             Rect outRect = new Rect();  
  7.             v.getGlobalVisibleRect(outRect);  
  8.             if (!outRect.contains((int)event.getRawX(), (int)event.getRawY())) {  
  9.                 v.clearFocus();  
  10.                 InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);  
  11.                 imm.hideSoftInputFromWindow(v.getWindowToken(), 0);  
  12.             }  
  13.         }  
  14.     }  
  15.     return super.dispatchTouchEvent( event );  
  16. }  

 

 

 

 

 

EditText始终不弹出软件键盘

EditText edit=(EditText)findViewById(R.id.edit); edit.setInputType(InputType.TYPE_NULL);

还可以

 

[java] view plain copy

  1. InputMethodManager imm = (InputMethodManager)v.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);     
  2.   
  3.   if(imm.isActive()){   //这里可以判断也可以不判断  
  4.   
  5.     imm.hideSoftInputFromWindow(v.getApplicationWindowToken(), 0 );     
  6.   
  7.   }     

 

 

 

 

 

 

 

1,在设置软键盘弹出属性界面加载后,软键盘不能弹出,不能弹出软键盘的主要原因是Android程序未将屏幕绘制完成,所以延迟一定时间,弹出软键盘。

方法一:

 

[java] view plain copy

  1. private Handler hander=new Handler(){  
  2.         public void handleMessage(android.os.Message msg) {  
  3.             edit.setFocusable(true);  
  4.             edit.setFocusableInTouchMode(true);  
  5.             edit.requestFocus();  
  6.             InputMethodManager inputManager = (InputMethodManager)edit.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);  
  7.             inputManager.showSoftInput(edit, 0);  
  8.         };  
  9.     };  

 

[java] view plain copy

  1. @Override  
  2.         public void onWindowFocusChanged(boolean hasWindowFocus) {  
  3.             if(visible){      
  4.                 hander.sendEmptyMessageDelayed(01000);  
  5.             }  
  6.         }  

方法二:

 

[java] view plain copy

  1. Timer timer = new Timer();  
  2. timer.schedule(new TimerTask() {  
  3.     @Override  
  4.     public void run() {  
  5.         InputMethodManager m = (InputMethodManager) editText.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);  
  6.         m.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);  
  7.     }  
  8. }, 300);  


<activity android:windowSoftInputMode="stateVisible|adjustResize" . . . >
 该Activity主窗口总是被调整屏幕的大小以便留出软键盘的空间

 

 

 

 

软键盘打开,关闭监控:来源girhub:

 

[java] view plain copy

  1. import android.app.Activity;  
  2. import android.os.Build;  
  3. import android.view.View;  
  4. import android.view.ViewTreeObserver;  
  5. import android.view.Window;  
  6. import android.view.WindowManager;  
  7.   
  8. import java.lang.ref.WeakReference;  
  9.   
  10. /** 
  11.  * Created by froger_mcs on 21/03/16. 
  12.  */  
  13. public class KeyboardWatcher {  
  14.   
  15.     private WeakReference<Activity> activityRef;  
  16.     private WeakReference<View> rootViewRef;  
  17.     private WeakReference<OnKeyboardToggleListener> onKeyboardToggleListenerRef;  
  18.     private ViewTreeObserver.OnGlobalLayoutListener viewTreeObserverListener;  
  19.   
  20.     public KeyboardWatcher(Activity activity) {  
  21.         activityRef = new WeakReference<>(activity);  
  22.         initialize();  
  23.     }  
  24.   
  25.     public void setListener(OnKeyboardToggleListener onKeyboardToggleListener) {  
  26.         onKeyboardToggleListenerRef = new WeakReference<>(onKeyboardToggleListener);  
  27.     }  
  28.   
  29.     public void destroy() {  
  30.         if (rootViewRef.get() != null)  
  31.             if (Build.VERSION.SDK_INT >= 16) {  
  32.                 rootViewRef.get().getViewTreeObserver().removeOnGlobalLayoutListener(viewTreeObserverListener);  
  33.             } else {  
  34.                 rootViewRef.get().getViewTreeObserver().removeGlobalOnLayoutListener(viewTreeObserverListener);  
  35.             }  
  36.     }  
  37.   
  38.     private void initialize() {  
  39.         if (hasAdjustResizeInputMode()) {  
  40.             viewTreeObserverListener = new GlobalLayoutListener();  
  41.             rootViewRef = new WeakReference<>(activityRef.get().findViewById(Window.ID_ANDROID_CONTENT));  
  42.             rootViewRef.get().getViewTreeObserver().addOnGlobalLayoutListener(viewTreeObserverListener);  
  43.         } else {  
  44.             throw new IllegalArgumentException(String.format("Activity %s should have windowSoftInputMode=\"adjustResize\"" +  
  45.                     "to make KeyboardWatcher working. You can set it in AndroidManifest.xml", activityRef.get().getClass().getSimpleName()));  
  46.         }  
  47.     }  
  48.   
  49.     private boolean hasAdjustResizeInputMode() {  
  50.         return (activityRef.get().getWindow().getAttributes().softInputMode & WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE) != 0;  
  51.     }  
  52.   
  53.     private class GlobalLayoutListener implements ViewTreeObserver.OnGlobalLayoutListener {  
  54.         int initialValue;  
  55.         boolean hasSentInitialAction;  
  56.         boolean isKeyboardShown;  
  57.   
  58.         @Override  
  59.         public void onGlobalLayout() {  
  60.             if (initialValue == 0) {  
  61.                 initialValue = rootViewRef.get().getHeight();  
  62.             } else {  
  63.                 if (initialValue > rootViewRef.get().getHeight()) {  
  64.                     if (onKeyboardToggleListenerRef.get() != null) {  
  65.                         if (!hasSentInitialAction || !isKeyboardShown) {  
  66.                             isKeyboardShown = true;  
  67.                             onKeyboardToggleListenerRef.get().onKeyboardShown(initialValue - rootViewRef.get().getHeight());  
  68.                         }  
  69.                     }  
  70.                 } else {  
  71.                     if (!hasSentInitialAction || isKeyboardShown) {  
  72.                         isKeyboardShown = false;  
  73.                         rootViewRef.get().post(new Runnable() {  
  74.                             @Override  
  75.                             public void run() {  
  76.                                 if (onKeyboardToggleListenerRef.get() != null) {  
  77.                                     onKeyboardToggleListenerRef.get().onKeyboardClosed();  
  78.                                 }  
  79.                             }  
  80.                         });  
  81.                     }  
  82.                 }  
  83.                 hasSentInitialAction = true;  
  84.             }  
  85.         }  
  86.     }  
  87.   
  88.     public interface OnKeyboardToggleListener {  
  89.         void onKeyboardShown(int keyboardSize);  
  90.   
  91.         void onKeyboardClosed();  
  92.     }  
  93. }  


使用监控:

 

<activity
    android:name=".MainActivity"
    android:windowSoftInputMode="adjustResize" />
    
   keyboardWatcher = new KeyboardWatcher(this);
  keyboardWatcher.setListener(this);

 

 

动态关闭软键盘

 

有时希望根据条件动态关闭软键盘,我们可以使用InputMethodManager类,按照下面的方法来实现: 
方法一:

InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); //得到InputMethodManager的实例
if (imm.isActive()) {//如果开启
    imm.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT,InputMethodManager.HIDE_NOT_ALWAYS);//关闭软键盘,开启方法相同,这个方法是切换开启与关闭状态的
}

 

 

方法二:

强制隐藏软键盘
 public void KeyBoardCancle() {
  View view = getWindow().peekDecorView();
  if (view != null) {
   InputMethodManager inputmanger = (InputMethodManager) getSystemService(ActivityBase.INPUT_METHOD_SERVICE);
   inputmanger.hideSoftInputFromWindow(view.getWindowToken(), 0);
  }
 }

 

 

方法三:

int flags = WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM; 
getWindow().addFlags(flags); 

 

方法四:

在onclick事件下.以下方法可行.(如果是EditText失去焦点/得到焦点,没有效果)

InputMethodManager im = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); 
im.hideSoftInputFromWindow(getCurrentFocus().getApplicationWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);

 

 

 

软键盘界面按钮功能设置方法

 

使用android:imeOptinos可对Android自带的软键盘进行一些界面上的设置:

<EditText  
    android:id="@+id/text1"  
    android:layout_width="150dip"  
    android:layout_height="wrap_content" 
    android:imeOptions="flagNoExtractUi"/> 

 

android:imeOptions="flagNoExtractUi"  //使软键盘不全屏显示,只占用一部分屏幕 

 

同时,这个属性还能控件软键盘右下角按键的显示内容,默认情况下为回车键

android:imeOptions="actionNone"  //输入框右侧不带任何提示 
android:imeOptions="actionGo"    //右下角按键内容为'开始' 
android:imeOptions="actionSearch"  //右下角按键为放大镜图片,搜索 
android:imeOptions="actionSend"    //右下角按键内容为'发送' 
android:imeOptions="actionNext"   //右下角按键内容为'下一步' 
android:imeOptions="actionDone"  //右下角按键内容为'完成'  

 

 

 

一、软键盘无法顶起页面

       开发中有个需求是将页面底部的一个按钮顶起,但是开发时发现Android5.0以后的版本设置了adjustResize属性后无法成功顶起。纠结了好久,最后在stackoverflow找到解决方案,那就是在根布局上加上fitsSystemWindow=”true”即可。

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true"
>

也可以使用AndroidBug5497Workaround解决键盘问题

二、自定义软键盘按钮功能无效

       在edittext上加入Android:imeOptions=”actionSearch”这个属性没响应,最后发现在2.3及以上版本不起作用,解决方案:加上

android:singleLine="true"

       因为输入法键盘右下角默认的回车键本来就是换行用的,当设置单行后,回车换行就失去作用了,这样就可以设置为搜索、发送、go等等。

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值