mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 13:08:00 +01:00
updated the About activity
This commit is contained in:
parent
a97ed6cb03
commit
960267c543
2 changed files with 37 additions and 3 deletions
|
@ -18,12 +18,14 @@ class AboutActivity : SimpleActivity() {
|
||||||
setContentView(R.layout.activity_about)
|
setContentView(R.layout.activity_about)
|
||||||
|
|
||||||
setupEmail()
|
setupEmail()
|
||||||
setupCopyright()
|
setupMoreApps()
|
||||||
setupRateUs()
|
setupRateUs()
|
||||||
setupInvite()
|
setupInvite()
|
||||||
setupLicense()
|
setupLicense()
|
||||||
|
setupDonate()
|
||||||
setupFacebook()
|
setupFacebook()
|
||||||
setupGPlus()
|
setupGPlus()
|
||||||
|
setupCopyright()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupEmail() {
|
private fun setupEmail() {
|
||||||
|
@ -34,6 +36,12 @@ class AboutActivity : SimpleActivity() {
|
||||||
about_email.movementMethod = LinkMovementMethod.getInstance()
|
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() {
|
private fun setupCopyright() {
|
||||||
val versionName = BuildConfig.VERSION_NAME
|
val versionName = BuildConfig.VERSION_NAME
|
||||||
val year = Calendar.getInstance().get(Calendar.YEAR)
|
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() {
|
fun setupFacebook() {
|
||||||
about_facebook.setOnClickListener {
|
about_facebook.setOnClickListener {
|
||||||
var link = "https://www.facebook.com/simplemobiletools"
|
var link = "https://www.facebook.com/simplemobiletools"
|
||||||
|
|
|
@ -36,12 +36,22 @@
|
||||||
android:text="@string/email"/>
|
android:text="@string/email"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/about_invite"
|
android:id="@+id/about_more_apps"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@+id/about_email"
|
android:layout_below="@+id/about_email"
|
||||||
android:paddingBottom="@dimen/activity_margin"
|
android:paddingBottom="@dimen/activity_margin"
|
||||||
android:paddingTop="@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:text="@string/invite_friends_underlined"
|
||||||
android:textColor="@color/colorPrimary"/>
|
android:textColor="@color/colorPrimary"/>
|
||||||
|
|
||||||
|
@ -66,10 +76,20 @@
|
||||||
android:textColor="@color/colorPrimary"/>
|
android:textColor="@color/colorPrimary"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/about_follow_us"
|
android:id="@+id/about_donate"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@+id/about_license"
|
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:paddingBottom="@dimen/social_padding"
|
||||||
android:paddingTop="@dimen/activity_margin"
|
android:paddingTop="@dimen/activity_margin"
|
||||||
android:text="@string/follow_us"/>
|
android:text="@string/follow_us"/>
|
||||||
|
|
Loading…
Reference in a new issue