Video bullet screen source code, extract color source code, music player source code, etc., music playerAndroid featured source code: a multi-functional tag layout source code UI library, it is applicable to the source code of How to launch bullet
ArrayList collection, arraylisthashmap
1. In Android, how does one pass the ArrayList in an Activity to another activity?
Eg:
Storage: intent. putExtra ("arrayList", dataList );(Remember to force type conversion ):ArrayList dataList = new
Viewpager + layout
Recently, I am working on a Q & A APP, and the most important of which is the Q & A card. What should I do with the answer sheet?
1. Insert data into the SQLite Database
2. Create an entity object package, create an object
EditText implements the input expression and edittext implements the expression.EditText implements the input expression
I. Introduction
EditText is a subclass of TextView, and EditText can be used by TextView tools. editText uses ImageSpan of
SpannableString implements the link Effect of TextView, and textview is converted to stringSpannableString implements the link Effect of TextView
I. Introduction
TextView uses SpannableString to set compound textTextView is usually used to display
Standard and activitystandard of activity Startup ModeStandard of activity Startup Mode
I. Introduction
This mode is the default, and we do not need to set it ourselves.
Just like a stack.
If we quit, we quit one by one, which is actually what
SingleTask and activitysingletask in activity Startup ModeSingleTask in activity Startup Mode
I. Introduction
If another application calls C2 and C2 at the bottom of the stack, if C1, C3, and C2 are used in the program, then C2 calls onNewIntant,
SingleTop and activitysingletop in activity Startup ModeSingleTop in activity Startup Mode
I. Introduction
Ii. Setting Method
In AndroidManifest. xml, configure the page to be set to singleTop startup mode.
Android: launchMode = "singleTop">
Activity Status is saved and restored. activity Status is saved.Activity Status saving and recovery
I. Introduction
1. Save the activity status
* Save the activity status. The onSaveInstanceState method automatically saves the status of the
Queries the usage of computer ports.Search for computer port usage
For example, check the usage of port 5037 (adb port ).
I. Use the netstat-ano command
Find the port number 5037 and find the PID of the corresponding process
Then, in
Development pitfalls of setting background transparency for Activity, activity background
General method for setting transparent background for Activity
Method 1: In Manifest. xml, add the theme style directly to the Activity to be
You must not call setTag () on a view Glide is targeting when use Glide, settagtargeting
The following code is used by an Adapter that displays the RecyclerView of an image. When you click an image, it jumps to another Activity to display a large
Kotlin object: only one line of code can be used to create a secure singleton and one line of kotlin
By Antonio Leiva
Time: Jun 20,201 7
Link: https://antonioleiva.com/objects-kotlin/
The Kotlin object is another language element that Android
FragmentActivity + Fragment.
FragmentActivity + Fragment (fragment is displayed through hide and show) + Fragment (fragment is displayed through viewpager)
In Activity
// Enable the transaction FragmentTransaction ft = getsuppfrfragmentmanager ().
Application, applicationform
Base class for maintaining global application state. You can provide your own implementation by creating a subclass and specifying the fully-qualified name of this subclass as the "android:name" attribute in your
OnTouch and onTouchEvent, ontouch
1. onTouch and onTouchEvent are both called in dispatchTouchEvent (). onTouch takes precedence over onTouchEvent. If the onTouch method returns true to consume the event, the onTouchEvent will not be executed. In
Java reflection is used in Android, and java reflection android
Reprinted please indicate the source: http://www.cnblogs.com/cnwutianhao/p/6606687.html
If you want to call A private Method B in Class A and use it in class C. Generally, direct call
Android context and androidcontext
Context:
1. It describes the information of an application environment, that is, the context.2. This class is an abstract class. Android provides the specific implementation class of this abstract class.3. We can
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service