Focus on technology, enjoy life! --Yang Zhou qq:804212028
original link: http://blog.csdn.net/y18334702058/article/details/44624305
This article may exist the reference or the use of some external resources, if there is any infringement, please contact me!
- Topics: Activity Learning
-activity is the user and Application Interaction window, on which can be placed buttons, text boxes and other controls, in short, the Android UI part, on the phone or tablet screen you see the interface is it!
activity startup mode
Portal: http://blog.csdn.net/y18334702058/article/details/44544469
Activity life Cycle
Portal: http://blog.csdn.net/y18334702058/article/details/44467633
Activity full screen and hide title bar
Core code:
requestWindowFeature(Window.FEATURE_NO_TITLE);//去标题 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);//全屏显示
If the above code is to be written before Activity.setcontentview (), it is not valid.
Activity switching between the two
Core code:
new Intent();intent.setClass(Activity1.this, Activity2.class);startActivity(intent);
The implementation jumps from Activity1 to Activity2.
Focus on technology, enjoy life! --Yang Zhou qq:804212028
Original link: http://blog.csdn.net/y18334702058/article/details/44624305
Step by Step _android Development Course [3]_activity Study