diff --git a/app/src/main/java/i2p/bote/android/HelpAboutFragment.java b/app/src/main/java/i2p/bote/android/HelpAboutFragment.java index 5c72f7e..c7b8e7c 100644 --- a/app/src/main/java/i2p/bote/android/HelpAboutFragment.java +++ b/app/src/main/java/i2p/bote/android/HelpAboutFragment.java @@ -21,15 +21,18 @@ public class HelpAboutFragment extends Fragment { View view = inflater.inflate(R.layout.fragment_help_about, container, false); TextView versionText = (TextView) view.findViewById(R.id.help_about_version); - versionText.setText(getString(R.string.help_about_version) + " " + getVersion()); + versionText.setText(getString(R.string.version) + " " + getVersion()); - HtmlTextView aboutTextView = (HtmlTextView) view.findViewById(R.id.help_about_text); + TextView licenseText = (TextView) view.findViewById(R.id.help_about_license); + licenseText.setText(getString(R.string.license, "GPLv3+")); + + HtmlTextView aboutLibsView = (HtmlTextView) view.findViewById(R.id.help_about_libraries); // load html from raw resource (Parsing handled by HtmlTextView library) - aboutTextView.setHtmlFromRawResource(getActivity(), R.raw.help_about, true); + aboutLibsView.setHtmlFromRawResource(getActivity(), R.raw.help_about_libraries, true); // no flickering when clicking textview for Android < 4 - aboutTextView.setTextColor(getResources().getColor(android.R.color.black)); + aboutLibsView.setTextColor(getResources().getColor(android.R.color.black)); return view; } diff --git a/app/src/main/res/layout/fragment_help_about.xml b/app/src/main/res/layout/fragment_help_about.xml index 6d730c4..272de93 100644 --- a/app/src/main/res/layout/fragment_help_about.xml +++ b/app/src/main/res/layout/fragment_help_about.xml @@ -19,18 +19,12 @@ android:layout_height="match_parent" android:orientation="horizontal"> - - - - + android:layout_height="wrap_content" + android:layout_gravity="top" + android:layout_marginRight="10dp" + android:src="@drawable/ic_launcher"/> + + + + + + diff --git a/app/src/main/res/raw/help_about.html b/app/src/main/res/raw/help_about_libraries.html similarity index 75% rename from app/src/main/res/raw/help_about.html rename to app/src/main/res/raw/help_about_libraries.html index 090d967..d590cbc 100644 --- a/app/src/main/res/raw/help_about.html +++ b/app/src/main/res/raw/help_about_libraries.html @@ -1,15 +1,7 @@ - -

https://github.com/i2p/i2p.i2p-bote.android

-

Bote is the Android app for I2P-Bote.

-

License: GPLv3+

- -

Libraries

  • Android Support Library v4 (Apache License v2)
  • Android Support Library v7 'appcompat' (Apache License v2)
  • diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 671e730..3cc3ce4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -244,6 +244,11 @@ Start Changelog About - Version: + Version + https://github.com/i2p/i2p.i2p-bote.android + + License: %s + + Libraries diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index c248ab6..3ad2093 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -67,4 +67,8 @@ @android:color/white + +