Basic implementation of ActionBar and ToolBar under API29

Based on Android studio to customize the top menu bar -- the basic implementation of ActionBar and ToolBar Custom ActionBar Custom ToolBar Custom ActionBar ActionBar is a window function to determine the user's location, and it can provide the user's operation and navigation module. Using Action ...

Posted by EagerWolf on Sat, 06 Jun 2020 12:30:22 +0200

Echart's basic graphic configuration and production

1. Introduce echarts ·Introducing src directly into html ·ES imports from node_ module/echarts/echarts ·Generally, VAR ecrats = require ("ecrats"); 2. js configuration 1. Echarts Initialize and bind container var echarts = Echarts.init(document.getElementById('mai ...

Posted by phpn00bf4life on Fri, 05 Jun 2020 06:07:18 +0200

Android uses GridView to load (weak reference) network pictures asynchronously (click to view)

Android uses GridView to load (weak reference) network pictures asynchronously (click to view) In the current Android development, more and more app s use the album function of Android. Using the album will use GridView to load pictures, but when loading a large number of pictures, there will be a black screen because the loading process is ...

Posted by VirtuosiMedia on Tue, 02 Jun 2020 17:57:27 +0200

Using Kotlin reflection skillfully to name by value, debugging more quickly and save money

Pain spot We often define constants, such as 1 2 3 4 5 6 7 public interface ItemType { public static final int TYPE_TEXT = 0; public static final int TYPE_IMG = 1; public static final int TYPE_VIDEO = 2; public static final int TYPE_AUDIO = 3; public static final int TYPE_LINK = 4; } When we print to see ...

Posted by Sh0t on Mon, 01 Jun 2020 03:04:06 +0200

Android review 09 [content provider, music player]

catalog PersonCp PersonCp.java insert() ContentObserver music player 1. Add read-write permission 1.1. Dynamic permission granting (calling encapsulated methods) 2. Get music files( MainActivity.java ) 2, Music.java (entity class) Apply for access to SD card Set adapter Drop down refresh PersonCp PersonCp.java package cn.wang ...

Posted by jack_indigo on Sun, 31 May 2020 06:46:28 +0200

Using WindowManager to add View -- the basic principle of floating window

Although there are many types of "windows" in Android system, only two types are often used: one is managed by system process, which is called "system window"; the other is generated by application program, which is used to display UI interface. If you are familiar with window manager service (WMS), everything is very simple ...

Posted by c0le on Sat, 30 May 2020 02:18:58 +0200

Getting Started with Android Reverse Cracking

Preface A little bit of Android Reverse was done the year before, but it hasn't been done for a long time. Recently, a buddy asked me to help him do a subtitle about Android Reverse, so pick up the knowledge of Android Reverse and start over. This apk is a very simple, entry-level Android Reverse Analysis program, so this article is main ...

Posted by manyamile on Sat, 23 May 2020 06:55:43 +0200

Self made certificate of Android HTTPS realizes bidirectional authentication (OkHttp + Retrofit + Rxjava)

Due to a high security project to be done recently, it needs to use HTTPS for two-way authentication. When designing the project architecture, the client uses MVVM architecture, and realizes Android based on DataBinding + Retrofit + Rxjava. Looking up a lot of data, there are many examples of implementing two-way authentication based on native ...

Posted by okyejr on Thu, 21 May 2020 06:36:59 +0200

Android Serial 12 - Perfect news app content area

1. Write a class here to start an activity by first loading the news_we just created in the onCreateView() methodContent_The frag layout, which is unexplained, goes on to provide a refresh() method for displaying news titles and content on the interface.As you can see, here you get the title and content control of the news by the findViewById() ...

Posted by muthuraj_mr on Wed, 20 May 2020 19:19:36 +0200

How to correctly introduce so file into Android studio

How to introduce the third-party so file? However, the third-party official only gives the integration mode in ADT environment. Android studio uses gradle compiling mode by default, which is different from ADT editing mode, so how should so files be introduced? It's very simple. Here, take the integrated JPUSH as an example to see how the ...

Posted by jgh84 on Fri, 15 May 2020 18:09:41 +0200