Created
February 4, 2014 03:24
-
-
Save jamesmontemagno/8797688 to your computer and use it in GitHub Desktop.
Target 4.0+
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 Android.App; | |
using Android.OS; | |
namespace Notepad | |
{ | |
[Activity (Label = "Notepad", MainLauncher = true, Theme="@android:style/Theme.Holo.Light")] | |
public class MainActivity : MvxActivity | |
{ | |
int count = 1; | |
protected override void OnCreate (Bundle bundle) | |
{ | |
base.OnCreate (bundle); | |
// Set our view from the "main" layout resource | |
SetContentView (Resource.Layout.Main); | |
} | |
} | |
} | |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:local="http://schemas.android.com/apk/res-auto" | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:padding="8dp" | |
android:background="#ffe4e4e4"> | |
<TextView | |
android:text="Filename" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:id="@+id/textView1" | |
style="@android:style/TextAppearance.Medium" /> | |
<EditText | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:id="@+id/textFilename" | |
local:MvxBind="Text Filename" /> | |
<TextView | |
android:text="Contents" | |
android:textAppearance="?android:attr/textAppearanceSmall" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:id="@+id/textView3" | |
style="@android:style/TextAppearance.Medium" | |
android:layout_marginTop="8dp" /> | |
<EditText | |
android:inputType="textMultiLine" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:id="@+id/textContents" | |
local:MvxBind="Text Contents" | |
android:height="0dp" | |
android:layout_weight="1" /> | |
<LinearLayout | |
android:orientation="horizontal" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
android:id="@+id/linearLayout1"> | |
<Button | |
android:text="Save" | |
android:layout_width="0dp" | |
android:layout_weight="1" | |
android:layout_height="match_parent" | |
android:id="@+id/SaveButton" /> | |
<Button | |
android:text="Load" | |
android:layout_weight="1" | |
android:layout_width="0dp" | |
android:layout_height="match_parent" | |
android:id="@+id/LoadButton" /> | |
</LinearLayout> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment