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
MobileServiceClient.Logout() |
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
<div data-bind='component: { | |
name: "message-editor", | |
params: { initialText: "Hello, world!" } | |
}'></div> |
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
<message-editor params='initialText: "Hello, world!"'></message-editor> |
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
<rewrite> | |
<rules> | |
<rule name="Route Requests from localhost api to Remote API url" stopProcessing="true"> | |
<match url="^api/(.*)" /> | |
<conditions> | |
<add input="{CACHE_URL}" pattern="^(https?)://" /> | |
</conditions> | |
<action type="Rewrite" url="https://www.wrapcode.com:1234/api/{R:1}" logRewrittenUrl="true" /> | |
<serverVariables> | |
<set name="HTTP_ACCEPT_ENCODING" value="" /> |
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 Android.Content; | |
using Android.Content.Res; | |
using Android.Graphics; | |
using Android.Graphics.Drawables; | |
using Android.Util; | |
using Android.Views; | |
using Android.Widget; | |
namespace WrapCode.Util | |
{ |
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
<!-- Don't forget to add custom namespace in first xml element, otherwise get ready for exceptions and errors --> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:custom="http://schemas.android.com/apk/res-auto" | |
android:minWidth="25px" | |
android:minHeight="25px" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@android:color/white" | |
android:id="@+id/parentLayout"> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<declare-styleable name="CircleImageView"> | |
<attr name="border" format="boolean"></attr> | |
<attr name="border_width" format="dimension"></attr> | |
<attr name="border_color" format="color"></attr> | |
<attr name="shadow" format="boolean"></attr> | |
</declare-styleable> |
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
protected override void OnActivityResult(int requestCode, Result resultCode, Intent data) | |
{ | |
if ((requestCode == PickImageId) && (resultCode == Result.Ok) && (data != null)) | |
{ | |
Uri uri = data.Data; | |
_imageView.SetImageURI(uri); | |
string path = GetPathToImage(uri); |
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
private string GetPathToImage(Android.Net.Uri uri) | |
{ | |
ICursor cursor = this.ContentResolver.Query(uri, null, null, null, null); | |
cursor.MoveToFirst(); | |
string document_id = cursor.GetString(0); | |
document_id = document_id.Split(':')[1]; | |
cursor.Close(); | |
cursor = ContentResolver.Query( | |
Android.Provider.MediaStore.Images.Media.ExternalContentUri, |
OlderNewer