ssccyy 最近的时间轴更新
ssccyy

ssccyy

V2EX 第 618702 号会员,加入于 2023-03-14 10:29:31 +08:00
今日活跃度排名 3450
根据 ssccyy 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
ssccyy 最近回复了
1 小时 22 分钟前
回复了 ssccyy 创建的主题 Android jetpack compose TextField 组件在手持 PAD 设备无法触发回车事件
@lxiian 感谢有空研究下监听 \n, 目前的解决方案是在 modifier 上判断的回车事件
modifier = Modifier
.weight(1f)
.border(1.dp, Color.Gray, RoundedCornerShape(4.dp))
.padding(4.dp)
.onKeyEvent {
// if (it.key.keyCode == Key.Backspace.keyCode) {
// it.key.keyCode
if (it.key.keyCode == Key.Enter.keyCode) {
productViewModel.zhEnter() // 触发回调函数
}
false
}
1 小时 25 分钟前
回复了 ssccyy 创建的主题 Android jetpack compose TextField 组件在手持 PAD 设备无法触发回车事件
@nicevar 哎,领导让用原生安卓, 要是我自己直接 flutter 或者 uniapp ,再简单直接 hbuilder 套 h5 了
手持 PDA 设备:iData 95S
手持 PDA 设备系统: 安卓 6.0

项目 build.gradle
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'org.jetbrains.kotlin.plugin.parcelize'
}

android {
compileSdk 34

defaultConfig {
applicationId "icu.bughub.app.app"
minSdk 21
targetSdk 34
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion compose_version
}
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}

pickFirst '**/libc++_shared.so'
doNotStrip "*/arm64-v8a/libYTCommon.so"
}
}

dependencies {

implementation 'androidx.core:core-ktx:1.7.0'
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.material:material:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"


def lifecycle_version = "2.4.1"

implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle_version"
implementation 'androidx.activity:activity-compose:1.4.0'

//accompanist
def accompanist_version = "0.24.3-alpha"
implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"
implementation "com.google.accompanist:accompanist-insets:$accompanist_version"
implementation "com.google.accompanist:accompanist-pager:$accompanist_version"
implementation "com.google.accompanist:accompanist-navigation-animation:$accompanist_version"
implementation "com.google.accompanist:accompanist-placeholder-material:$accompanist_version"
implementation "com.google.accompanist:accompanist-swiperefresh:$accompanist_version"

//图标扩展
implementation "androidx.compose.material:material-icons-extended:$compose_version"

implementation "androidx.constraintlayout:constraintlayout-compose:1.0.0"


//图片加载
implementation("io.coil-kt:coil-compose:2.0.0-rc01")

//webview
implementation project(path: ':webview')


//播放器
implementation 'com.tencent.liteav:LiteAVSDK_Player:latest.release'

//datastore
implementation "androidx.datastore:datastore-preferences:1.0.0"

def retrofit = "2.9.0"
//网络请求框架
implementation "com.squareup.retrofit2:retrofit:$retrofit"
//GSON
// implementation "com.squareup.retrofit2:converter-gson:$retrofit"
//moshi
implementation "com.squareup.retrofit2:converter-moshi:$retrofit"

def moshi_version = "1.13.0"
implementation "com.squareup.moshi:moshi-kotlin:$moshi_version"


testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
}




会不会是我需要开什么原型的权限或者是什么行为。
124 天前
回复了 ssccyy 创建的主题 问与答 求推荐记录日常记录购买生活用品价格的 APP
收到, 各位 xd
208 天前
回复了 wafffle 创建的主题 问与答 法拍房有问必答
法拍车有懂的老哥吗? 挺感兴趣的
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3628 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 04:44 · PVG 12:44 · LAX 21:44 · JFK 00:44
Developed with CodeLauncher
♥ Do have faith in what you're doing.