initial
50
Billing/Billing.Android/Resources/AboutResources.txt
Normal file
@@ -0,0 +1,50 @@
|
||||
Images, layout descriptions, binary blobs and string dictionaries can be included
|
||||
in your application as resource files. Various Android APIs are designed to
|
||||
operate on the resource IDs instead of dealing with images, strings or binary blobs
|
||||
directly.
|
||||
|
||||
For example, a sample Android app that contains a user interface layout (main.xml),
|
||||
an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
|
||||
would keep its resources in the "Resources" directory of the application:
|
||||
|
||||
Resources/
|
||||
drawable-hdpi/
|
||||
icon.png
|
||||
|
||||
drawable-ldpi/
|
||||
icon.png
|
||||
|
||||
drawable-mdpi/
|
||||
icon.png
|
||||
|
||||
layout/
|
||||
main.xml
|
||||
|
||||
values/
|
||||
strings.xml
|
||||
|
||||
In order to get the build system to recognize Android resources, set the build action to
|
||||
"AndroidResource". The native Android APIs do not operate directly with filenames, but
|
||||
instead operate on resource IDs. When you compile an Android application that uses resources,
|
||||
the build system will package the resources for distribution and generate a class called
|
||||
"Resource" that contains the tokens for each one of the resources included. For example,
|
||||
for the above Resources layout, this is what the Resource class would expose:
|
||||
|
||||
public class Resource {
|
||||
public class drawable {
|
||||
public const int icon = 0x123;
|
||||
}
|
||||
|
||||
public class layout {
|
||||
public const int main = 0x456;
|
||||
}
|
||||
|
||||
public class strings {
|
||||
public const int first_string = 0xabc;
|
||||
public const int second_string = 0xbcd;
|
||||
}
|
||||
}
|
||||
|
||||
You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main
|
||||
to reference the layout/main.xml file, or Resource.strings.first_string to reference the first
|
||||
string in the dictionary file values/strings.xml.
|
||||
29680
Billing/Billing.Android/Resources/Resource.designer.cs
generated
Normal file
BIN
Billing/Billing.Android/Resources/drawable-mdpi/bars.png
Normal file
|
After Width: | Height: | Size: 278 B |
BIN
Billing/Billing.Android/Resources/drawable-mdpi/bill.png
Normal file
|
After Width: | Height: | Size: 895 B |
BIN
Billing/Billing.Android/Resources/drawable-mdpi/calendar.png
Normal file
|
After Width: | Height: | Size: 536 B |
BIN
Billing/Billing.Android/Resources/drawable-mdpi/plus.png
Normal file
|
After Width: | Height: | Size: 588 B |
BIN
Billing/Billing.Android/Resources/drawable-mdpi/right.png
Normal file
|
After Width: | Height: | Size: 926 B |
BIN
Billing/Billing.Android/Resources/drawable-mdpi/settings.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
Billing/Billing.Android/Resources/drawable-mdpi/wallet.png
Normal file
|
After Width: | Height: | Size: 688 B |
BIN
Billing/Billing.Android/Resources/drawable-xhdpi/bars.png
Normal file
|
After Width: | Height: | Size: 509 B |
BIN
Billing/Billing.Android/Resources/drawable-xhdpi/bill.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
Billing/Billing.Android/Resources/drawable-xhdpi/calendar.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
Billing/Billing.Android/Resources/drawable-xhdpi/plus.png
Normal file
|
After Width: | Height: | Size: 893 B |
BIN
Billing/Billing.Android/Resources/drawable-xhdpi/right.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
Billing/Billing.Android/Resources/drawable-xhdpi/settings.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
Billing/Billing.Android/Resources/drawable-xhdpi/wallet.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
Billing/Billing.Android/Resources/drawable-xxhdpi/bars.png
Normal file
|
After Width: | Height: | Size: 863 B |
BIN
Billing/Billing.Android/Resources/drawable-xxhdpi/bill.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
Billing/Billing.Android/Resources/drawable-xxhdpi/calendar.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
Billing/Billing.Android/Resources/drawable-xxhdpi/plus.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
Billing/Billing.Android/Resources/drawable-xxhdpi/right.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
Billing/Billing.Android/Resources/drawable-xxhdpi/settings.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
Billing/Billing.Android/Resources/drawable-xxhdpi/wallet.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
Billing/Billing.Android/Resources/drawable/bars.png
Normal file
|
After Width: | Height: | Size: 420 B |
BIN
Billing/Billing.Android/Resources/drawable/bill.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
Billing/Billing.Android/Resources/drawable/calendar.png
Normal file
|
After Width: | Height: | Size: 792 B |
BIN
Billing/Billing.Android/Resources/drawable/plus.png
Normal file
|
After Width: | Height: | Size: 734 B |
BIN
Billing/Billing.Android/Resources/drawable/right.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
Billing/Billing.Android/Resources/drawable/settings.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
Billing/Billing.Android/Resources/drawable/wallet.png
Normal file
|
After Width: | Height: | Size: 1002 B |
BIN
Billing/Billing.Android/Resources/drawable/xamarin_logo.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/launcher_background" />
|
||||
<foreground android:drawable="@mipmap/launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/launcher_background" />
|
||||
<foreground android:drawable="@mipmap/launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
BIN
Billing/Billing.Android/Resources/mipmap-hdpi/icon.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 11 KiB |
BIN
Billing/Billing.Android/Resources/mipmap-mdpi/icon.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
BIN
Billing/Billing.Android/Resources/mipmap-xhdpi/icon.png
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
|
After Width: | Height: | Size: 18 KiB |
BIN
Billing/Billing.Android/Resources/mipmap-xxhdpi/icon.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 33 KiB |
BIN
Billing/Billing.Android/Resources/mipmap-xxxhdpi/icon.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 51 KiB |
7
Billing/Billing.Android/Resources/values/colors.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="launcher_background">#FFFFFF</color>
|
||||
<color name="colorPrimary">#183153</color>
|
||||
<color name="colorPrimaryDark">#2B0B98</color>
|
||||
<color name="colorAccent">#2B0B98</color>
|
||||
</resources>
|
||||
18
Billing/Billing.Android/Resources/values/styles.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<resources>
|
||||
|
||||
<style name="MainTheme" parent="MainTheme.Base">
|
||||
<!-- As of Xamarin.Forms 4.6 the theme has moved into the Forms binary -->
|
||||
<!-- If you want to override anything you can do that here. -->
|
||||
<!-- Underneath are a couple of entries to get you started. -->
|
||||
|
||||
<!-- Set theme colors from https://aka.ms/material-colors -->
|
||||
<!-- colorPrimary is used for the default action bar background -->
|
||||
<!--<item name="colorPrimary">#2196F3</item>-->
|
||||
<!-- colorPrimaryDark is used for the status bar -->
|
||||
<!--<item name="colorPrimaryDark">#1976D2</item>-->
|
||||
<!-- colorAccent is used as the default value for colorControlActivated
|
||||
which is used to tint widgets -->
|
||||
<!--<item name="colorAccent">#FF4081</item>-->
|
||||
</style>
|
||||
</resources>
|
||||