VideoView realizes the video welcome effect on the guide page, super simple but very cool

Android advanced control (4) -- VideoView realizes the video welcome effect of the guide page, super simple but very cool Do you feel particularly excited about the dazzling guide page when the new version of QQ space is updated? Haha, in fact, it's really simple and easy to implemen ...

Posted on Thu, 02 Apr 2020 08:19:57 -0400 by jfdutcher

Tool class: limit EditText to enter decimal places, and input according to the amount format

It is often necessary to set EditText in the APP to input only according to the amount format, just sort out a tool class, which can be directly copied and pasted in the future. Um... Laziness makes one progress! First of all, you can limit the length of EditText. If it's money, a small target is enough. Um... Add ...

Posted on Thu, 02 Apr 2020 06:42:14 -0400 by haddydaddy

Material Design: Android advanced light

Next chapter Advanced light of Android -- new features of Android No1: Components: 1) Bottom sheet 2) Cards 3) Prompt box - Dialogs 4) Menus 5) Selector 6) Slider control Sliders 7) Progress and dynamics 8) Snapbar and Toast 9)Tab No2: Snackbar Contains text messages and an optional action button Snackbar.make(activity_main,"Title",Snackbar. ...

Posted on Thu, 02 Apr 2020 05:27:52 -0400 by cpetercarter

GridView using BaseAdapter to implement grid view

Final rendering: 1.activity.xml layout file <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <GridView ...

Posted on Thu, 02 Apr 2020 05:02:30 -0400 by oliverw92

New implementation of Android sliding suspension ceiling effect

Reprinted from: http://blog.csdn.net/gemgaozhen/article/details/52371082 "comments"  Recently, the project needs to achieve the effect as shown in the figure, that is, when the course introduction is sliding, the column is floating from top to top, and the sliding controls inside continue to slide. Baidu has ...

Posted on Thu, 02 Apr 2020 04:10:46 -0400 by Bullet

Android Development: file permissions

Make a simple interface, generate four buttons, press four permissions to create a new file: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools ...

Posted on Thu, 02 Apr 2020 01:09:20 -0400 by cjacks

How to change fonts globally in Android

When we develop Android programs, we usually encounter the need to change the global font. There are three solutions I can think of at present. Let's analyze one by one: The first way is to customize the control. There is no doubt that this will solve our problem. We only need to replace the control we used before with our cust ...

Posted on Thu, 02 Apr 2020 00:58:27 -0400 by amp_rsa

On the response of two click events when checkboxes are nested in ListView

On the response of two click events when checkboxes are nested in ListView In the near future, the company's project needs to add the select all / deselect all function, and the project used the ListView+CheckBox scheme before, and kept the click event of ListView's item and the click event of CheckBox at the same time ...

Posted on Wed, 01 Apr 2020 21:23:56 -0400 by kristy7

Android animation foundation transform animation case (2)

I've talked about blending transform Animation before. What I'm going to say here is to write an Animation set (we know that there is a set container in JAVA, and the characteristics of the set container are: 1. Disorder; 2. No repetitive elements. Set in Mathematics) is used to store multiple Animation objects. This is ...

Posted on Wed, 01 Apr 2020 18:33:23 -0400 by izy

Learn the multi layout use of ListView (with EditText's editable state switch)

Learn the multi layout use of ListView (with EditText's editable state switch) 1, Key adapters Tell me about my problems: Because the type value returned by the getItemViewType I set is equal to the getViewTypeCount, the unknown ArrayIndexOutOfBoundsException is caused, which has been explained in the code. package ...

Posted on Wed, 01 Apr 2020 17:33:26 -0400 by KyleVA