Crossplatform App der Caritas (Versuch).
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

AboutAssets.txt 644B

12345678910111213141516171819
  1. Any raw assets you want to be deployed with your application can be placed in
  2. this directory (and child directories) and given a Build Action of "AndroidAsset".
  3. These files will be deployed with your package and will be accessible using Android's
  4. AssetManager, like this:
  5. public class ReadAsset : Activity
  6. {
  7. protected override void OnCreate (Bundle bundle)
  8. {
  9. base.OnCreate (bundle);
  10. InputStream input = Assets.Open ("my_asset.txt");
  11. }
  12. }
  13. Additionally, some Android functions will automatically load asset files:
  14. Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");