Coordinator Layout is so simple to use

I found some tutorials on Coordinator Layout on the internet. Most of the articles are about Coordinator Layout, Appbar Layout, Collapsing Toolbar Layout and Toolbar, which makes me unconsciously think that these layout should be used together, and only for that kind of scenario. In fact, Coordinator Layout's function is not limited to use wi ...

Posted on Sat, 23 Mar 2019 05:03:52 -0400 by jaapoost

NDK Learning Notes: jni Data Type Conversion

background With the increasing complexity of c++ code in Android project, more and more data types need to be transmitted in jni. There are many related articles on JNI data type conversion network, but there are many fallacies in these examples when they are used. So we summarize the relevant contents here and attach relevant routines for fu ...

Posted on Sat, 23 Mar 2019 04:48:52 -0400 by mahakmx

Android Development-UI_Fragment

Create fragment Fragment class Add fragments to activities Communication with activities Life cycle of fragments Snippets are designed to provide more flexible UI support for large screens, such as tablets. It can be regarded as a sub-activity, which must be embedded in the activity, and has its own life cycle, and can receive ...

Posted on Sat, 23 Mar 2019 02:27:52 -0400 by dragonusthei

Initialization of SIM Card on Android 6.0

This paper mainly introduces the initialization process of SIM card when Android 6.0 mobile phone boots based on MTK platform. First, look at the timing chart of the SIM card initialization process: UiccController.java is located in (framework/opt/telephony/src/java/com/android/internal/telephony/uicc/) which is a controller for managing A ...

Posted on Sat, 23 Mar 2019 01:51:53 -0400 by prcollin

Detailed description of shape attribute in Android

I. Simple Use In the beginning, I will not talk about the meaning and usage of a bunch of labels, but first I will simply see how shape labels are used. 1. New shape file First, under the res/drawable folder, create a new file named shape_radius.xml The content is as follows: (First of all, you don't need to understand, firs ...

Posted on Sat, 23 Mar 2019 00:18:53 -0400 by faza

Android Recycler View, CardView Details and the corresponding pull-up refresh drop-down loading

With the introduction of the new design language Material Design, Google has also ushered in a new Android support library v7, which includes the implementation of Card card concept in Material Design language, CardView. RecyclerView is also a new control added under Google V7 package to replace the use of ListView. In RecyclerView, ViewHolder ...

Posted on Fri, 22 Mar 2019 22:03:52 -0400 by nwoeddie23

listview sliding distance

Calculate the sliding distance of listview and change the transparency effect of titlebar by sliding listview Getting the sliding distance of listview is the key (1)listview settings for sliding listeners mListView.setOnScrollListener (2) Rewrite the onScroll() method Don't look at the code first. Look at the instructions at the end of ...

Posted on Fri, 22 Mar 2019 19:54:51 -0400 by yarub

New features of JDK8 - Lambda concise code and others

introduce Lambda, it sounds familiar. Yes, in higher mathematics, this product often deals with us. Haha, this is a Greek letter, ranked eleventh, capitalized as, capitalized as, capitalized as and capitalized as lambda. Well, that's it. The core features added in jdk1.8 include lambda expressions, functional interfaces, stream APIs, defau ...

Posted on Fri, 22 Mar 2019 18:33:52 -0400 by jonasr

Android adapts that thing

Welcome to reprint, reprint please indicate the source: http://blog.csdn.net/johnny901114/article/details/54880754 This article is from: [Yu Zhiqiang's blog] Basic concepts of screen adaptation Screen size The screen size is the length of the diagonal line of the mobile phone screen. According to the Pythagorean theorem, the obliq ...

Posted on Fri, 22 Mar 2019 16:54:52 -0400 by Cypher87

Android, the official two-way binding of Data Binding

Reprinted from: http://www.jianshu.com/p/c481d1f4e0b6 After Android Studio 2.1 Preview 3, official support for bi-directional binding began. Unfortunately, Google has not included this tutorial in the Data Binding Guide at present, and only in the whole Internet. This article This paper introduces how to use reverse binding. Before r ...

Posted on Fri, 22 Mar 2019 13:06:52 -0400 by bonaparte