Summary of 8 Android Dialog usage methods

Author: @ gzdaijie This article is original by the author. Please indicate the source of Reprint: https://www.cnblogs.com/gzdaijie/p/5222191.html Catalog 1. Write in front 2. Code example 2.1 General Dialog (Figure 1 and Figure 2) 2.2 list Dialog (Figure 3) 2.3 radio Dialog (Figure 4) 2.4 multi select Dialog (Figure 5) 2.5 wait for Di ...

Posted by netbros on Fri, 01 May 2020 15:18:07 -0700

Recommend Huploadify to upload pictures or files

In the previous project, uploadify(flash version) was used to realize the image upload function. The upload plug-in browser that relies on flash is not compatible enough, so Huploadify was used to replace uploadify for the following reasons: 1. Does not depend on flash. 2. The library file size is one third of uploadify. 3. Browser c ...

Posted by dr.wong on Fri, 01 May 2020 15:17:11 -0700

Activity management stack tool class - ActivityManager

Four startup modes and characteristics of Activity standard: each time you start, a new instance is created and placed on top of the stack. (the Activity of this mode cannot be started with the Context of non Activity class. If the start needs to be added with the flag of "flag" Activity "new" task to create a stack). singl ...

Posted by azeem123456 on Fri, 01 May 2020 10:56:58 -0700

ios entry advertising

This article introduces a function that almost every APP needs to use. The APP starts the entry advertisement. I originally wanted to make ios android into Demo and put it on github. Considering the time relationship, it's OK. But I want to make sure that the code here can be run after copying and pasting, because I am also the God of copying a ...

Posted by Zetusko on Fri, 01 May 2020 04:11:30 -0700

A doodle board control

This time, it brings a doodle control. In the previous project, a function needs to be done: the user signs on the screen, and then saves the signature as a picture. So I wrote this Control, named DrawView, here to share with you. First of all, let's talk about the principle. The principle is actually very simple. The one we draw on the scr ...

Posted by Hexxx on Thu, 30 Apr 2020 23:49:42 -0700

include tag of android UI optimization

It is used to reuse layout and reduce code redundancy. It is simple to use, as follows: Included layout Title bar.xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/inner_id" android:layout_width="match_parent" ...

Posted by dgreenhouse on Thu, 30 Apr 2020 21:06:29 -0700

View large scale animation by imitating wechat QQ

Today, I'm going to write an article about clicking the small picture to view the zooming animation of the large picture. The effect picture is as follows: First of all, let's talk about the idea of implementation: when you see this effect picture, you don't even need to think about it. You can use attribute animation or compensation animati ...

Posted by el-sid on Thu, 30 Apr 2020 18:12:11 -0700

1802 file record daily log

Download the demo of this article: File logging demo There will be a lot of information in the daily operation of app. Generally, we upload the information in daily use to the server, but this method can't be used without network environment. The solution is that we can save these records in a local file and upload the ...

Posted by zman on Thu, 30 Apr 2020 17:21:28 -0700

Fresco basic use

Edit the build.gradle file: dependencies { // Other dependencies compile 'com.facebook.fresco:fresco:0.12.0' } network right <uses-permission android:name="android.permission.INTERNET" /> The following dependencies need to be added as required: dependencies { // When the machine on API < 14 support ...

Posted by vitalyb on Thu, 30 Apr 2020 15:05:32 -0700

Android -- use activity alias to avoid short cut re creation

<activity android:name=".ui.MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> <meta-data android:name="android.app ...

Posted by teo99 on Thu, 30 Apr 2020 13:52:31 -0700