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
<?xml version="1.0" encoding="utf-8" ?> | |
<resources> | |
<!-- | |
Base application theme for API 21+. This theme completely replaces | |
MyTheme from BOTH res/values/styles.xml on API 21+ devices. | |
--> | |
<style name="MyTheme" parent="MyTheme.Base"> | |
<item name="android:windowDrawsSystemBarBackgrounds">true</item> | |
<item name="android:statusBarColor">@android:color/transparent</item> | |
</style> |
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 class SquareTransformation : ITransformation | |
{ | |
public string Key => "SquareTransformation"; | |
public IBitmap Transform(IBitmap source) | |
{ | |
double sourceWidth = source.Width; | |
double sourceHeight = source.Height; | |
double desiredWidth = sourceWidth; |
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 static class Instantiator | |
{ | |
static Dictionary<Type, Func<object>> compiledExpressions = new Dictionary<Type, Func<object>>(); | |
static Dictionary<Tuple<Type, Type>, Func<object>> genericCompiledExpressions = new Dictionary<Tuple<Type, Type>, Func<object>>(); | |
public static T CreateInstance<T>() | |
{ | |
return (T)CreateInstance(typeof(T)); | |
} |
NewerOlder