View ITextMeter
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); | |
} | |
} |
View ScrollListView.java
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. |
View SlidingAppCompatActivity
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 | |
{ |
View UIViewWithBorders.cs
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. |
View DPageViewController.cs
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 { |
View LightMeter.cs
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 |
View Connectivity.cs
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 { | |
/** |
View Responsive PieChart with custom tooltip
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%; |