diff --git a/Android.Dialog.csproj b/Android.Dialog.csproj index bd9e6a4..1f827c6 100644 --- a/Android.Dialog.csproj +++ b/Android.Dialog.csproj @@ -12,7 +12,6 @@ Android.Dialog Android.Dialog 512 - v1.6 armeabi%3barmeabi-v7a%3bx86 Resources\Resource.Designer.cs @@ -35,7 +34,6 @@ TRACE prompt 4 - SdkOnly false @@ -77,9 +75,15 @@ + + + + + + diff --git a/DialogActivity.cs b/DialogActivity.cs index 636f8e6..6387f11 100644 --- a/DialogActivity.cs +++ b/DialogActivity.cs @@ -6,6 +6,14 @@ namespace Android.Dialog { public class DialogActivity : ListActivity { + + + protected override void OnResume() + { + base.OnResume(); + ReloadData(); + } + public RootElement Root { get { return _dialogAdapter == null ? null : _dialogAdapter.Root; } diff --git a/DrawingActivity.cs b/DrawingActivity.cs new file mode 100644 index 0000000..4b0b693 --- /dev/null +++ b/DrawingActivity.cs @@ -0,0 +1,51 @@ +using System; +using Android.App; +using Android.Content; +using Android.Runtime; +using Android.Views; +using Android.Widget; +using Android.OS; +using Java.IO; + +namespace Android.Dialog +{ + [Activity (Label = "DrawingActivity", Theme = "@android:style/Theme.NoTitleBar.Fullscreen")] + public class DrawingActivity : Activity + { + + public static readonly string DRAWING_LOCATION_INTENT = "DrawingLocation"; + public static string BACKGROUND_FILE_PATH = Android.OS.Environment.ExternalStorageDirectory + File.Separator + "drawing_image_reservered_location.png"; + private LinearLayout _signatureLayout; + private DrawingView _signatureDrawingView; + private string drawingLocation; + + protected override void OnCreate(Bundle bundle) + { + base.OnCreate(bundle); + + drawingLocation = Intent.GetStringExtra(DRAWING_LOCATION_INTENT); + + + SetContentView(Resource.Layout.drawing_field); + _signatureLayout = FindViewById(Resource.Id.drawingfield_drawingview); + _signatureDrawingView = new DrawingView(this, drawingLocation); + _signatureLayout.AddView(_signatureDrawingView); + Button saveButton = FindViewById