Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="za.co.cofairsoft.cof">
- <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="25" />
- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
- <uses-permission android:name="android.permission.INTERNET" />
- <application android:label="COF@" android:icon="@drawable/icon">
- <meta-data android:name="android.max_aspect" android:value="2.1" />
- </application>
- <supports-screens android:xlargeScreens="true" />
- <?xml version="1.0" encoding="utf-8"?>
- <MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:local="clr-namespace:COFATV2"
- x:Class="COFATV2.COFATV2Page">
- <MasterDetailPage.Master>
- <local:MasterPage x:Name="masterPage" />
- </MasterDetailPage.Master>
- <MasterDetailPage.Detail>
- <NavigationPage>
- <x:Arguments>
- <local:UserInfo />
- </x:Arguments>
- </NavigationPage>
- </MasterDetailPage.Detail>
- <?xml version="1.0" encoding="UTF-8"?>
- <resources>
- <style name="MyTheme" parent="MyTheme.Base">
- </style>
- <!-- Base theme applied no matter what API -->
- <style name="MyTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
- <!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
- <item name="windowNoTitle">true</item>
- <!--We will be using the toolbar so no need to show ActionBar-->
- <item name="windowActionBar">false</item>
- <!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette-->
- <!-- colorPrimary is used for the default action bar background -->
- <item name="colorPrimary">#bf1f27</item>
- <!-- colorPrimaryDark is used for the status bar -->
- <item name="colorPrimaryDark">#BC0009</item>
- <!-- colorAccent is used as the default value for colorControlActivated
- which is used to tint widgets -->
- <item name="colorAccent">#bf1f27</item>
- <!-- You can also set colorControlNormal, colorControlActivated
- colorControlHighlight and colorSwitchThumbNormal. -->
- <item name="windowActionModeOverlay">true</item>
- <item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item>
- </style>
- <style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
- <item name="colorAccent">#bf1f27</item>
- </style>
- <style name="splashscreen" parent="MyTheme.Base">
- <item name="android:windowBackground">@drawable/splash_centered</item>
- <item name="android:windowNoTitle">true</item>
- </style>
- [Activity(Label = "COFATV2.Droid", Icon = "@drawable/icon", Theme = "@style/splashscreen", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
- public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
- {
- protected override void OnCreate(Bundle bundle)
- {
- TabLayoutResource = Resource.Layout.Tabbar;
- ToolbarResource = Resource.Layout.Toolbar;
- base.OnCreate(bundle);
- global::Xamarin.Forms.Forms.Init(this, bundle);
- LoadApplication(new App());
- }
- public override void OnRequestPermissionsResult(int requestCode, string[] permissions, Permission[] grantResults)
- {
- PermissionsImplementation.Current.OnRequestPermissionsResult(requestCode, permissions, grantResults);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement