1. Draw the background.
2. Draw the content of the View itself.
3. Draw the child View.4. Draw decoration content (such as scroll bars).
In Theme
the window you can specify the background Activity
of ICON
, APP overall text color, etc., if no attributes are specified, it will use default property , so our black and white and black and empty DecorView
closely, Style we decided to set the APP Is it a white screen or a black screen.
1. If Black
the theme of the selected series is selected, the Activity
screen will be black when jumping:
- 1
- 1
2. If Light
the theme of the selected series is selected, the Activity
screen will be blank when jumping:
- 1
- 2
- 3
- 4
- 1
- 2
- 3
- 4
After the above setting, when the APP and Activity
startup, our StartingWindow
theme will be applied with our transparent background. There is indeed no white or black screen when jumping, but this setting will have the following consequences:
1. SplashActivity
After setting, after the user clicks on our APP icon, the contentView will be displayed after about 2 seconds. This creates the illusion that the APP starts slowly Activity
, but it has already started, but it background
is transparent. At this time, clicking on other places on the desktop is invalid. This runs counter to the original intention of Google, so we must continue to look down.
2. After setting other activities, overridePendingTransition
the animation of closing the activity through the set start and close will be invalid. Need to rewrite the following animations in style:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
3、Activity之间的跳转可能偶尔会看到桌面一闪而过(如果SplashActivity和其他Activity都设置了透明)。