gradle configuration skills for a complete Android project

Gradle configuration skills I summarized four gradle configuration skills, which can be more convenient for debugging and packaging in Android projects 1. Use gradle's custom Property to realize unified management of configuration and dependency of Android project 2. Use gradle's produc ...

Posted on Tue, 30 Jun 2020 12:40:10 -0400 by Tomcat13

Four Android event handling methods

There are four ways to handle the event, such as the screen shot and the button 1. Use anonymous inner class processing xml code <Button android:id="@+id/btn1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Anonymous Inner Class " ...

Posted on Tue, 30 Jun 2020 12:21:15 -0400 by andrewburgess

Android: how to use ViewPage

catalog 1. Definition ViewPager is a class in the Android extension package v4 package android.support.v4.view.ViewPager Similar to LinearLayout, the ViewPager class directly inherits the ViewGroup class and is a container in which we need to add the content we want to display. Similar to ListV ...

Posted on Mon, 29 Jun 2020 02:15:32 -0400 by zoffi

Android removes an Item entry from the ListView

I made a bug that means I get all the apps in a quick boot, and then for some reason I need to remove an app entry, which I do: 1. Use this tool class to get all applications: public class ApkTool { static String TAG = "ApkTool"; private Context mContext; public static List<AppInfo> mLocalInstallApp ...

Posted on Sun, 28 Jun 2020 12:10:11 -0400 by panoramical

Why does intent inherit the parseable or serialized interface when passing data, and does not implement any methods

1) Permanently save the object and save the byte sequence of the object to the local file; 2) Passing objects in the network by serializing them; 3) Passing objects between processes by serialization   There are two options to implement serialization in Android: one is to implement the Serializab ...

Posted on Sat, 27 Jun 2020 03:51:13 -0400 by noon

Class notes: Android UI controls

Common UI controls: TextView: <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello World!" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout ...

Posted on Fri, 26 Jun 2020 02:40:45 -0400 by scrap0346

How to render the current geographic location (province, city) to the page? (Baidu map API)

Effect style Direct up component: (there are detailed error reports and solutions later) 1. Open the indet.html File, insert script label into: (there is a detailed tutorial after obtaining AK value) <script type="text/javascrip ...

Posted on Fri, 26 Jun 2020 01:00:27 -0400 by bguzel

Talk Android together (247th time: data transfer between fragments in Android 5)

Hello, ladies and gentlemen, last time we talked about the example of data transfer between fragments in Android, this time we will continue to talk about this example. Don't talk about it. Turn it around. Let's Talk Android! Dear Sirs, we introduced the use of fragment parameters to transfer data betwe ...

Posted on Thu, 25 Jun 2020 23:51:32 -0400 by ryanlwh

Android build process - Part 2

Android build process - Part 2 Pre operation task list How to view a task class Task1: checkDebugClasspath 1. input/output 2. How to find the task implementation class 3. Core class (AppClasspathCheckTask) Task2: preDebugBuild 1. input/ouput 2. Core class (AppPreBuildTask) Task3: compileDebugAidl ...

Posted on Thu, 25 Jun 2020 22:42:13 -0400 by jason102178

04. Relative Layout of Android Development Foundation

Relative Layout of Android Development Foundation Relative layout, that is, the layout with reference objects.When we were young, we went to school, between classmates and classmates, who was on whose right and who was on whose left!This is for whom!The relative layout in Android is the same! There are two kinds, one is relative to the fathe ...

Posted on Thu, 25 Jun 2020 12:33:12 -0400 by pillot1005