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 Acr.UserDialogs; | |
using Xamarin.Forms; | |
namespace BugUserDialogs | |
{ | |
public class App : Application | |
{ | |
public App () |
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 Xamarin.Forms; | |
namespace YOUTNAMESPACE | |
{ | |
public class LineEntry : Entry | |
{ | |
public static readonly BindableProperty BorderColorProperty = | |
BindableProperty.Create<LineEntry, Color> (p => p.BorderColor, Color.Black); | |
public Color BorderColor { |
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
[alias] tree = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat |
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 static Bitmap getCropBitmap (Bitmap origialBitmap,int left, int top, int right, int bottom){ | |
int targetWidth = right-left; | |
int targetHeight = bottom-top; | |
Bitmap cutBitmap = Bitmap.createBitmap(targetWidth,targetHeight, Bitmap.Config.ARGB_8888); | |
Canvas canvas = new Canvas(cutBitmap); | |
Rect desRect = new Rect(0, 0, targetWidth, targetHeight); | |
Rect srcRect = new Rect(left, top, right, bottom); | |
canvas.drawBitmap(origialBitmap, srcRect, desRect, null); | |
return cutBitmap; | |
} |
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
package com.dt.memmo.tools; | |
import android.app.Activity; | |
import android.app.AlertDialog; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.content.pm.ApplicationInfo; | |
import android.content.pm.PackageManager; | |
import android.content.res.Resources; | |
import android.hardware.Camera; |
NewerOlder