Jetpack Compose 底部导航栏

注意:您需要有Android Studio Arctic Fox 及更高版本才能在您的项目中使用Jetpack Compose。添加库转到您的项目级gradle.build文件,并添加以下扩展名:buildscript { ext { compose_version = '1.0.2' } // ... }现在转到应用级gradle.build文件,并添加以下内容:android { // ... kotlinOptions { jvmTarget = '1.8' useIR = true ...

Jetpack Compose,android 2021-09-30 PM 47℃ 0条

Mac OS X 下查看和设置JAVA_HOME

打开终端,输入:/usr/libexec/java_home -V参数区分大小写(必须是-V)

默认分类 2021-09-03 AM 61℃ 0条

adb shell input keyevent

通过adb shell input keyevent,event_code发送到设备usage: input [text|keyevent] input text <string> input keyevent <event_code>event_code:0 --> "KEYCODE_UNKNOWN" 1 --> "KEYCODE_MENU" 2 --> "KEYCODE_SOFT_RIGHT" 3 --> "KEYCODE_HOME" ...

android 2021-07-27 AM 113℃ 0条

Android Studio查找中文

打开搜索框^((?!(\*|//)).)+[\u4e00-\u9fa5]

android 2021-07-23 PM 98℃ 0条

迁移已弃用的 Kotlin Android Extension 使用ViewBinding

最近出现在了一个这样的警告:The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.kotl...

默认分类,android 2021-07-09 AM 80℃ 0条