add some new things to About screen

This commit is contained in:
tibbi 2016-12-11 23:07:15 +01:00
parent 6f70aac1bb
commit 7fec8e52fa
10 changed files with 52 additions and 3 deletions

View File

@ -18,10 +18,12 @@ class AboutActivity : SimpleActivity() {
setContentView(R.layout.activity_about)
setupEmail()
setupMoreApps()
setupCopyright()
setupRateUs()
setupInvite()
setupLicense()
setupDonate()
setupFacebook()
setupGPlus()
}
@ -34,6 +36,12 @@ class AboutActivity : SimpleActivity() {
about_email.movementMethod = LinkMovementMethod.getInstance()
}
private fun setupMoreApps() {
about_more_apps.setOnClickListener {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/dev?id=9070296388022589266")))
}
}
private fun setupCopyright() {
val versionName = BuildConfig.VERSION_NAME
val year = Calendar.getInstance().get(Calendar.YEAR)
@ -76,6 +84,12 @@ class AboutActivity : SimpleActivity() {
}
}
fun setupDonate() {
about_donate.setOnClickListener {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("http://simplemobiletools.github.io/donate")))
}
}
fun setupFacebook() {
about_facebook.setOnClickListener {
var link = "https://www.facebook.com/simplemobiletools"

View File

@ -36,12 +36,22 @@
android:text="@string/email"/>
<TextView
android:id="@+id/about_invite"
android:id="@+id/about_more_apps"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/about_email"
android:paddingBottom="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin"
android:text="@string/more_apps_underlined"
android:textColor="@color/colorPrimary"/>
<TextView
android:id="@+id/about_invite"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/about_more_apps"
android:paddingBottom="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin"
android:text="@string/invite_friends_underlined"
android:textColor="@color/colorPrimary"/>
@ -66,10 +76,20 @@
android:textColor="@color/colorPrimary"/>
<TextView
android:id="@+id/about_follow_us"
android:id="@+id/about_donate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/about_license"
android:paddingBottom="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin"
android:text="@string/donate_underlined"
android:textColor="@color/colorPrimary"/>
<TextView
android:id="@+id/about_follow_us"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/about_donate"
android:paddingBottom="@dimen/social_padding"
android:paddingTop="@dimen/activity_margin"
android:text="@string/follow_us"/>

View File

@ -39,11 +39,13 @@
<string name="about">Über</string>
<string name="website">Weitere einfache Apps und Quellcode findest du auf:\nhttp://simplemobiletools.com</string>
<string name="email_label">Bitte sende Vorschläge und Feedback an:</string>
<string name="more_apps_underlined"><u>More apps</u></string>
<string name="third_party_licences_underlined"><u>Drittanbieterlizenzen</u></string>
<string name="invite_friends_underlined"><u>Freunde einladen</u></string>
<string name="share_text">Hey, wirf doch mal einen Blick auf %1$s: %2$s</string>
<string name="invite_via">Einladen via</string>
<string name="rate_us_underlined"><u>Bewerte uns im Play Store</u></string>
<string name="donate_underlined"><u>Donate</u></string>
<string name="follow_us">Folge uns:</string>
<string name="copyright">v %1$s\nCopyright © Simple Mobile Tools %2$d</string>

View File

@ -39,11 +39,13 @@
<string name="about">Acerca de Simple Notes</string>
<string name="website">Más aplicaciones simples y su código fuente en:\nhttp://simplemobiletools.com</string>
<string name="email_label">Envíe sus comentarios y sugerencias a:</string>
<string name="more_apps_underlined"><u>More apps</u></string>
<string name="third_party_licences_underlined"><u>Licencias de terceros</u></string>
<string name="invite_friends_underlined"><u>Invitar a amigos</u></string>
<string name="share_text">Hola, venga y échele un vistazo a %1$s en %2$s</string>
<string name="invite_via">Invitar vía</string>
<string name="rate_us_underlined"><u>Evalúenos en Google Play Store</u></string>
<string name="donate_underlined"><u>Donate</u></string>
<string name="follow_us">Síganos:</string>
<string name="copyright">v %1$s\nCopyright © Simple Mobile Tools %2$d</string>

View File

@ -39,12 +39,13 @@
<string name="about">Információ</string>
<string name="website">További egyszerű alkalmazások és a forráskód itt:\nhttp://simplemobiletools.com</string>
<string name="email_label">Visszajelzés és javaslatok:</string>
<string name="more_apps_underlined"><u>More apps</u></string>
<string name="third_party_licences_underlined"><u>Harmadik fél licenszek</u></string>
<string name="invite_friends_underlined"><u>Barátok meghívása</u></string>
<string name="share_text">Szia, ezt nézd meg! %1$s itt: %2$s</string>
<string name="invite_via">Meghívó küldése itt</string>
<string name="rate_us_underlined"><u>Értékelés a Play Store-ban</u></string>
<string name="donate_underlined"><u>Donate</u></string>
<string name="follow_us">Követés:</string>
<string name="copyright">%1$s verzió\nSzerzői jogok: © Simple Mobile Tools %2$d</string>

View File

@ -39,11 +39,13 @@
<string name="about">Informazioni</string>
<string name="website">Altre semplici app e codici sorgenti in:\nhttp://simplemobiletools.com</string>
<string name="email_label">Invia la tua opinione o i tuoi suggerimenti a:</string>
<string name="more_apps_underlined"><u>More apps</u></string>
<string name="third_party_licences_underlined"><u>Licenze di terze parti</u></string>
<string name="invite_friends_underlined"><u>Invite friends</u></string>
<string name="share_text">Hey, come check out %1$s at %2$s</string>
<string name="invite_via">Invite via</string>
<string name="rate_us_underlined"><u>Dacci un voto sul Play Store</u></string>
<string name="donate_underlined"><u>Donate</u></string>
<string name="follow_us">Seguici:</string>
<string name="copyright">v %1$s\nCopyright © Simple Mobile Tools %2$d</string>

View File

@ -39,11 +39,13 @@
<string name="about">アプリについて</string>
<string name="website">もっとシンプルなアプリとソースコードは:\nhttp://simplemobiletools.com</string>
<string name="email_label">ご意見やご提案をお送りください:</string>
<string name="more_apps_underlined"><u>More apps</u></string>
<string name="third_party_licences_underlined"><u>サードパーティー ライセンス</u></string>
<string name="invite_friends_underlined"><u>友達を招待</u></string>
<string name="share_text">%2$s で %1$s をチェックしてみてください</string>
<string name="invite_via">招待...</string>
<string name="rate_us_underlined"><u>Play ストアで評価してください</u></string>
<string name="donate_underlined"><u>Donate</u></string>
<string name="follow_us">フォローしてください:</string>
<string name="copyright">v %1$s\nCopyright © Simple Mobile Tools %2$d</string>

View File

@ -39,11 +39,13 @@
<string name="about">Acerca</string>
<string name="website">Mais aplicações Simple e código fonte em:\nhttp://simplemobiletools.com</string>
<string name="email_label">Envie os seus comentários ou sugestões para:</string>
<string name="more_apps_underlined"><u>More apps</u></string>
<string name="third_party_licences_underlined"><u>Licenças de terceiros</u></string>
<string name="invite_friends_underlined"><u>Convidar amigos</u></string>
<string name="share_text">Olá, experimenta %1$s em %2$s</string>
<string name="invite_via">Convidar via</string>
<string name="rate_us_underlined"><u>Avalie-nos na Play Store</u></string>
<string name="donate_underlined"><u>Donate</u></string>
<string name="follow_us">Siga-nos:</string>
<string name="copyright">V %1$s\nCopyright © Simple Mobile Tools %2$d</string>

View File

@ -39,11 +39,13 @@
<string name="about">Om</string>
<string name="website">Fler enkla appar och källkod här:\nhttp://simplemobiletools.com</string>
<string name="email_label">Skicka feedback och förslag till:</string>
<string name="more_apps_underlined"><u>More apps</u></string>
<string name="third_party_licences_underlined"><u>Tredjepartslicenser</u></string>
<string name="invite_friends_underlined"><u>Invite friends</u></string>
<string name="share_text">Hey, come check out %1$s at %2$s</string>
<string name="invite_via">Invite via</string>
<string name="rate_us_underlined"><u>Betygsätt oss i Play Butiken</u></string>
<string name="donate_underlined"><u>Donate</u></string>
<string name="follow_us">Följ oss:</string>
<string name="copyright">v %1$s\nCopyright © Simple Mobile Tools %2$d</string>

View File

@ -40,11 +40,13 @@
<string name="website">More simple apps and source code at:\nhttp://simplemobiletools.com</string>
<string name="email_label">Send your feedback or suggestions to:</string>
<string name="email" translatable="false">hello@simplemobiletools.com</string>
<string name="more_apps_underlined"><u>More apps</u></string>
<string name="third_party_licences_underlined"><u>Third party licences</u></string>
<string name="invite_friends_underlined"><u>Invite friends</u></string>
<string name="share_text">Hey, come check out %1$s at %2$s</string>
<string name="invite_via">Invite via</string>
<string name="rate_us_underlined"><u>Rate us in the Play Store</u></string>
<string name="donate_underlined"><u>Donate</u></string>
<string name="follow_us">Follow us:</string>
<string name="copyright">v %1$s\nCopyright © Simple Mobile Tools %2$d</string>