This file contains 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
namespace YourNamespace | |
{ | |
public interface ITextMeter | |
{ | |
double MeasureTextSize(string text, double width, double fontSize, string fontName = null); | |
} | |
} |
This file contains 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
package se.marteinn.ui; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.widget.AbsListView; | |
import android.widget.ListView; | |
/** | |
* Triggers a event when scrolling reaches bottom. |
This file contains 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.OS; | |
using Android.Views; | |
using SlidingMenuSharp.App; | |
using SlidingMenuSharp; | |
using Android.Support.V7.App; | |
namespace YourNameSpace | |
{ |
This file contains 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 UIKit; | |
using CoreGraphics; | |
// ported from https://github.com/natrosoft/NAUIViewWithBorders | |
namespace YourNamespace | |
{ | |
/* | |
UIView subview that allows individual borders to be drawn. |
This file contains 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 UIKit; | |
using System.Collections.Generic; | |
using CoreGraphics; | |
// ported from https://github.com/nsobadzhiev/DynamicPageViewController/blob/master/DynamicPageViewController/DMDynamicViewController.swift | |
namespace YourNamespace | |
{ | |
/*protocol DMDynamicPageViewControllerDelegate { |
This file contains 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.Graphics; | |
using Android.Hardware; | |
using Android.Media; | |
using Java.IO; | |
using YourNamespace.Utils; | |
namespace YourNamespace | |
{ | |
public class LightMeter: Java.Lang.Object, Android.Hardware.Camera.IPictureCallback, Android.Hardware.Camera.IPreviewCallback |
This file contains 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.Threading; | |
using Android.Content; | |
using Android.Net; | |
using Android.Telephony; | |
using Java.IO; | |
using Java.Net; | |
namespace YourNamespace { | |
/** |
This file contains 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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<style> | |
#piechart { | |
top: 0; | |
left: 0; | |
width:100%; | |
height:100%; |