Preliminary Study on Android JetPack Component-CameraX

CameraX is also a JetPack component from Google, which is a new gadget, so I want to share my experience in using it in my project. What is CameraX? The Google Developer Documentation gives you the following evaluation of AmeraX: CameraX is a Jetpack support library designed to help you streamline the development of camera applications.It pro ...

Posted by a6000000 on Tue, 05 May 2020 12:14:10 -0700

Learning and summary of RecycleView

Since I contacted Android studio, I have a new understanding and desire to learn and master the new Android UI design concept and V7 package. Therefore, I have a special look at the use of the new control RecycleView, which is summarized as follows. Its usage is similar to that of listview. It consists of three parts: adapter, arrangement and ...

Posted by andre_c on Tue, 05 May 2020 09:21:06 -0700

android file selector component

demo effect FileSelector.gif Source code on GitHub introduce FileSelectorView is a custom file selector, based on which users can customize the style of file selector. function Switch directories Get path File filtering File sorting Custom file icon and set size Set the size and color of file name text Listen for selected files Use Fil ...

Posted by liebs19 on Tue, 05 May 2020 07:40:02 -0700

The fastest Android TreeView appears!

The fastest Android TreeView appears! Source address: https://github.com/niugao/RecyclerListTreeView Based on RecyclerView. The structure of storing data is not a Tree, but an ArrayList. Unlike all the known implementations on the Internet, it seems that people can't jump out of fixed thinking. You can compare the am ...

Posted by daveoffy on Tue, 05 May 2020 07:40:35 -0700

Intent -- open another Activity -- bidirectional value transfer

In Android applications, we use the intent mechanism to jump between activities. This example simply introduces how to use intent to make the program jump from MainActivity to another OtherActivity to realize a single parameter value. When returning MainActivity, use Bundle for batch return. 1, Design interface 1. MainActivity la ...

Posted by jeny on Tue, 05 May 2020 04:46:03 -0700

[Android] socket connection and send button are separated

Because of the need of the project, make an Android program, which can send instructions to control the printer, and use socket programming. Because I don't know about Android, I simply record some completed test applets Click Connect to connect to the server Click send to send helloWord to the server. The server uses ...

Posted by mikew2 on Tue, 05 May 2020 02:47:55 -0700

Android Project Actual Series - based on my module in Savvy Valley

Please be patient to read this module because of its large content and length. My module is divided into four parts [ ] My interface [ ] Set up interface [x] Modify password interface [x] Set Secret Security and Retrieve Password 1. Modify Password 1. Create a password modification interface In the com.boxuegu.activity package, creat ...

Posted by congos on Tue, 05 May 2020 01:30:21 -0700

Determine whether the current Activity is a required Activity

1. Get the current Activity instance through topActivity of RunningTaskInfo. The Activity obtained in this way can only ensure that it has executed the Activity.onCreate method, but not the Activity.onResume method. This method has been banned since api 21 and should be used with caution. public static String getCurrentActivityName(Conte ...

Posted by nomanoma on Tue, 05 May 2020 00:58:29 -0700

Android uses TabLayout to create a sliding tab bar

Sliding tab bar is very common in App. I tried to implement one by myself in the past. Using HorizontalScrollView and ViewPager, now TabLayout is much more convenient. First, the effect map and UI are slightly ugly. Don't mind ha ~ PS: there is a source code link at the bottom design sketch No nonsense, just code! ...

Posted by ppatwari on Tue, 05 May 2020 00:26:14 -0700

The usage of Litepal and the solution of dbname is empty

The steps to use Litepal are as follows: 1. Introduce JAR package and change configuration Use Android Studio to add: dependencies { compile 'org.litepal.android:core:1.6.1' } 1.6.1 is the version number, which can be changed according to the requirements. Then configure the litepal.xml file. Generally, create ...

Posted by MSK7 on Mon, 04 May 2020 22:10:01 -0700