You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app-resources.md
+79-6Lines changed: 79 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,9 @@ title: App_Resources
4
4
5
5
# Understanding App_Resources
6
6
7
-
This page serves as a quick reference to understand how most settings in App_Resources affect the look of a NativeScript app.
7
+
The App_Resources folder contains platform-specific resources of the application (icons, configuration files, native code, etc.). An application that supports both Android and iOS would therefore contain a subfolder for each platform.
8
+
9
+
This page serves as a quick reference to understand how most settings in App_Resources affect behavior and the the look of a NativeScript app.
8
10
9
11
**Quick Links:**
10
12
[[toc]]
@@ -21,15 +23,86 @@ Here we are showing the default look of a few elements (no custom styling applie
21
23
22
24
```bash
23
25
App_Resources/
24
-
|- Android
25
-
|- src/main/res
26
-
|- values # Default Values
27
-
|- values-v21 # Values for API 21+
28
-
|- values-v29 # Values for API 29+
26
+
├─ Android/
27
+
│ └─ src/main/res/
28
+
│ ├─ values/ # Default Values
29
+
│ ├─ values-v21/ # Values for API 21+
30
+
│ └─ values-v29/ # Values for API 29+
31
+
└─ ... more
29
32
```
30
33
31
34
Values can be overriden on specific API levels by making the changes in the corresponding directories.
32
35
36
+
### Adding native code to an application
37
+
38
+
There are different ways to add native code to an Android application. You can add Java JAR files or Java and/or Kotlin source files in `App_Resources/Android/libs` and `App_Resources/Android/src` respectively, e.g.:
Copy file name to clipboardExpand all lines: development-workflow.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -232,12 +232,12 @@ Follow the official documentation on [Creating and Managing Virtual Devices](htt
232
232
233
233
#### Creating Android Virtual Device via command line tool
234
234
235
-
The `avdmanager` is a tool that allows you to create and manage Android Virtual Devices (AVDs) from the command line. The `avdmanager` is provided in the Android SDK Tools package (25.3.0 and higher) and is located in`<ANDROID_HOME_PATH_HERE>/tools/bin/`. For more information about the avdmanager and how to use it to create AVDs, see the [official avdmanager documentation](https://developer.android.com/studio/command-line/avdmanager.html).
235
+
The `avdmanager` is a tool that allows you to create and manage Android Virtual Devices (AVDs) from the command line. The `avdmanager` is provided in the Android SDK Tools package (25.3.0 and higher) and is located in`<ANDROID_HOME_PATH_HERE>/cmdline-tools/latest/bin/`. For more information about the avdmanager and how to use it to create AVDs, see the [official avdmanager documentation](https://developer.android.com/studio/command-line/avdmanager).
0 commit comments