Skip to content

Commit 7fec8e5

Browse files
committed
add some new things to About screen
1 parent 6f70aac commit 7fec8e5

File tree

10 files changed

+52
-3
lines changed

10 files changed

+52
-3
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/activities/AboutActivity.kt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ class AboutActivity : SimpleActivity() {
1818
setContentView(R.layout.activity_about)
1919

2020
setupEmail()
21+
setupMoreApps()
2122
setupCopyright()
2223
setupRateUs()
2324
setupInvite()
2425
setupLicense()
26+
setupDonate()
2527
setupFacebook()
2628
setupGPlus()
2729
}
@@ -34,6 +36,12 @@ class AboutActivity : SimpleActivity() {
3436
about_email.movementMethod = LinkMovementMethod.getInstance()
3537
}
3638

39+
private fun setupMoreApps() {
40+
about_more_apps.setOnClickListener {
41+
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/dev?id=9070296388022589266")))
42+
}
43+
}
44+
3745
private fun setupCopyright() {
3846
val versionName = BuildConfig.VERSION_NAME
3947
val year = Calendar.getInstance().get(Calendar.YEAR)
@@ -76,6 +84,12 @@ class AboutActivity : SimpleActivity() {
7684
}
7785
}
7886

87+
fun setupDonate() {
88+
about_donate.setOnClickListener {
89+
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("http://simplemobiletools.github.io/donate")))
90+
}
91+
}
92+
7993
fun setupFacebook() {
8094
about_facebook.setOnClickListener {
8195
var link = "https://www.facebook.com/simplemobiletools"

app/src/main/res/layout/activity_about.xml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,22 @@
3636
android:text="@string/email"/>
3737

3838
<TextView
39-
android:id="@+id/about_invite"
39+
android:id="@+id/about_more_apps"
4040
android:layout_width="match_parent"
4141
android:layout_height="wrap_content"
4242
android:layout_below="@+id/about_email"
4343
android:paddingBottom="@dimen/activity_margin"
4444
android:paddingTop="@dimen/activity_margin"
45+
android:text="@string/more_apps_underlined"
46+
android:textColor="@color/colorPrimary"/>
47+
48+
<TextView
49+
android:id="@+id/about_invite"
50+
android:layout_width="match_parent"
51+
android:layout_height="wrap_content"
52+
android:layout_below="@+id/about_more_apps"
53+
android:paddingBottom="@dimen/activity_margin"
54+
android:paddingTop="@dimen/activity_margin"
4555
android:text="@string/invite_friends_underlined"
4656
android:textColor="@color/colorPrimary"/>
4757

@@ -66,10 +76,20 @@
6676
android:textColor="@color/colorPrimary"/>
6777

6878
<TextView
69-
android:id="@+id/about_follow_us"
79+
android:id="@+id/about_donate"
7080
android:layout_width="match_parent"
7181
android:layout_height="wrap_content"
7282
android:layout_below="@+id/about_license"
83+
android:paddingBottom="@dimen/activity_margin"
84+
android:paddingTop="@dimen/activity_margin"
85+
android:text="@string/donate_underlined"
86+
android:textColor="@color/colorPrimary"/>
87+
88+
<TextView
89+
android:id="@+id/about_follow_us"
90+
android:layout_width="match_parent"
91+
android:layout_height="wrap_content"
92+
android:layout_below="@+id/about_donate"
7393
android:paddingBottom="@dimen/social_padding"
7494
android:paddingTop="@dimen/activity_margin"
7595
android:text="@string/follow_us"/>

app/src/main/res/values-de/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@
3939
<string name="about">Über</string>
4040
<string name="website">Weitere einfache Apps und Quellcode findest du auf:\nhttp://simplemobiletools.com</string>
4141
<string name="email_label">Bitte sende Vorschläge und Feedback an:</string>
42+
<string name="more_apps_underlined"><u>More apps</u></string>
4243
<string name="third_party_licences_underlined"><u>Drittanbieterlizenzen</u></string>
4344
<string name="invite_friends_underlined"><u>Freunde einladen</u></string>
4445
<string name="share_text">Hey, wirf doch mal einen Blick auf %1$s: %2$s</string>
4546
<string name="invite_via">Einladen via</string>
4647
<string name="rate_us_underlined"><u>Bewerte uns im Play Store</u></string>
48+
<string name="donate_underlined"><u>Donate</u></string>
4749
<string name="follow_us">Folge uns:</string>
4850
<string name="copyright">v %1$s\nCopyright © Simple Mobile Tools %2$d</string>
4951

app/src/main/res/values-es/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@
3939
<string name="about">Acerca de Simple Notes</string>
4040
<string name="website">Más aplicaciones simples y su código fuente en:\nhttp://simplemobiletools.com</string>
4141
<string name="email_label">Envíe sus comentarios y sugerencias a:</string>
42+
<string name="more_apps_underlined"><u>More apps</u></string>
4243
<string name="third_party_licences_underlined"><u>Licencias de terceros</u></string>
4344
<string name="invite_friends_underlined"><u>Invitar a amigos</u></string>
4445
<string name="share_text">Hola, venga y échele un vistazo a %1$s en %2$s</string>
4546
<string name="invite_via">Invitar vía</string>
4647
<string name="rate_us_underlined"><u>Evalúenos en Google Play Store</u></string>
48+
<string name="donate_underlined"><u>Donate</u></string>
4749
<string name="follow_us">Síganos:</string>
4850
<string name="copyright">v %1$s\nCopyright © Simple Mobile Tools %2$d</string>
4951

app/src/main/res/values-hu/strings.xml

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

app/src/main/res/values-it/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@
3939
<string name="about">Informazioni</string>
4040
<string name="website">Altre semplici app e codici sorgenti in:\nhttp://simplemobiletools.com</string>
4141
<string name="email_label">Invia la tua opinione o i tuoi suggerimenti a:</string>
42+
<string name="more_apps_underlined"><u>More apps</u></string>
4243
<string name="third_party_licences_underlined"><u>Licenze di terze parti</u></string>
4344
<string name="invite_friends_underlined"><u>Invite friends</u></string>
4445
<string name="share_text">Hey, come check out %1$s at %2$s</string>
4546
<string name="invite_via">Invite via</string>
4647
<string name="rate_us_underlined"><u>Dacci un voto sul Play Store</u></string>
48+
<string name="donate_underlined"><u>Donate</u></string>
4749
<string name="follow_us">Seguici:</string>
4850
<string name="copyright">v %1$s\nCopyright © Simple Mobile Tools %2$d</string>
4951

app/src/main/res/values-ja/strings.xml

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

app/src/main/res/values-pt-rPT/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@
3939
<string name="about">Acerca</string>
4040
<string name="website">Mais aplicações Simple e código fonte em:\nhttp://simplemobiletools.com</string>
4141
<string name="email_label">Envie os seus comentários ou sugestões para:</string>
42+
<string name="more_apps_underlined"><u>More apps</u></string>
4243
<string name="third_party_licences_underlined"><u>Licenças de terceiros</u></string>
4344
<string name="invite_friends_underlined"><u>Convidar amigos</u></string>
4445
<string name="share_text">Olá, experimenta %1$s em %2$s</string>
4546
<string name="invite_via">Convidar via</string>
4647
<string name="rate_us_underlined"><u>Avalie-nos na Play Store</u></string>
48+
<string name="donate_underlined"><u>Donate</u></string>
4749
<string name="follow_us">Siga-nos:</string>
4850
<string name="copyright">V %1$s\nCopyright © Simple Mobile Tools %2$d</string>
4951

app/src/main/res/values-sv/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@
3939
<string name="about">Om</string>
4040
<string name="website">Fler enkla appar och källkod här:\nhttp://simplemobiletools.com</string>
4141
<string name="email_label">Skicka feedback och förslag till:</string>
42+
<string name="more_apps_underlined"><u>More apps</u></string>
4243
<string name="third_party_licences_underlined"><u>Tredjepartslicenser</u></string>
4344
<string name="invite_friends_underlined"><u>Invite friends</u></string>
4445
<string name="share_text">Hey, come check out %1$s at %2$s</string>
4546
<string name="invite_via">Invite via</string>
4647
<string name="rate_us_underlined"><u>Betygsätt oss i Play Butiken</u></string>
48+
<string name="donate_underlined"><u>Donate</u></string>
4749
<string name="follow_us">Följ oss:</string>
4850
<string name="copyright">v %1$s\nCopyright © Simple Mobile Tools %2$d</string>
4951

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@
4040
<string name="website">More simple apps and source code at:\nhttp://simplemobiletools.com</string>
4141
<string name="email_label">Send your feedback or suggestions to:</string>
4242
<string name="email" translatable="false">[email protected]</string>
43+
<string name="more_apps_underlined"><u>More apps</u></string>
4344
<string name="third_party_licences_underlined"><u>Third party licences</u></string>
4445
<string name="invite_friends_underlined"><u>Invite friends</u></string>
4546
<string name="share_text">Hey, come check out %1$s at %2$s</string>
4647
<string name="invite_via">Invite via</string>
4748
<string name="rate_us_underlined"><u>Rate us in the Play Store</u></string>
49+
<string name="donate_underlined"><u>Donate</u></string>
4850
<string name="follow_us">Follow us:</string>
4951
<string name="copyright">v %1$s\nCopyright © Simple Mobile Tools %2$d</string>
5052

0 commit comments

Comments
 (0)