fix(android): unify status bar in templates (#116)
This commit is contained in:
Родитель
a4e0ab49e6
Коммит
42f2ca2e03
|
@ -3,6 +3,7 @@
|
|||
|
||||
<!-- Application theme -->
|
||||
<style name="AppTheme" parent="AppThemeBase">
|
||||
<item name="android:windowTranslucentStatus">true</item>
|
||||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
||||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
||||
</style>
|
||||
|
@ -19,5 +20,6 @@
|
|||
|
||||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||
<item name="android:elevation">4dp</item>
|
||||
<item name="android:paddingTop">24dp</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
<!-- Application theme -->
|
||||
<style name="AppTheme" parent="AppThemeBase">
|
||||
<item name="android:windowTranslucentStatus">true</item>
|
||||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
||||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
||||
</style>
|
||||
|
@ -19,5 +20,6 @@
|
|||
|
||||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||
<item name="android:elevation">4dp</item>
|
||||
<item name="android:paddingTop">24dp</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
<!-- Application theme -->
|
||||
<style name="AppTheme" parent="AppThemeBase">
|
||||
<item name="android:windowTranslucentStatus">true</item>
|
||||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
||||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
||||
</style>
|
||||
|
@ -19,5 +20,6 @@
|
|||
|
||||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||
<item name="android:elevation">4dp</item>
|
||||
<item name="android:paddingTop">24dp</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
<!-- Application theme -->
|
||||
<style name="AppTheme" parent="AppThemeBase">
|
||||
<item name="android:windowTranslucentStatus">true</item>
|
||||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
||||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
||||
</style>
|
||||
|
@ -19,5 +20,6 @@
|
|||
|
||||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||
<item name="android:elevation">4dp</item>
|
||||
<item name="android:paddingTop">24dp</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
<!-- Application theme -->
|
||||
<style name="AppTheme" parent="AppThemeBase">
|
||||
<item name="android:windowTranslucentStatus">true</item>
|
||||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
||||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
||||
</style>
|
||||
|
@ -19,5 +20,6 @@
|
|||
|
||||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||
<item name="android:elevation">4dp</item>
|
||||
<item name="android:paddingTop">24dp</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
<!-- Application theme -->
|
||||
<style name="AppTheme" parent="AppThemeBase">
|
||||
<item name="android:windowTranslucentStatus">true</item>
|
||||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
||||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
||||
</style>
|
||||
|
@ -19,5 +20,6 @@
|
|||
|
||||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||
<item name="android:elevation">4dp</item>
|
||||
<item name="android:paddingTop">24dp</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
<!-- Application theme -->
|
||||
<style name="AppTheme" parent="AppThemeBase">
|
||||
<item name="android:windowTranslucentStatus">true</item>
|
||||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
||||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
||||
</style>
|
||||
|
@ -19,5 +20,6 @@
|
|||
|
||||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||
<item name="android:elevation">4dp</item>
|
||||
</style>
|
||||
<item name="android:paddingTop">24dp</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
<!-- Application theme -->
|
||||
<style name="AppTheme" parent="AppThemeBase">
|
||||
<item name="android:windowTranslucentStatus">true</item>
|
||||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
||||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
||||
</style>
|
||||
|
@ -19,5 +20,6 @@
|
|||
|
||||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||
<item name="android:elevation">4dp</item>
|
||||
</style>
|
||||
<item name="android:paddingTop">24dp</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
<!-- Application theme -->
|
||||
<style name="AppTheme" parent="AppThemeBase">
|
||||
<item name="android:windowTranslucentStatus">true</item>
|
||||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
||||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
||||
</style>
|
||||
|
@ -19,5 +20,6 @@
|
|||
|
||||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||
<item name="android:elevation">4dp</item>
|
||||
</style>
|
||||
<item name="android:paddingTop">24dp</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -1,5 +1,5 @@
|
|||
import { ListViewEventData } from "nativescript-ui-listview";
|
||||
import { topmost } from "tns-core-modules/ui/frame";
|
||||
import { ItemEventData } from "tns-core-modules/ui/list-view";
|
||||
import { NavigatedData, Page } from "tns-core-modules/ui/page";
|
||||
|
||||
import { CarsListViewModel } from "./cars-list-view-model";
|
||||
|
@ -38,7 +38,7 @@ export function onNavigatingTo(args: NavigatedData): void {
|
|||
* Learn more about navigating and passing context in this documentation article:
|
||||
* https://docs.nativescript.org/core-concepts/navigation#navigate-and-pass-context
|
||||
*************************************************************/
|
||||
export function onCarItemTap(args: ListViewEventData): void {
|
||||
export function onCarItemTap(args: ItemEventData): void {
|
||||
const tappedCarItem = <Car>args.view.bindingContext;
|
||||
|
||||
topmost().navigate({
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<Page navigatingTo="onNavigatingTo"
|
||||
xmlns:lv="nativescript-ui-listview"
|
||||
xmlns="http://schemas.nativescript.org/tns.xsd" >
|
||||
|
||||
<ActionBar>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<Page shownModally="onShownModally"
|
||||
xmlns:lv="nativescript-ui-listview"
|
||||
xmlns="http://schemas.nativescript.org/tns.xsd">
|
||||
|
||||
<ActionBar title="{{ title }}" icon="">
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<Page navigatingTo="onNavigatingTo"
|
||||
xmlns:lv="nativescript-ui-listview"
|
||||
xmlns="http://schemas.nativescript.org/tns.xsd" >
|
||||
|
||||
<ActionBar>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<Page shownModally="onShownModally"
|
||||
xmlns:lv="nativescript-ui-listview"
|
||||
xmlns="http://schemas.nativescript.org/tns.xsd">
|
||||
|
||||
<ActionBar title="{{ title }}" icon="">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { ListViewEventData } from "nativescript-ui-listview";
|
||||
import { topmost } from "tns-core-modules/ui/frame";
|
||||
import { ItemEventData } from "tns-core-modules/ui/list-view";
|
||||
import { NavigatedData, Page } from "tns-core-modules/ui/page";
|
||||
|
||||
import { CarsListViewModel } from "./cars-list-view-model";
|
||||
|
@ -17,7 +17,7 @@ export function onNavigatingTo(args: NavigatedData): void {
|
|||
page.bindingContext = viewModel;
|
||||
}
|
||||
|
||||
export function onCarItemTap(args: ListViewEventData): void {
|
||||
export function onCarItemTap(args: ItemEventData): void {
|
||||
const tappedCarItem = <Car>args.view.bindingContext;
|
||||
|
||||
topmost().navigate({
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<Page navigatingTo="onNavigatingTo"
|
||||
xmlns:lv="nativescript-ui-listview"
|
||||
xmlns="http://schemas.nativescript.org/tns.xsd" >
|
||||
|
||||
<ActionBar>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<Page shownModally="onShownModally"
|
||||
xmlns:lv="nativescript-ui-listview"
|
||||
xmlns="http://schemas.nativescript.org/tns.xsd">
|
||||
|
||||
<ActionBar title="{{ title }}" icon="">
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
<!-- Application theme -->
|
||||
<style name="AppTheme" parent="AppThemeBase">
|
||||
<item name="android:windowTranslucentStatus">true</item>
|
||||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
||||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
||||
</style>
|
||||
|
@ -19,5 +20,6 @@
|
|||
|
||||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||
<item name="android:elevation">4dp</item>
|
||||
<item name="android:paddingTop">24dp</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -1,5 +1,4 @@
|
|||
<Page navigatingTo="onNavigatingTo"
|
||||
xmlns:lv="nativescript-ui-listview"
|
||||
xmlns="http://schemas.nativescript.org/tns.xsd">
|
||||
|
||||
<ActionBar>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<Page shownModally="onShownModally"
|
||||
xmlns:lv="nativescript-ui-listview"
|
||||
xmlns="http://schemas.nativescript.org/tns.xsd">
|
||||
|
||||
<ActionBar title="{{ title }}" icon="">
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
<!-- Application theme -->
|
||||
<style name="AppTheme" parent="AppThemeBase">
|
||||
<item name="android:windowTranslucentStatus">true</item>
|
||||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
||||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
||||
</style>
|
||||
|
@ -19,5 +20,6 @@
|
|||
|
||||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||
<item name="android:elevation">4dp</item>
|
||||
<item name="android:paddingTop">24dp</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
<!-- Application theme -->
|
||||
<style name="AppTheme" parent="AppThemeBase">
|
||||
<item name="android:windowTranslucentStatus">true</item>
|
||||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
||||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
||||
</style>
|
||||
|
@ -19,5 +20,6 @@
|
|||
|
||||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||
<item name="android:elevation">4dp</item>
|
||||
<item name="android:paddingTop">24dp</item>
|
||||
</style>
|
||||
</resources>
|
Загрузка…
Ссылка в новой задаче