Commit d90a10cc authored by Grigory Fedorov's avatar Grigory Fedorov

About screen filled with text.

parent 16664892
......@@ -23,8 +23,11 @@ import android.os.Bundle;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.v4.app.NavUtils;
import android.support.v7.widget.Toolbar;
import android.text.method.LinkMovementMethod;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import com.bumptech.glide.Glide;
import com.xabber.android.R;
......@@ -52,10 +55,20 @@ public class AboutViewer extends ManagedActivity implements View.OnClickListener
findViewById(R.id.about_github).setOnClickListener(this);
findViewById(R.id.about_twitter).setOnClickListener(this);
findViewById(R.id.about_redsolution).setOnClickListener(this);
findViewById(R.id.about_text_xmpp_protocol).setOnClickListener(this);
((TextView) findViewById(R.id.about_text_developers))
.setMovementMethod(LinkMovementMethod.getInstance());
((TextView) findViewById(R.id.about_text_translators))
.setMovementMethod(LinkMovementMethod.getInstance());
((TextView) findViewById(R.id.about_text_license))
.setMovementMethod(LinkMovementMethod.getInstance());
CollapsingToolbarLayout collapsingToolbar =
(CollapsingToolbarLayout) findViewById(R.id.collapsing_toolbar);
collapsingToolbar.setTitle("Xabber");
collapsingToolbar.setTitle(getString(R.string.application_title_short));
((TextView) findViewById(R.id.about_version)).setText(getVersionName());
loadBackdrop();
}
......@@ -68,7 +81,7 @@ public class AboutViewer extends ManagedActivity implements View.OnClickListener
private String getVersionName() {
try {
PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
return pInfo.versionName;
return getString(R.string.application_title_full) + " " + pInfo.versionName;
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
......@@ -87,10 +100,13 @@ public class AboutViewer extends ManagedActivity implements View.OnClickListener
sendUrlViewIntent(getString(R.string.about_xabber_github_url));
break;
case R.id.about_twitter:
sendUrlViewIntent(getString(R.string.about_xabber_twitter_url));
break;
case R.id.about_text_xmpp_protocol:
Toast.makeText(this, R.string.about_shameless_quote_from_wiki, Toast.LENGTH_SHORT).show();
break;
}
}
......
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="about_version">Версия: %s</string>
<string name="about_open_source_xmpp_client">open source XMPP client</string>
<string name="about_about">О программе</string>
<string name="about_developers">Разработчики</string>
<string name="about_redsolution_url">http://www.redsolution.com/</string>
<string name="about_xabber_url">http://www.xabber.com</string>
<string name="about_xabber_email">info@xabber.com</string>
<string name="about_follow_us">Подпишитесь</string>
<string name="about_xabber_twitter_url">https://twitter.com/xabber_xmpp</string>
<string name="about_xabber_github_url">https://github.com/redsolution/xabber-android</string>
<string name="about_copyright">© Redsolution LTD, 2010–2015</string>
<string name="about_license">Лицензия: GNU GPLv3</string>
<string name="about_open_source_software">Программное обеспечение с открытым исходным кодом</string>
</resources>
\ No newline at end of file
......@@ -3,16 +3,29 @@
<string name="about_version">Version: %s</string>
<string name="about_open_source_xmpp_client">open source XMPP client</string>
<string name="about_about">About</string>
<string name="about_developers">Developers</string>
<string name="about_header_about">About</string>
<string name="about_text_about">Xabber is an open-source XMPP messenger for Android platform. It is built around open standards, interoperability, design and user experience. Xabber supports many popular XMPP extension protocols, Off-The-Record Chat Encryption and is available in multiple languages.</string>
<string name="about_header_xmpp">XMPP protocol</string>
<string name="about_text_xmpp">Extensible Messaging and Presence Protocol (XMPP) is a communications protocol for message-oriented middleware based on XML (Extensible Markup Language). It enables the near-real-time exchange of structured yet extensible data between any two or more network entities. The protocol was originally named Jabber, and was developed by the Jabber open-source community in 1999 for near real-time instant messaging (IM),presence information, and contact list maintenance.</string>
<string name="about_shameless_quote_from_wiki">Shameless quote from Wikipedia</string>
<string name="about_header_xep">XMPP Extension Protocols</string>
<string name="about_text_xep">XMPP is highly extensible, via extensions known as XEPs (XMPP Extension Protocol). Xabber supports a number of popular XEPs that are essential to providing great chat experience for our users.</string>
<string name="about_header_developers">Developers</string>
<string name="about_text_developers">Xabber was originally developed by <a href="http://www.redsolution.com/">Redsolution, Inc.</a> — an international software and services company based in Russia and United States. Xabber was licensed under GNU/GPL v.3 license early in 2013. Since then, a number of individuals joined Xabber as developers, testers and translators.\n\nOur goal is to create a stable, reliable and user friendly ecosystem for instant messaging that does not rely on proprietary services. We welcome anyone who believes in open standards and free information interchange to take part in moving Xabber forward.\n\nFollow us on Twitter and Github.</string>
<string name="about_redsolution_url">http://www.redsolution.com/</string>
<string name="about_xabber_url">http://www.xabber.com</string>
<string name="about_xabber_email">info@xabber.com</string>
<string name="about_follow_us">Follow us</string>
<string name="about_xabber_twitter_url">https://twitter.com/xabber_xmpp</string>
<string name="about_xabber_github_url">https://github.com/redsolution/xabber-android</string>
<string name="about_copyright">© Redsolution LTD, 2010–2015</string>
<string name="about_license">License: GNU GPLv3</string>
<string name="about_open_source_software">Open source software</string>
<string name="about_header_translators">Translators</string>
<string name="about_text_translators">Xabber is available in multiple languages thanks to many fine people from all over the world. We have created a <a href="http://www.xabber.com/translators/">special page</a> on our website to acknowledge their efforts.\n\nYou may join their ranks and help us improve translation quality by <a href="https://github.com/redsolution/xabber-android">contributing</a> your translations to Xabber project.</string>
<string name="about_header_license">License</string>
<string name="about_text_license">Xabber source code is licensed under GNU GPL v.3 license and is available on GitHub.\n\nGraphical images are licensed under Creative Commons Attribution Share-Alike (CC BY-SA) license.\n\nXabber &amp; Redsolution logo are property of Redsolution, Inc.\n\nMore detailed information on Xabber <a href="https://github.com/redsolution/xabber-android/blob/master/LICENSE">license file</a>.</string>
</resources>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment