Fragment-Loading and Data Communication of Android Notes

I. Loading Method 1. Static loading 1.1 Loading Step (1) Create fragment: Create a custom fragment class that inherits from the Fragment class and binds the custom fragment class to the Fragment view (converting layout into View) View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) _inflater is used to bind ...

Posted by micknc on Tue, 16 Jul 2019 21:36:41 +0200

Development of Android Wechat Payment SDK

I. Preparations 1. Development Platform and SDK Download Wechat Open Platform https://open.weixin.qq.com Download SDK Wechat Payment Demo Download http://pay.weixin.qq.com/wiki/doc/api/app.php?chapter=11_1   2. Creating Applications Creating Mobile Applications to Get AppID AppSecret To obtain payment function, it also needs developer qualific ...

Posted by mattkirkey on Tue, 16 Jul 2019 20:18:32 +0200

android generates shared long graph and adds full image watermarking

Respect for other people's work results, reprinted please indicate the source: http://blog.csdn.net/gengqiquan/article/details/65938021 This article is from: [gengqiquan's blog] Leaders recently felt that Ctrip's screenshot generated growth map sharing effect is better, so we added one; the product felt that the shared long map needs to add c ...

Posted by imderek on Tue, 16 Jul 2019 01:02:51 +0200

Android Design Patterns (I) - Singleton Patterns

Recently, I read the book "Android Source Design Pattern Analysis and Practice" and found that there are some analysis of the source code. I haven't had a good look at the design pattern before. Let's take a note and follow it. Definition Make sure that there is only one instance of a class, and instantiate it and provide it to the wh ...

Posted by Liodel on Tue, 16 Jul 2019 00:34:20 +0200

Realization of Classification and Sorting Control of Imitating Netease Tab

1. Introduction of XML Layout <com.net168.lib.SortTabLayout android:id="@+id/layout" android:layout_width="match_parent" android:layout_height="wrap_content" /> 2. Setting up data source data, that is, the corresponding text data for each item //Construct data sources, temporarily supporting String only List<Strin ...

Posted by rubio on Tue, 16 Jul 2019 00:18:34 +0200

Android Design Patterns (1) Continuation: Layout Inflater

PhoneLayoutInflater package android.view; public abstract class LayoutInflater { ...... public static LayoutInflater from(Context context) { LayoutInflater LayoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); if (LayoutInflater == null) { throw new Asserti ...

Posted by nezbo on Mon, 15 Jul 2019 23:38:23 +0200

Android NDK develops the application of two parts (2) (incremental updates are the same)

Catalog Android NDK Develops Two Songs (1) The First Knowledge (JNI General Knowledge and NDK Configuration)Android NDK develops the application of two parts (2) (incremental updates are the same) Preface A previous blog about JNI and NDK on Eclipse Android JNI and Android NDK Literacy Now let's start to study NDK development in detail on the ...

Posted by AJReading on Mon, 15 Jul 2019 22:28:39 +0200

Use of Android Adpater s

Reprinted from: https://my.oschina.net/u/658933/blog/372151 Source code http://files.git.oschina.net/group1/M00/00/56/cHwGbFTLSfOAEAIjAAF86dDXjmU684.rar?Token=726426a40eb7a2151c50aab086fcce&ts=1422608917&filename=AndroidTest.rar? Use of Android Various Adapter s It's also a ListView that can be used differently Adapter lets it show, ...

Posted by Onloac on Mon, 15 Jul 2019 22:16:55 +0200

Implementation of Android Immersive Status Bar and Transparency of Status Bar

Original: Click to visit Now more and more software has begun to use the immersion status bar. Here are two ways to use the immersion status bar. Be careful! Immersive status bar only supports Android Version 4.4 and above Status Bar: Gradient color on 4.4, transparent on 5.0. This simulator demonstrates 4.4. Effect map: Be car ...

Posted by areric on Mon, 15 Jul 2019 22:08:50 +0200

Implementation of PageView Indicator with Flutter

This article uses an example of PageView to impress you, and in a subsequent column, we'll deepen this example to create an image Banner that supports infinite sliding from top to bottom, and teach you how to make it a Dart library and open it to others. I. Unlimited Sliding PageView Before implementing the PageView indicator, we need to imple ...

Posted by EXiT on Mon, 15 Jul 2019 22:07:51 +0200