diff options
author | David A. Madore <david+git@madore.org> | 2010-04-29 04:08:34 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2010-04-29 04:08:34 +0200 |
commit | d19282f8ce9d4256875e37358eda3ee19527d1f6 (patch) | |
tree | 04efd39dfc66313cdb414f861f7ac851c6e5686c | |
parent | 1c0450a270ff1d26a0fbf8b6f48d3e9c05003cf1 (diff) | |
download | UnicodeMap-0.0.2.tar.gz UnicodeMap-0.0.2.tar.bz2 UnicodeMap-0.0.2.zip |
Improve "about" (and provide link to my programs page).v0.0.2
-rw-r--r-- | res/layout/about_layout.xml | 6 | ||||
-rw-r--r-- | res/values/strings.xml | 2 | ||||
-rw-r--r-- | src/org/madore/android/unicodeMap/UnicodeMapActivity.java | 14 |
3 files changed, 20 insertions, 2 deletions
diff --git a/res/layout/about_layout.xml b/res/layout/about_layout.xml index f1ab2c7..98cf2c1 100644 --- a/res/layout/about_layout.xml +++ b/res/layout/about_layout.xml @@ -8,8 +8,12 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/about_text" /> + <Button android:id="@+id/aboutMore" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/more_button" /> <Button android:id="@+id/aboutOk" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:text="@string/ok_button" /> + android:text="@string/dismiss_button" /> </LinearLayout> diff --git a/res/values/strings.xml b/res/values/strings.xml index e06f513..6efe70c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -31,4 +31,6 @@ rectangles, but you can still paste them correctly (e.g., in web forms).</string> <string name="ok_button">OK</string> + <string name="more_button">More…</string> + <string name="dismiss_button">Dismiss</string> </resources> diff --git a/src/org/madore/android/unicodeMap/UnicodeMapActivity.java b/src/org/madore/android/unicodeMap/UnicodeMapActivity.java index b0c1948..8e93e36 100644 --- a/src/org/madore/android/unicodeMap/UnicodeMapActivity.java +++ b/src/org/madore/android/unicodeMap/UnicodeMapActivity.java @@ -11,6 +11,7 @@ import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; +import android.net.Uri; import android.view.View; import android.view.ViewGroup; import android.view.Window; @@ -504,12 +505,23 @@ public final class UnicodeMapActivity extends ListActivity { dialog.setOwnerActivity(this); dialog.setContentView(R.layout.about_layout); dialog.setCancelable(true); - final Button btn = (Button) dialog.findViewById(R.id.aboutOk); + Button btn; + btn = (Button) dialog.findViewById(R.id.aboutOk); btn.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { dialog.dismiss(); } }); + btn = (Button) dialog.findViewById(R.id.aboutMore); + btn.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + dialog.dismiss(); + Intent intent + = new Intent(Intent.ACTION_VIEW, + Uri.parse("http://www.madore.org/~david/programs/#prog_unicodeMap")); + startActivity(intent); + } + }); dialog.show(); } |