Transfer of values between Activity and Activity,Activity and Fragment,Fragment and Fragment

1, Value passing between Activity and Activity First create two activities, one is MainActivity and the other is SecondActivity Then add a Button in activity main.xml, the code is as follows: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app ...

Posted by TheHyipSite on Mon, 06 Jan 2020 07:35:23 +0100

android adds a triangle icon in the upper right corner and displays text inside the icon

The new module of item 1 has an icon on the right which is displayed in the upper right corner, as shown in the figure After thinking about how to use shape to draw a background, put it in the upper right corner, draw out the words as if there is a problem in putting them on the display, google it and find a piece of informati ...

Posted by incarnate on Sun, 05 Jan 2020 19:02:44 +0100

Android layout manager - use FrameLayout to display stacked squares and foreground photos

scene Android layout manager - use LinearLayout to realize simple login window layout: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/103838995 Frame layout manager FrameLayout     Realization effect       Note: Blog: https://blog.csdn.net/badao_liumang_qizhi Pay attention to the public address Domineering procedural ape Get progr ...

Posted by WDPEjoe on Sun, 05 Jan 2020 18:48:37 +0100

The implementation of Android carousel pictures

I. principle First of all, put these pictures and some text to be rotated in different data sets. When the program starts, a set of pictures and text data will be displayed by default, and then a timer will be started to replace the displayed pictures and text data every other period of time. At the same time, some animation e ...

Posted by dink87522 on Sun, 05 Jan 2020 09:46:08 +0100

Inheritance and initialization of classes in python

Daily Star Language: "Do you know what is the biggest problem of poverty when you are young?" "What" "It's a poor mistake to think that everything you can't get is poor. Eyes are fixed on distant places, but can't see the beauty of a flower nearby. " September 7, 2018 20:30:30 Friday Today, there is a problem. Wh ...

Posted by coellen on Sat, 04 Jan 2020 21:03:14 +0100

Android get memory information (RAM,ROM)

1, Brief introduction to RAM and ROM RAM refers to running memory. For example, the floating window of 360 mobile assistant often prompts that the running memory is more than 80%. It refers to running memory. The general size is a few G. ROM is the memory for storing data. For example, the "total space 31.6G, the remaini ...

Posted by glcarlstrom on Sat, 04 Jan 2020 07:21:32 +0100

Magic changes ScrollView to become Android's automatic carousel artifact

One of the requirements of the APP in the previous work is to cycle and rotate a bunch of pictures and texts. So I used the ScrollView magic to change this requirement. The following is the operation screen of Demo. The TextView with the number from 0 to 100 is automatically rotated:     The specific implementation is as f ...

Posted by ccbayer on Sat, 04 Jan 2020 05:14:31 +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

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

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