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; | |
} | |
} |
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 System.Threading; | |
using System.Threading.Tasks; | |
using Android.Gms.Maps; | |
using Android.Gms.Maps.Model; | |
using Android.Locations; | |
using Android.OS; | |
namespace RunForYourLife | |
{ |
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 static void TryRequestWhenInUseAuthorization(this CLLocationManager locationManager) | |
{ | |
if (locationManager.RespondsToSelector(new Selector("requestWhenInUseAuthorization"))) | |
locationManager.RequestWhenInUseAuthorization(); | |
} | |
public static void TryRequestAlwaysAuthorization(this CLLocationManager locationManager) | |
{ | |
if (locationManager.RespondsToSelector(new Selector("requestAlwaysAuthorization"))) | |
locationManager.RequestAlwaysAuthorization(); |
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 MyActivity : Activity | |
{ | |
private GoogleMap _map; | |
private HorizontalScrollView _hsv; | |
protected override void OnCreate(Bundle bundle) | |
{ | |
base.OnCreate(bundle); | |
SetContentView(Resource.Layout.rtc); |
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
28im.com | |
4byte.cn | |
acnenomor.com | |
adtandroid.blogspot.com | |
androidstackoverflow.blogspot.com | |
askmequest.gq | |
besttopics.net | |
bloglovin.com | |
c9q.net | |
codebaum.wordpress.com |
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
using Android.App; | |
using Android.Content; | |
using Android.Content.PM; | |
using Android.OS; | |
using Android.Widget; | |
namespace Your.Namespace | |
{ | |
[Activity(Label = "Call", LaunchMode = LaunchMode.SingleTop)] | |
[IntentFilter(new[] { Intent.ActionCall, Intent.ActionView }, |
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
import java.util.*; | |
public class HangMan { | |
private static String[] words = { | |
"motherboard", "case", "powersupply", "harddrive", "mouse", "keyboard", "peripheral", | |
"graphicscard", "processor", "latency", "ping", "gaming", "resolution", "watercooling", | |
"cache", "memory", "chipset", "intel", "notebook", "desktop", "aliasing" }; | |
public static void main(String[] args) { | |
Random rand = new Random(); |