From c3da1900a0f522be4ac757f97b3cbc71b34077b2 Mon Sep 17 00:00:00 2001 From: M M Arif Date: Tue, 17 Sep 2019 09:24:32 +0500 Subject: [PATCH] add donator to sponsor page, file icon --- .../org/mian/gitnex/activities/SponsorsActivity.java | 5 +++++ app/src/main/res/drawable/ic_file.xml | 5 +++++ app/src/main/res/layout/activity_sponsors.xml | 12 ++++++++++++ app/src/main/res/values/strings.xml | 1 + 4 files changed, 23 insertions(+) create mode 100644 app/src/main/res/drawable/ic_file.xml diff --git a/app/src/main/java/org/mian/gitnex/activities/SponsorsActivity.java b/app/src/main/java/org/mian/gitnex/activities/SponsorsActivity.java index cb058a2f..8db47f6c 100644 --- a/app/src/main/java/org/mian/gitnex/activities/SponsorsActivity.java +++ b/app/src/main/java/org/mian/gitnex/activities/SponsorsActivity.java @@ -2,8 +2,10 @@ package org.mian.gitnex.activities; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; +import android.text.method.LinkMovementMethod; import android.view.View; import android.widget.ImageView; +import android.widget.TextView; import org.mian.gitnex.R; /** @@ -20,6 +22,9 @@ public class SponsorsActivity extends AppCompatActivity { setContentView(R.layout.activity_sponsors); ImageView closeActivity = findViewById(R.id.close); + TextView liberaPaySponsorsThomas = findViewById(R.id.liberaPaySponsorsThomas); + + liberaPaySponsorsThomas.setMovementMethod(LinkMovementMethod.getInstance()); initCloseListener(); closeActivity.setOnClickListener(onClickListener); diff --git a/app/src/main/res/drawable/ic_file.xml b/app/src/main/res/drawable/ic_file.xml new file mode 100644 index 00000000..a431a5e9 --- /dev/null +++ b/app/src/main/res/drawable/ic_file.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/layout/activity_sponsors.xml b/app/src/main/res/layout/activity_sponsors.xml index e2e3f145..3673b1ab 100644 --- a/app/src/main/res/layout/activity_sponsors.xml +++ b/app/src/main/res/layout/activity_sponsors.xml @@ -73,6 +73,18 @@ android:text="@string/liberaPaySponsorsFabian" android:textColor="@color/white" android:textSize="16sp" + android:layout_marginBottom="10dp" + android:textColorLink="@color/lightBlue" + /> + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c4d09afc..6eb6ef48 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -407,6 +407,7 @@ Liberapay Fabian Stamm + Thomas Schneider @Fedilab