大约有 900 项符合查询结果(耗时:0.0080秒) [XML]
BLE(四)嗅探工具 - 创客硬件开发 - 清泛IT社区,为创新赋能!
...合蓝牙低功耗应用。它包含了一个8051内核的RF收发器,可编程闪存,8KB RAM和其他功能强大的配套特征及外设。CC2540有两种版本:CC2540F128 / F256,分别为128和256 KB的闪存,结合TI的低功耗蓝牙协议栈,CC2540F128 / F256形成了市场上最...
How to correctly dismiss a DialogFragment?
...
I gave an upvote to Terel's answer. I just wanted to post this for any Kotlin users:
supportFragmentManager.findFragmentByTag(TAG_DIALOG)?.let {
(it as DialogFragment).dismiss()
}
share
|
...
android on Text Change Listener
...
If you are using Kotlin for Android development then you can add TextChangedListener() using this code:
myTextField.addTextChangedListener(object : TextWatcher{
override fun afterTextChanged(s: Editable?) {}
override fun bef...
Error : BinderProxy@45d459c0 is not valid; is your activity running?
...
what is the kotlin version for this? will isFinishing() be enough?
– Alok Rajasukumaran
Oct 12 '18 at 9:37
...
Base 64 encode and decode example code
...
For Kotlin mb better to use this:
fun String.decode(): String {
return Base64.decode(this, Base64.DEFAULT).toString(charset("UTF-8"))
}
fun String.encode(): String {
return Base64.encodeToString(this.toByteArray(charset...
Place cursor at the end of text in EditText
...
Kotlin:
set the cursor to the starting position:
val editText = findViewById(R.id.edittext_id) as EditText
editText.setSelection(0)
set the cursor to the end of the EditText:
val editText = findViewById(R.id.edittext_id)...
苹果全球开发者大会:无硬件 iOS 9等三大系统更新 - 资讯 - 清泛网 - 专注C...
...国。
Swift 2 开源才是王道
Swift语言讲开放源代码,为APP编程带来更多可能。App Store目前有超过15000个应用是用Swift来开发的,越来越多的应用采用了苹果自家的编程语言。新的Swift 2语言发布,除了编译性能的提升,各种新功能...
Detecting when user has dismissed the soft keyboard
...
It's 2019 now...
So I created a more neat solution with Kotlin
1.Create an extension function:
fun Activity.addKeyboardToggleListener(onKeyboardToggleAction: (shown: Boolean) -> Unit): KeyboardToggleListener? {
val root = findViewById<View>(android.R.id.content)
...
convert ArrayList to JSONArray
...
With kotlin and Gson we can do it more easily:
First, add Gson dependency:
implementation "com.squareup.retrofit2:converter-gson:2.3.0"
Create a separate kotlin file, add the following methods
import com.google.gson.G...
Change Name of Import in Java, or import two classes with the same name
...
And in Kotlin: import com.example.Calendar as MyCalendar.
– KevinO
Jan 6 '17 at 0:39
14
...
