Kotlin collaboration + Retrofit is the most elegant network request
1. IntroductionRetrofit's support for collaborative processes is very rudimentary. The use of kotlin does not conform to kotlin's eleganceinterface TestServer {
@GET("banner/json")
suspend fun banner(): ApiResponse<List<Banner>>
}
//Network request for parallel exception capture
fun oldBanner(){
viewModelScope.laun ...
Posted by dancer on Sat, 15 Jan 2022 03:53:21 +0100
This is a comprehensive & detailed introduction to the use of Webview for Android
prefaceMany apps now have built-in Web pages (Hyprid App), such as many e-commerce platforms, such as Taobao, JD, Jubi, etc., as shown in the following figureSo how can this be achieved? In fact, this is implemented by a component called WebView in Android. Today I'll give a comprehensive introduction to the common uses of WebView.catalogue[ext ...
Posted by marque on Mon, 03 Jan 2022 03:20:38 +0100
Jetpack is a new member of DragAndDrop framework: greatly simplifying drag and drop gesture development!
You are no stranger to drag and drop gestures, which are the most common operations on the desktop, such as dragging files into the recycle bin. With the large screen trend of mobile devices and the improvement of foldable devices, drag and drop operation is becoming more and more necessary and popular in the mobile platform!Implementing drag a ...
Posted by fortnox007 on Sun, 02 Jan 2022 22:30:31 +0100