android custom title bar

Want to customize a title block, there is a simple way, the introduction of layout files can be. Let's imitate a simple title bar, that is, a button on the left and right, and a text in the middle. That is to say, we only need two buttons and one TextView 1. Create a new layout title.xml, and the code is as shown in the figur ...

Posted by arbelo on Sun, 15 Dec 2019 18:06:38 +0100

Practice of using cmake to compile ffmpeg in Android studio

This example uses the combined libffmpeg library. Please refer to the previous practice The practice of compiling ffmpeg into a single library on android platform Catalog Configuration environment New hello project Configuration environment Operating system: ubuntu 16.05 Note: the compilation of ffmpeg library uses android ...

Posted by paulytrick on Thu, 12 Dec 2019 20:43:02 +0100

Android GreenDao common notes

@Entity -- Entity annotation public @interface Entity { /** * The name of the table in the database, which defaults to the class name of the entity */ String nameInDb() default ""; /** * Define index, which can span multiple columns (the default is the number of entity class member variables) ...

Posted by Azu on Wed, 11 Dec 2019 20:25:16 +0100

Document display scheme arrangement in Android App

I. Word, Excel, PPT display 1. Microsoft Office open Api interface If the document content is not very confidential or just needs to preview the document, you can consider using Microsoft's public Api interface. Microsoft Office public Api address: https://view.officeapps.live.com/op/view.aspx? The implementation on Android is as follows: ...

Posted by CoffeeOD on Wed, 11 Dec 2019 16:51:02 +0100

Android Jetpack architecture component - detailed explanation of Navigation in the pit

This article starts with WeChat public's "Android development tour". Welcome to pay more attention to get more dry goods. Preface Navigation is a direct translation of navigation, which is one of Android Jetpack components, making single Activity application the preferred architecture. The jump of Fragment page in the application is h ...

Posted by BRAINDEATH on Wed, 11 Dec 2019 10:14:30 +0100

Learning Android RxJava operators -- combining and merging operators -- combining and judging multiple events

1. Demand scenario Multiple events need to be judged jointly at the same time For example, when filling in the form, all information (name, age, occupation, etc.) in the form must be filled in before clicking the "submit" button 2. Function description Fill in the form as the joint judgment function display he ...

Posted by coffeeguy on Wed, 11 Dec 2019 07:17:54 +0100

ContentProvider for IPC inter process communication

ContentProvider for interprocess communication First, introduce 1. The underlying implementation is Binder 2. In addition to the onCreate method running on the main thread, the other four methods are called back from the outside and run in the Binder thread pool. 3. To register ContentProvider, an attribute android:authorities ...

Posted by zipdisk on Wed, 11 Dec 2019 04:15:25 +0100

Kotlin core syntax: annotation and reflection

Blog Homepage 1. Declare and apply comments 1.1 application notes The way to use annotations in kotlin is the same as in java, which takes the @ character as the prefix of the name and puts it at the front of the declaration to be annotated. Take a look at the @ Deprecated annotation, which is enhanced in Kotlin with the replaceWith parameter. ...

Posted by Aleks on Wed, 11 Dec 2019 02:12:51 +0100

Writing android with Kotlin: retrofit + rxjava try

Recently, I learned the Kotlin language recommended by Google for Android development, which was used to try to reconstruct the MVP+Retrofit+Rxjava code before. Here is my reconstructed Kotlin code First add the compile of gradle: dependencies { compile 'io.reactivex.rxjava2:rxjava:2.0.7' compile 'io.reactivex.rxjava2:rx ...

Posted by jl9148 on Wed, 11 Dec 2019 01:11:15 +0100

The pit encountered by android integration sharesdk cannot return to app, etc

After sharesdk integration, I encountered a problem sharing to wechat and friends circle. When I clicked back, I found that I couldn't go back to the app private void sharedToThirdPlatform() { OnekeyShare oks = new OnekeyShare(); //Close sso authorization oks.disableSSOWhenAuthorize(); // Ti ...

Posted by Thikho on Tue, 10 Dec 2019 18:14:37 +0100