This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void CenterAroundOverlayItems() | |
| { | |
| if (itemizedOverlay.OverlayItems.Count == 0) return; | |
| double hpadding = 0.1; | |
| double vpadding = 0.15; | |
| //start wide | |
| int minLatitude = (int)(90 * 1E6); | |
| int maxLatitude = (int)(-90 * 1E6); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Threading; | |
| namespace SannesBrain | |
| { | |
| public class Brain | |
| { | |
| public static void Main(string[] args) | |
| { | |
| EnvironmentVariables.DaylightChanged += (sender, eventArgs) => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // PickerElement.cs: Defines UIPickerView element | |
| // Based on DateTimeElement by Miguel de Icaza | |
| // | |
| // Author: | |
| // Tomasz Cielecki (tomasz@ostebaronen.dk) | |
| // | |
| // Code licensed under the MIT X11 license | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| namespace Giraffatitan | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using Android.Content; | |
| using Android.Runtime; | |
| using Android.Util; | |
| using Android.Views; | |
| using Android.Widget; | |
| namespace Cheesebaron.HorizontalListView | |
| { | |
| public class YScrollView : ScrollView |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Android.App; | |
| using Cirrious.MvvmCross.Droid.Views; | |
| namespace BK.EMS.Stakeholder.UI.Droid.vNext | |
| { | |
| [Activity(Label = "NS Stakeholder", Theme = "@android:style/Theme.Black.NoTitleBar", NoHistory = true, Icon = "@drawable/Icon")] | |
| public class MainActivity : MvxBaseSplashScreenActivity | |
| { | |
| public MainActivity() | |
| : base(Resource.Layout.Page_SplashScreen) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.IO; | |
| using System.Text; | |
| using System.Xml; | |
| using Android.App; | |
| using Android.Widget; | |
| using Android.OS; | |
| namespace MonoDroid.ReadWriteXML | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Android.App; | |
| using Android.Text; | |
| using Android.Text.Style; | |
| using Android.Widget; | |
| using Android.OS; | |
| namespace MonoDroid.TextViewWithImages | |
| { | |
| [Activity(Label = "Text with Images", MainLauncher = true, Icon = "@drawable/icon")] | |
| public class Activity1 : Activity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public override bool OnCreateOptionsMenu(IMenu menu) | |
| { | |
| var item = menu.Add(0,1,1,"Back"); | |
| //If you want an icon set it here | |
| item.SetIcon(Resource.drawable.ic_menu_back); | |
| return true; | |
| } | |
| public override bool OnOptionsItemSelected(IMenuItem item) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public override void ViewWillAppear(bool animated) | |
| { | |
| base.ViewWillAppear(animated); | |
| NavigationItem.SetHidesBackButton(true, false); | |
| NavigationController.NavigationBar.SetNeedsDisplay(); | |
| } | |
| public override void ViewDidAppear(bool animated) | |
| { | |
| NavigationItem.SetHidesBackButton(false, true); |
OlderNewer