Skip to content

Commit cfac9dc

Browse files
authored
Merge pull request #287 from NativeScript/update-sidedrawer-demo
chore: update 'sidedrawer' demo for nativescript-ui-sidedrawer v8.0.0
2 parents d91020f + ab07ed3 commit cfac9dc

13 files changed

Lines changed: 27 additions & 34 deletions

File tree

sidedrawer/app/App_Resources/Android/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<activity
2929
android:name="com.tns.NativeScriptActivity"
3030
android:label="@string/title_activity_kimera"
31-
android:configChanges="keyboardHidden|orientation|screenSize"
31+
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode"
3232
android:theme="@style/LaunchScreenTheme">
3333

3434
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />

sidedrawer/app/App_Resources/Android/src/main/res/values/styles.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
<!-- theme to use AFTER launch screen is loaded-->
2323
<style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar">
24+
<item name="android:forceDarkAllowed">true</item>
2425
<item name="toolbarStyle">@style/NativeScriptToolbarStyle</item>
2526

2627
<item name="colorPrimary">@color/ns_primary</item>

sidedrawer/app/examples/events/events.component.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ button {
33
horizontal-align: center;
44
}
55

6-
.drawerContentText {
6+
RadSideDrawer .drawerContentText {
77
font-size: 13;
88
padding: 10;
99
}
1010

11-
.drawerContentButton {
11+
RadSideDrawer .drawerContentButton {
1212
margin: 10;
1313
horizontal-align: left;
1414
}

sidedrawer/app/examples/getting-started/getting-started.component.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ button {
44
horizontal-align: center;
55
}
66

7-
.drawerContentText {
7+
RadSideDrawer .drawerContentText {
88
font-size: 13;
99
padding: 10;
1010
}
1111

12-
.drawerContentButton {
12+
RadSideDrawer .drawerContentButton {
1313
margin: 10;
1414
horizontal-align: left;
1515
}

sidedrawer/app/examples/position/position.component.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@ button {
33
horizontal-align: center;
44
}
55

6-
.drawerContentText {
6+
RadSideDrawer .drawerContentText {
77
font-size: 13;
88
padding: 10;
99
}
1010

11-
.mainContent{
12-
background-color: white;
13-
}
14-
15-
.drawerContentButton {
11+
RadSideDrawer .drawerContentButton {
1612
margin: 10;
1713
horizontal-align: left;
1814
}

sidedrawer/app/examples/position/position.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</StackLayout>
2121
</ScrollView>
2222
</GridLayout>
23-
<ScrollView tkMainContent class="mainContent">
23+
<ScrollView tkMainContent>
2424
<StackLayout>
2525
<Label
2626
text="SideDrawer for NativeScript is shown from the left side of the app window by default.You can change this behavior by setting the drawerLocation property to Left, Top, Right or Bottom."

sidedrawer/app/examples/shadow/shadow.component.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@ button {
33
horizontal-align: center;
44
}
55

6-
.drawerContentText {
6+
RadSideDrawer .drawerContentText {
77
font-size: 13;
88
padding: 10;
99
}
1010

11-
.mainContent{
12-
background-color: white;
13-
}
14-
15-
.drawerContentButton {
11+
RadSideDrawer .drawerContentButton {
1612
margin: 10;
1713
horizontal-align: left;
1814
}

sidedrawer/app/examples/shadow/shadow.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</StackLayout>
2121
</ScrollView>
2222
</GridLayout>
23-
<ScrollView tkMainContent class="mainContent">
23+
<ScrollView tkMainContent>
2424
<StackLayout>
2525
<Label
2626
text="SideDrawer for NativeScript is shown from the left side of the app window by default.You can change this behavior by setting the drawerLocation property to Left, Top, Right or Bottom."

sidedrawer/app/examples/transitions/transitions.component.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ button {
77
background-color: white;
88
}
99

10-
.drawerContentButton {
10+
RadSideDrawer .drawerContentButton {
1111
margin: 10;
1212
horizontal-align: left;
1313
}
1414

15-
.mainContentlabel {
15+
RadSideDrawer .mainContentlabel {
1616
margin: 10;
1717
}
1818

sidedrawer/app/navigation/examples-list/examples-list.component.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@
77
text-align: left;
88
vertical-align: center;
99
font-size: 16;
10-
color:#404040;
1110
}

0 commit comments

Comments
 (0)