diff --git a/src/Android/Android.csproj b/src/Android/Android.csproj index 0dada7d71..5912ca8fc 100644 --- a/src/Android/Android.csproj +++ b/src/Android/Android.csproj @@ -63,8 +63,7 @@ - - + diff --git a/src/Android/Assets/AboutAssets.txt b/src/Android/Assets/AboutAssets.txt deleted file mode 100644 index ca673c644..000000000 --- a/src/Android/Assets/AboutAssets.txt +++ /dev/null @@ -1,19 +0,0 @@ -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"); diff --git a/src/Android/Assets/FontAwesome.ttf b/src/Android/Assets/FontAwesome.ttf new file mode 100644 index 000000000..35acda2fa Binary files /dev/null and b/src/Android/Assets/FontAwesome.ttf differ diff --git a/src/Android/Resources/AboutResources.txt b/src/Android/Resources/AboutResources.txt deleted file mode 100644 index cb30f20b1..000000000 --- a/src/Android/Resources/AboutResources.txt +++ /dev/null @@ -1,50 +0,0 @@ -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. diff --git a/src/App/MainPage.xaml b/src/App/MainPage.xaml index c135c150b..88351115c 100644 --- a/src/App/MainPage.xaml +++ b/src/App/MainPage.xaml @@ -1,7 +1,6 @@  @@ -9,6 +8,15 @@ diff --git a/src/iOS/Info.plist b/src/iOS/Info.plist index 905dda7fc..8807e9ef5 100644 --- a/src/iOS/Info.plist +++ b/src/iOS/Info.plist @@ -36,5 +36,9 @@ Assets.xcassets/AppIcon.appiconset CFBundleShortVersionString 2.0.0 + UIAppFonts + + FontAwesome.ttf + diff --git a/src/iOS/Resources/FontAwesome.ttf b/src/iOS/Resources/FontAwesome.ttf new file mode 100644 index 000000000..35acda2fa Binary files /dev/null and b/src/iOS/Resources/FontAwesome.ttf differ diff --git a/src/iOS/iOS.csproj b/src/iOS/iOS.csproj index 6059350bb..e9d9c4dab 100644 --- a/src/iOS/iOS.csproj +++ b/src/iOS/iOS.csproj @@ -95,6 +95,7 @@ +