Crossplatform App der Caritas (Versuch).
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

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");