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"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="App1.App1" android:versionCode="1" | |
android:versionName="1.0" android:installLocation="auto"> | |
<application android:label="App1" android:icon="@drawable/Icon"></application> | |
<uses-permission android:name="android.permission.READ_CONTACTS" /> | |
</manifest> |
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
<cheesebaron.slidinguppanel.SlidingUpPanelLayout | |
android:id="@+id/sliding_layout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:gravity="bottom"> | |
<RelativeLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<!-- Your main content inside here --> |
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 = "Pseudo MultiColumn", MainLauncher = true, Icon = "@drawable/icon")] | |
public class SuperAwesomeActivity : Activity | |
{ | |
protected override void OnCreate(Bundle bundle) | |
{ | |
base.OnCreate(bundle); | |
// Set our view from the "main" layout resource | |
SetContentView(Resource.Layout.main); |
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
private NSObject _notification; | |
private float _scrollAmount; | |
private double _animationDuration; | |
private UIViewAnimationCurve _animationCurve; | |
public override void ViewDidLoad() | |
{ | |
... | |
_notification = UIKeyboard.Notifications.ObserveWillShow((s, e) => |
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 class DroidExtensions | |
{ | |
public static IMenuItem SetEnabled(this IMenuItem item, bool enabled, Context context, int iconId) | |
{ | |
return item.SetEnabled(enabled, context, iconId, Color.Gray); | |
} | |
public static IMenuItem SetEnabled(this IMenuItem item, bool enabled, Context context, int iconId, Color disabledColor) | |
{ | |
var resIcon = context.Resources.GetDrawable(iconId); |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Dec 19 18:15:29 2013 | |
@author: Tomasz | |
""" | |
import math, os | |
class Calc(): |
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 MvxActionBarActivity | |
: MvxActionBarEventSourceActivity | |
, IMvxAndroidView | |
{ | |
public MvxActionBarActivity() | |
{ | |
BindingContext = new MvxAndroidBindingContext(this, this); | |
this.AddEventListeners(); | |
} |