This allows users to set splash layouts in the Activities' onCreate method
by passing their splash view to setContentView in onCreate.
```java
public class MainActivity extends NavigationActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
View splash = new View(this);
splash.setBackgroundColor(Color.RED);
setContentView(splash);
}
}
```
|
|
||
| 31 |
|
31 |
|
| 32 |
|
32 |
|
| 33 |
|
33 |
|
| 34 |
|
|
|
| 35 |
|
34 |
|
| 36 |
|
35 |
|
| 37 |
|
36 |
|
|
|
||
| 105 |
|
105 |
|
| 106 |
|
106 |
|
| 107 |
|
107 |
|
|
108 |
|
|
|
109 |
|
|
|
110 |
|
|
| 108 |
|
111 |
|
| 109 |
|
112 |
|
| 110 |
|
113 |
|
|
|
||
| 88 |
|
88 |
|
| 89 |
|
89 |
|
| 90 |
|
90 |
|
| 91 |
|
|
|
| 92 |
|
91 |
|
| 93 |
|
92 |
|
| 94 |
|
93 |
|
|
|
||
| 105 |
|
104 |
|
| 106 |
|
105 |
|
| 107 |
|
106 |
|
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
| 108 |
|
114 |
|
| 109 |
|
115 |
|
| 110 |
|
|
|
| 111 |
|
116 |
|
| 112 |
|
117 |
|
| 113 |
|
118 |
|