Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="za.co.cofairsoft.cof">
  3. <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="25" />
  4. <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  5. <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  6. <uses-permission android:name="android.permission.INTERNET" />
  7. <application android:label="COF@" android:icon="@drawable/icon">
  8. <meta-data android:name="android.max_aspect" android:value="2.1" />
  9. </application>
  10. <supports-screens android:xlargeScreens="true" />
  11.  
  12. <?xml version="1.0" encoding="utf-8"?>
  13. <MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
  14. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  15. xmlns:local="clr-namespace:COFATV2"
  16. x:Class="COFATV2.COFATV2Page">
  17. <MasterDetailPage.Master>
  18. <local:MasterPage x:Name="masterPage" />
  19. </MasterDetailPage.Master>
  20. <MasterDetailPage.Detail>
  21. <NavigationPage>
  22. <x:Arguments>
  23. <local:UserInfo />
  24. </x:Arguments>
  25. </NavigationPage>
  26. </MasterDetailPage.Detail>
  27.  
  28. <?xml version="1.0" encoding="UTF-8"?>
  29. <resources>
  30. <style name="MyTheme" parent="MyTheme.Base">
  31. </style>
  32. <!-- Base theme applied no matter what API -->
  33. <style name="MyTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
  34. <!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
  35. <item name="windowNoTitle">true</item>
  36. <!--We will be using the toolbar so no need to show ActionBar-->
  37. <item name="windowActionBar">false</item>
  38. <!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette-->
  39. <!-- colorPrimary is used for the default action bar background -->
  40. <item name="colorPrimary">#bf1f27</item>
  41. <!-- colorPrimaryDark is used for the status bar -->
  42. <item name="colorPrimaryDark">#BC0009</item>
  43. <!-- colorAccent is used as the default value for colorControlActivated
  44. which is used to tint widgets -->
  45. <item name="colorAccent">#bf1f27</item>
  46. <!-- You can also set colorControlNormal, colorControlActivated
  47. colorControlHighlight and colorSwitchThumbNormal. -->
  48. <item name="windowActionModeOverlay">true</item>
  49. <item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item>
  50. </style>
  51. <style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
  52. <item name="colorAccent">#bf1f27</item>
  53. </style>
  54. <style name="splashscreen" parent="MyTheme.Base">
  55. <item name="android:windowBackground">@drawable/splash_centered</item>
  56. <item name="android:windowNoTitle">true</item>
  57. </style>
  58.  
  59. [Activity(Label = "COFATV2.Droid", Icon = "@drawable/icon", Theme = "@style/splashscreen", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
  60. public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
  61. {
  62. protected override void OnCreate(Bundle bundle)
  63. {
  64. TabLayoutResource = Resource.Layout.Tabbar;
  65. ToolbarResource = Resource.Layout.Toolbar;
  66.  
  67. base.OnCreate(bundle);
  68.  
  69. global::Xamarin.Forms.Forms.Init(this, bundle);
  70.  
  71. LoadApplication(new App());
  72. }
  73.  
  74. public override void OnRequestPermissionsResult(int requestCode, string[] permissions, Permission[] grantResults)
  75. {
  76. PermissionsImplementation.Current.OnRequestPermissionsResult(requestCode, permissions, grantResults);
  77. }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement