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; | |
public class JavaHolder : Java.Lang.Object | |
{ | |
public readonly object Instance; | |
public JavaHolder(object instance) | |
{ | |
Instance = instance; | |
} |
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 SearchViewSample | |
{ | |
public class Chemical | |
{ | |
public string Name { get; set; } | |
public int DrawableId { get; set; } | |
} | |
} |
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"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent"> | |
<ListView | |
android:id="@+id/listView" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" /> | |
</LinearLayout> |
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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent"> | |
<Button | |
android:id="@+id/MyButton" | |
android:layout_width="100dp" | |
android:layout_height="wrap_content" | |
android:text="Click Me!" /> | |
<ImageView |
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
\usepackage{listings} | |
\usepackage{etoolbox} | |
\usepackage{color} | |
\definecolor{base0}{RGB}{131,148,150} | |
\definecolor{base01}{RGB}{88,110,117} | |
\definecolor{base2}{RGB}{238,232,213} | |
\definecolor{sgreen}{RGB}{133,153,0} | |
\definecolor{sblue}{RGB}{38,138,210} | |
\definecolor{scyan}{RGB}{42,161,151} |
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; | |
using Android.App; | |
using Android.Content; | |
using Android.Webkit; | |
using Android.OS; | |
[assembly: UsesPermission(Name = Manifest.Permission.AccessFineLocation)] | |
[assembly: UsesPermission(Name = Manifest.Permission.Internet)] | |
namespace WebViewLocation |
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.App; | |
using Android.Text; | |
using Android.Text.Style; | |
using Android.Widget; | |
using Android.OS; | |
namespace MonoDroid.TextViewWithImages | |
{ | |
[Activity(Label = "Text with Images", MainLauncher = true, Icon = "@drawable/icon")] | |
public class Activity1 : Activity |
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
[Activity(Label = "Awesome!")] | |
public class ValidationView | |
: MvxActivity<AwesomeViewModel> | |
{ | |
protected override void OnCreate(Bundle bundle) | |
{ | |
base.OnCreate(bundle); | |
RequestWindowFeature(WindowFeatures.ActionBar); | |
SetContentView(Resource.Layout.awesome_layout); |
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
public class DummyFragment : Fragment | |
{ | |
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) | |
{ | |
var view = inflater.Inflate(Resource.Layout.dummy_frag, container, false); | |
var tv = view.FindViewById<TextView>(Resource.Id.textView1); | |
tv.Text = "" + Arguments.GetInt("number", -1); | |
return view; | |
} | |
} |
NewerOlder