android adds a triangle icon in the upper right corner and displays text inside the icon
The new module of item 1 has an icon on the right which is displayed in the upper right corner, as shown in the figure
After thinking about how to use shape to draw a background, put it in the upper right corner, draw out the words as if there is a problem in putting them on the display, google it and find a piece of informati ...
Posted by incarnate on Sun, 05 Jan 2020 19:02:44 +0100
Android layout manager - use FrameLayout to display stacked squares and foreground photos
scene
Android layout manager - use LinearLayout to realize simple login window layout:
https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/103838995
Frame layout manager FrameLayout
Realization effect
Note:
Blog: https://blog.csdn.net/badao_liumang_qizhi
Pay attention to the public address Domineering procedural ape Get progr ...
Posted by WDPEjoe on Sun, 05 Jan 2020 18:48:37 +0100
The implementation of Android carousel pictures
I. principle
First of all, put these pictures and some text to be rotated in different data sets. When the program starts, a set of pictures and text data will be displayed by default, and then a timer will be started to replace the displayed pictures and text data every other period of time. At the same time, some animation e ...
Posted by dink87522 on Sun, 05 Jan 2020 09:46:08 +0100
Android login page design
When it comes to developing apps, we must design page layout, right? I'm also a bad aesthetic person. I can only write functions for developing apps, but I can't do a good job in page aesthetics.
Today, I present you an android login page. Of course, this page is also written by me, but it may not be beautiful, just to help yo ...
Posted by davithedork on Sat, 04 Jan 2020 14:36:12 +0100
Rxjava2 introduction and detailed examples
Preface
Now we can see that more and more developers are using RX related technologies to develop apps, Java backend and other fields. In open source communities and Internet companies, Rx, responsive programming, and functional are popular. Therefore, the author will write a series of articles on Rxjava2 in combination with his own learning an ...
Posted by bearqst on Sat, 04 Jan 2020 08:10:41 +0100
Android get memory information (RAM,ROM)
1, Brief introduction to RAM and ROM
RAM refers to running memory. For example, the floating window of 360 mobile assistant often prompts that the running memory is more than 80%. It refers to running memory. The general size is a few G.
ROM is the memory for storing data. For example, the "total space 31.6G, the remaini ...
Posted by glcarlstrom on Sat, 04 Jan 2020 07:21:32 +0100
Magic changes ScrollView to become Android's automatic carousel artifact
One of the requirements of the APP in the previous work is to cycle and rotate a bunch of pictures and texts. So I used the ScrollView magic to change this requirement. The following is the operation screen of Demo. The TextView with the number from 0 to 100 is automatically rotated:
The specific implementation is as f ...
Posted by ccbayer on Sat, 04 Jan 2020 05:14:31 +0100
Reuse and caching mechanism of ListView
Reuse analysis
**1. In the AbListView**
/**
* The data set used to store unused views that should be reused during the next layout
* to avoid creating new ones
*/
final RecycleBin mRecycler = new RecycleBin();
RecycleBin contains two levels of storage, ActiveViews and ScrapViews. ActiveViews stores the View displayed on ...
Posted by lightpace on Sat, 04 Jan 2020 01:14:57 +0100
Android network framework OKHttp
Summary
OKhttp is an open source project of network request. Android network request lightweight framework supports file upload and download, https, and contributed by mobile payment Square company.
rely on
compile 'com.squareup.okhttp3:okhttp:3.8.1'
Get request
Send synchronization request by Get
OkHttpClient okHttpClient;
Request ...
Posted by johnthedeveloper on Fri, 03 Jan 2020 21:29:32 +0100
The word "everyday" - RxJava
1 life example
1.1 hypothetical scenario
1.2 operation process
1.3 noun mapping
1.4 in a word
2 learn to use
2.1 basic usage
2.2 chain call
1 life example
1.1 hypothetical scenario
At the peak of the meal, it is necessary to call and line up in a very hot restaurant. At this moment, we have got the nu ...
Posted by flyersman on Fri, 03 Jan 2020 20:14:48 +0100