Message push using the Alliance

Integrate: 1: first, go to his official website to register an account of the alliance. Transfer gate: Official website of the Alliance Then use it now to create a new app: the name of the app you created is the same as the name on your project. Be sure to write the package name correctly. The package name is the packag ...

Posted by sbarros on Thu, 02 Jan 2020 03:12:23 +0100

Android custom control ---- inherit ViewGroup sideslip menu 3, common sideslip menu, add menu switch button (end)

Project structure: Train of thought: How to open and close a menu this.smoothScrollTo(0, 0) when opened; the slide menu displays This.smoothscrollto (mmmenuwidth, 0) when closed; menu hidden Write a button outside and click the event to call the toggle method Specific code: In the custom control SlidingMenu package c ...

Posted by WiseGuy on Thu, 02 Jan 2020 02:12:47 +0100

The layout and simple application of activity& intent

Creation of activity First, a myactivity is automatically generated, Mainactivity inherits the class of Activity Override the onCreat method, Call the setContentView method again in the OnCreate method Set the layout to be displayed in the activity through setContentView This creates an activity Use of activity However, be ...

Posted by 0p3n_p0rT on Wed, 01 Jan 2020 19:53:07 +0100

Android self implementation percentage layout

In development, component layout is the work that everyone must face in daily development. For Android, there are five common layouts, namely: LinearLayout (linear layout) Tablelayout (table layout) Relativelayout Absolute layout FrameLayout (frame layout) However, if we can layout the interface in a percentage way in th ...

Posted by goatboy on Wed, 01 Jan 2020 11:32:06 +0100

The implementation of Okhttp multi network communication

In recent project requirements, android needs to be able to access the internal and external networks at the same time, that is, different communications go through different networks, and it is feasible to check relevant information, but certain conditions are required 1. Prerequisites: 1) android system version on the cont ...

Posted by jordan00 on Wed, 01 Jan 2020 10:22:38 +0100

Layout Android interface with linear layout manager

In the layout file activity > main.xml, add two nested < LinearLayout > in the vertical linear layout manager < LinearLayout > added by default, then set the first < LinearLayout > arrangement as horizontal arrangement, add four horizontally side-by-side TextView components, set the text alignment of TextVi ...

Posted by alex2046 on Wed, 01 Jan 2020 08:16:04 +0100

How do I align the view at the bottom of the screen?

This is my layout code; <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:text="@string/welcome" android:id="@+id/TextV ...

Posted by billy2shoe on Wed, 01 Jan 2020 00:53:24 +0100

ionic4 calls internal App of mobile phone

ionic4 calls internal App of mobile phone There are many significant changes in the upgrading of ionic3 to ionic4. As ionic4 is still in the bate version, there are many areas that have not been improved. Now let's talk about how to call the APP inside the mobile phone in the ionic4 bate version. 1, Install plug-ins that can d ...

Posted by Jbert2 on Tue, 31 Dec 2019 08:16:45 +0100

TUS for File Breakpoint Continuation

TUS is an open source continuation framework for breakpoints on github. The server side is written in go, and the client side supports many kinds. It supports js, andorid, java and IOS.This article will do some analysis on the android side. Let's start with the core part of the framework, which is how to continue.When it comes to continuation, ...

Posted by ady01 on Mon, 30 Dec 2019 22:51:42 +0100

Android local picture cache

Crap Every time I read a picture from memory, it's ok if the picture is small. If the picture is large, it's hard. It's slow. It's easy to crash because of memory problems. Later, the cache was added and read from the cache. It was found that it would still explode. After checking, it was found that more than 3M of a photo directly exploded t ...

Posted by Operandi on Mon, 30 Dec 2019 20:48:38 +0100