When RecycleView encounters layout_width="0dp"

When using several RecycleView s to arrange horizontally, the parent layout uses LinearLayout with the following layout: <LinearLayout android:id="@+id/lottery_area" android:layout_width="225dp" android:layout_height="110dp" android:gravity="center" android:orientation=" ...

Added by AlexRodr on Sat, 18 May 2019 12:21:05 +0300

Android Custom ViewGroup Artifact-ViewDragHelper

1. Overview ViewDragHelper is a utility class for writing custom ViewGroups. It offers a number of useful operations and state tracking for allowing a user to drag and reposition views within their parent ViewGroup. This is the official explanation: ViewDragHelper can be used to drag and set the position of a child View (within the ViewGroup ...

Added by mw-dnb on Sat, 18 May 2019 07:59:49 +0300

Android Media Server Agent Solution

Android Media Server Agent Solution [NT_PROXY] Android Media Server Agent Solution background Analysis problem analysis In-depth analysis of Android proxy process programme background In white list mode, IQI app can not play video, but can display video pictures, video advertisements and so on. If you switch to ...

Added by kingconnections on Sat, 18 May 2019 02:47:13 +0300

Android Design Patterns - Simple Factory Patterns

Preface Android Design Patterns series articles, welcome attention, ongoing updates: 1. definition Define an interface for creating objects so that subclasses decide which class to instantiate. 2. introduction Simple factory mode belongs to creation mode. Simple factory mode is also called static factory method mode. 3.UML class diagr ...

Added by zyrolasting on Fri, 17 May 2019 23:05:06 +0300

camera of android multimedia api collects raw video data

"android Multimedia api" series is a series of media-related APIs which are often used in the integration of android development. The main contents of multimedia development include audio, video recording and playing, camera operation, recording operation, streaming media, live broadcasting, push-flow, pull-flow and so on. In recent ...

Added by lostprophetpunk on Fri, 17 May 2019 20:57:39 +0300

Service in Android

Learn Guo Lin's First Line Code, record your own learning notes, and summarize Service. Inheritance of service classes and rewriting of service methods When we want to customize the Service, we must inherit the Service class, rewrite the Service method, and most importantly register the Service where the four components are r ...

Added by sanju on Fri, 17 May 2019 19:08:50 +0300

JAVA-CURL, a self-used Java crawler tool, is open source

Project address: https://github.com/rockswang/...Central Warehouse: https://mvnrepository.com/art... brief introduction The CUrl class refers to the command line tool CUrl and uses the standard Java HTTP URLConnection to implement the Http tool class. Characteristic Http class implementation based on standard Java runtime, source code compatib ...

Added by t_miller_3 on Fri, 17 May 2019 18:11:18 +0300

HttpClient uses MultipartEntity Builder to upload multiple files

1. MultipartEntityBuilder for File Upload After HttpCient 4.3, the main classes used for uploading files are MultipartEntity Builder under org.apache.http.entity.mime (the original MultipartEntity has been largely abandoned). The basic implementation steps are as follows: 1. Set up the upload mode; SetMode (Http MultipartMode), which ...

Added by think-digitally on Fri, 17 May 2019 17:41:56 +0300

Android Official Database Room -- Configuration

Links to source documents Engineering configuration implementation "android.arch.persistence.room:runtime:1.0.0" annotationProcessor "android.arch.persistence.room:compiler:1.0.0" // RxJava support for Room (use 1.1.0-alpha3 for latest alpha) implementation "android.arch.persistence.room:rxjava2:1.0.0" Table definition ...

Added by OriginalSunny on Fri, 17 May 2019 17:10:49 +0300

Android reverse engineering

Method 1 1. Resource Decompilation 2. Source Decompilation 3. Open jar with jd-gui tool Method two brief introduction Installation and use Method 1 apktool+dex2jar+jd-gui apktool function: the acquisition of resource files, you can extract image files and layout files for viewing dex2jar function: decompile apk i ...

Added by Aliz on Fri, 17 May 2019 08:12:04 +0300