ViewPager and TabLayout use Title styles with icons and text

We often use the layout of ViewPager+TabLayout+Fragment to complete the following layout: 1. First of all, let's look at the related layout of XML and the related content of fragment Gu action.xml <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schema ...

Posted on Sun, 05 Apr 2020 08:31:02 -0400 by StateGuy

Dynamic access to android 6.0 runtime permissions

Dynamic access of android 6.0 runtime permissions in activity and fragment I will definitely encounter the problem of authority in my work. I didn't read it again after I checked the online posts and solved the problem. I was not too busy these two days. I wrote a blog and wrote it down, reviewed it, deepened my memory, and i ...

Posted on Sun, 05 Apr 2020 03:42:27 -0400 by mband2000

Slot, slot point for Java design

No water today, go straight to dry!Hope the following explanation will resonate with you.   1. Each length has its own merits   Have you ever been asked during an interview if there is a length() method for arrays?Does the string have a length() method?Does the collection have a length() method?   Faced with this problem, you have to spit out ...

Posted on Sun, 05 Apr 2020 01:43:36 -0400 by Jenk

RAID and LVM combined!

LVM can adjust the size of filesystem flexibly, but the disadvantage is that it may not accelerate the function of hardware backup (different from snapshot). The disk array has the function of performance and backup, but it can not provide the advantages similar to LVM. In this scenario, we want to use the function of "bui ...

Posted on Fri, 03 Apr 2020 12:57:47 -0400 by ChrisDarl

Linux: the introduction of deleting files by mistake and recovering them by using the extundelete tool

Operating system version: CentOS release 6.4 (Final) software version: outsundelete-0.2.4.tar.bz2 1. Use the rz command to upload the extundelete-0.2.4.tar.bz2 to the / tmp folder and extract the software. [root@localhost tmp]# tar -jxvf extundelete-0.2.4.tar.bz2 2. Enter the directory under which the extract is extracted, and perform the co ...

Posted on Fri, 03 Apr 2020 12:08:04 -0400 by sword

onActivityResult in Android Fragment is not called to solve

 Original address onActivityResult in Fragment is not called. There are several situations, please check one by one.   1. Check whether the onActivityResult method is overridden in the Activity to which the Fragment belongs. If this is the case, make sure that super.onActivityResult is written: onActivityResult of MainActivity ...

Posted on Fri, 03 Apr 2020 06:01:58 -0400 by gloveny

BottomSheet + ToolBar + ListView use posture correctly

Effect preview Or bring SearchView layout 1.Fragment or Activity <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.androi ...

Posted on Tue, 31 Mar 2020 02:48:42 -0400 by nitestryker

IntentService for Android Learning performs time-consuming tasks

1. Overview We all know that in Service we can't do time-consuming operations directly. We usually need to start the sub-threads to do something. It's not elegant to manage the life cycle of Service and the sub-threads yourself; the good thing is that Android provides us with a class called IntentService. Inte ...

Posted on Mon, 30 Mar 2020 16:41:14 -0400 by samoht

Android boot page GudiesDemo

Reference from https://github.com/javajavadog/guideshow The jar packages used can be found in https://github.com/javajavadog/guideshow/blob/master/jar/guideshowlib.jar download 1. Create a new project in Android studio, copy the file guideshowlib.jar (to download, see the second line) to the directory.. \ app\libs, and add th ...

Posted on Fri, 27 Mar 2020 12:47:09 -0400 by aravind_mg

Camera in OpenGL

Cameras in OpenGL: There is no concept of camera in OpenGL. It simulates the camera by moving all objects in the scene in the opposite direction. To define a camera, you need its position in world space, the direction of observation, a vector to its right and a vector to its top. In the discussion of camera coordinates (right-hand coordina ...

Posted on Tue, 24 Mar 2020 10:06:41 -0400 by amelhedi