240 发简信
IP属地:江苏
  • Android之kotlin中EditText设置文字

    editText.text= Editable.Factory.getInstance().newEditable("testString")

  • Android之androidx混淆

    -keep class com.google.android.material.** {*;} -keep class androidx.** ...

  • Android之圆形预览的SurfaceView

    使用ViewOutlineProvider来实现,ViewOutlineProvider专门用于阴影投射和剪切。 相关方法: 1.setOutl...

  • Android之判断浮点数是否相同

    public static boolean isEquals(double d1, double d2) { double z = Math.a...

  • Android之扫码枪回车导致EditText失去焦点

    如题,解决方案,在xml中的EditText添加属性: android:nextFocusDown="@id/editText"

  • Android之adb截图

    截图: adb shell /system/bin/screencap -p /sdcard/screenshot0.png 其中:/sdcar...

  • Android之Unexpected end of stream on Connection问题解决

    使用Retrofit+OkHttp作为网络请求框架,发现一个问题,就是每隔一定时间再请求接口,会返回一个Unexpected end of st...

  • Android之打印十六进制byte数组内容

    public String byte2hex(byte[] bytes){ StringBuilder sb = new StringBui...