How to draw a picture and follow the gesture

First look at the renderings: 1. Display the picture after touching in the specified area, and do not display the picture beyond the specified area 2. When sliding, it exceeds the specified area, and no picture is displayed 3. Release the finger, hide the picture, and touch the picture to display Implement the logi ...

Posted on Wed, 01 Apr 2020 02:06:41 -0400 by Toonster

Details of Retrofit

Here I'm going to talk about Android's common network request library, Retrofit. Retrofit can be regarded as an "upgraded version" of okhttp. Why? That's because its internal default is based on okhttp for encapsulation. 1. baseUlr of retrofit2 must end with / (slash), Otherwise, an IllegalArgument ...

Posted on Wed, 01 Apr 2020 01:57:19 -0400 by kalebaustin

The most detailed dynamic Toolbar development practice summary of the whole network, 99% of programmers are watching!

A comprehensive introduction to the use of Toolbar.Speaking of Toolbar, there may be a lot of developed children's shoes that are still unfamiliar. That's OK. Please look down. Initial knowledge of Toolbar Toolbar is a Material Design ing style navigation control that has been introduced since Android 5.0. Google highly recommends that you u ...

Posted on Wed, 01 Apr 2020 01:33:08 -0400 by ruiner17

[Android] simple implementation use WebView component to open web in App

About WebView components Please refer to: Android: This is a comprehensive & detailed strategy for using Webview How to implement embedded web in App In the new android project, if you want to implement the embedded Web, you must set the access network permission in android manifest.xml: <uses-permission and ...

Posted on Tue, 31 Mar 2020 23:20:44 -0400 by nokicky

Android dynamic update APP Icon

I. Introduction Now many apps will change their icons to corresponding icons on special days. People who understand the development will surely think that I haven't updated the APP. Why has the icon changed? 2, Renderings Apply the first installation renderings After the application is started, click &quot ...

Posted on Tue, 31 Mar 2020 23:13:27 -0400 by f8ball

Development and adaptation of Android large screen (advertising screen)

In the development of large screen advertising machine, it is found that the original design of the code in the advertising machine display adaptation problems.. Solutions found online.. Dimensional adaptation Create values of corresponding resolution under res, such as values-1280x720,values-1920x1080 Next, create ...

Posted on Tue, 31 Mar 2020 16:02:21 -0400 by neh

Learning notes "Android group English biography" -- Chapter 4 tips for using ListView

Learning notes "Android group English biography" -- Chapter 4 tips for using ListView Chapter contents: Chat list Method 1: Provides two xml message layouts (receiver's, sender's), using the @Override public int getItemViewType(int position) { ChatListBean bean = mData.get(position); return bean.getTy ...

Posted on Tue, 31 Mar 2020 13:20:55 -0400 by m4tt

Android custom View1

The goal is to make a calendar, but first step by step, first look at the renderings Simply put, the user-defined view is divided into seven parts, each part is written with a word, then the user-defined view can follow the finger to slide, and return to the initial position after lifting the finger, and click view to determine which view the ...

Posted on Tue, 31 Mar 2020 11:14:21 -0400 by guymrodgers

How to customize PopupWindow pop-up box and method introduction

Customizing information floating window with PopupWindow Click the shop icon on the map to pop up the floating window to display part of the shop information Specific effect Layout file <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android ...

Posted on Tue, 31 Mar 2020 09:45:08 -0400 by raydona

Android transition animation

Transition animation Scene Transition TransitionManager Code animation xml animation Transition animation Transition animation is a new animation framework introduced in Android 4.4 (API > = 19). In essence, it encapsulates attribute animation to facilitate the transition animation effect of Activity or View. ...

Posted on Tue, 31 Mar 2020 06:51:07 -0400 by MarCn