From cc0dc137bc08f9c286fa07c75b708a4d9455723d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csatl=C3=B3s=20L=C3=A1szl=C3=B3?= Date: Tue, 4 Jun 2013 17:03:39 +0200 Subject: [PATCH] New feature: custom dialog --- .classpath | 5 +- AndroidManifest.xml | 2 +- project.properties | 2 +- res/layout/customdialog.xml | 47 +++++ res/xml/default_buttons_layout.xml | 34 ++- .../util/UserDefinedLayoutReader.java | 53 ++++- .../osmtracker/customdialog/CustomDialog.java | 196 ++++++++++++++++++ .../customdialog/CustomDialogElement.java | 44 ++++ .../customdialog/CustomDialogSettings.java | 30 +++ .../CustomTagButtonOnClickListener.java | 30 +++ 10 files changed, 433 insertions(+), 10 deletions(-) create mode 100644 res/layout/customdialog.xml create mode 100644 src/me/plutoz/android/osmtracker/customdialog/CustomDialog.java create mode 100644 src/me/plutoz/android/osmtracker/customdialog/CustomDialogElement.java create mode 100644 src/me/plutoz/android/osmtracker/customdialog/CustomDialogSettings.java create mode 100644 src/me/plutoz/android/osmtracker/customdialog/CustomTagButtonOnClickListener.java diff --git a/.classpath b/.classpath index b09fd4a7d..0a0229bf7 100644 --- a/.classpath +++ b/.classpath @@ -1,7 +1,5 @@ - - @@ -12,5 +10,8 @@ + + + diff --git a/AndroidManifest.xml b/AndroidManifest.xml index c9c419311..794557fdd 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2,7 +2,7 @@ - + diff --git a/project.properties b/project.properties index 8f816735d..fd44ee5ef 100644 --- a/project.properties +++ b/project.properties @@ -10,4 +10,4 @@ # Indicates whether an apk should be generated for each density. split.density=false # Project target. -target=android-16 +target=android-17 diff --git a/res/layout/customdialog.xml b/res/layout/customdialog.xml new file mode 100644 index 000000000..b5402e273 --- /dev/null +++ b/res/layout/customdialog.xml @@ -0,0 +1,47 @@ + + + + +