From c4c0f3c887d627b6432551e96009c7aeecd4cdd8 Mon Sep 17 00:00:00 2001 From: aldrikboy Date: Sat, 9 Dec 2017 11:55:50 +0100 Subject: Add project files. --- Penguloon/Assets/AboutAssets.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Penguloon/Assets/AboutAssets.txt (limited to 'Penguloon/Assets') diff --git a/Penguloon/Assets/AboutAssets.txt b/Penguloon/Assets/AboutAssets.txt new file mode 100644 index 0000000..ee39886 --- /dev/null +++ b/Penguloon/Assets/AboutAssets.txt @@ -0,0 +1,19 @@ +Any raw assets you want to be deployed with your application can be placed in +this directory (and child directories) and given a Build Action of "AndroidAsset". + +These files will be deployed with you package and will be accessible using Android's +AssetManager, like this: + +public class ReadAsset : Activity +{ + protected override void OnCreate (Bundle bundle) + { + base.OnCreate (bundle); + + InputStream input = Assets.Open ("my_asset.txt"); + } +} + +Additionally, some Android functions will automatically load asset files: + +Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); \ No newline at end of file -- cgit v1.2.3-70-g09d2