diff --git a/app/src/main/java/org/shadowice/flocke/andotp/Fragments/AboutFragment.java b/app/src/main/java/org/shadowice/flocke/andotp/Fragments/AboutFragment.java index 2114a734..564bf482 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/Fragments/AboutFragment.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/Fragments/AboutFragment.java @@ -49,7 +49,7 @@ public class AboutFragment extends Fragment { static final int[] imageResources = { R.id.aboutImgVersion, R.id.aboutImgLicense, R.id.aboutImgChangelog, R.id.aboutImgSource, - R.id.aboutImgAuthor1, R.id.aboutImgAuthorOriginal, R.id.aboutImgContributors, + R.id.aboutImgAuthor2, R.id.aboutImgAuthorOriginal, R.id.aboutImgContributors, R.id.aboutImgTranslators, R.id.aboutImgBugs, R.id.aboutImgTranslate }; @@ -137,15 +137,15 @@ public class AboutFragment extends Fragment { } }); - TextView author1GitHub = v.findViewById(R.id.about_author1_github); - TextView author1Paypal = v.findViewById(R.id.about_author1_extra); - author1GitHub.setOnClickListener(new View.OnClickListener() { + LinearLayout author1Layout = v.findViewById(R.id.aboutLayoutAuthor1); + TextView author1Donate = v.findViewById(R.id.about_author1_extra); + author1Layout.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { openURI(AUTHOR1_GITHUB); } }); - author1Paypal.setOnClickListener(new View.OnClickListener() { + author1Donate.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { try { @@ -157,15 +157,15 @@ public class AboutFragment extends Fragment { }); - TextView author2GitHub = v.findViewById(R.id.about_author2_github); - TextView author2Paypal = v.findViewById(R.id.about_author2_extra); - author2GitHub.setOnClickListener(new View.OnClickListener() { + LinearLayout author2Layout = v.findViewById(R.id.aboutLayoutAuthor2); + TextView author2Donate = v.findViewById(R.id.about_author2_extra); + author2Layout.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { openURI(AUTHOR2_GITHUB); } }); - author2Paypal.setOnClickListener(new View.OnClickListener() { + author2Donate.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { try { @@ -176,9 +176,9 @@ public class AboutFragment extends Fragment { } }); - TextView authorOriginalGitHub = v.findViewById(R.id.about_author_original_github); + LinearLayout authorOrigialLayout = v.findViewById(R.id.aboutLayoutOriginalAuthor); TextView authorOriginalApp = v.findViewById(R.id.about_author_original_extra); - authorOriginalGitHub.setOnClickListener(new View.OnClickListener() { + authorOrigialLayout.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { openURI(AUTHOR_ORIGINAL_GITHUB); diff --git a/app/src/main/res/layout/fragment_about.xml b/app/src/main/res/layout/fragment_about.xml index 454484bb..bc72b2f5 100644 --- a/app/src/main/res/layout/fragment_about.xml +++ b/app/src/main/res/layout/fragment_about.xml @@ -226,6 +226,7 @@ + android:layout_marginEnd="@dimen/activity_margin" + android:src="@mipmap/ic_author_flocke" /> - - - - - - + android:layout_marginTop="@dimen/activity_margin_small" + android:background="?android:attr/selectableItemBackground" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textStyle="bold" + android:textColor="?attr/colorPaypal" + android:text="@string/about_label_donate_paypal" /> @@ -301,6 +284,7 @@ - - - - - - + android:layout_marginTop="@dimen/activity_margin_small" + android:background="?android:attr/selectableItemBackground" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textStyle="bold" + android:textColor="?attr/colorPaypal" + android:text="@string/about_label_donate_bitcoin" /> @@ -375,6 +342,7 @@ - - - - - - + android:layout_marginTop="@dimen/activity_margin_small" + android:background="?android:attr/selectableItemBackground" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textStyle="bold" + android:textColor="?attr/colorGithub" + android:text="@string/about_label_original_app" /> diff --git a/app/src/main/res/mipmap-hdpi/ic_author_flocke.png b/app/src/main/res/mipmap-hdpi/ic_author_flocke.png new file mode 100644 index 00000000..cac19f1e Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_author_flocke.png differ diff --git a/app/src/main/res/mipmap-mdpi/ic_author_flocke.png b/app/src/main/res/mipmap-mdpi/ic_author_flocke.png new file mode 100644 index 00000000..e2594b7c Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_author_flocke.png differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_author_flocke.png b/app/src/main/res/mipmap-xhdpi/ic_author_flocke.png new file mode 100644 index 00000000..65312696 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_author_flocke.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_author_flocke.png b/app/src/main/res/mipmap-xxhdpi/ic_author_flocke.png new file mode 100644 index 00000000..3d10e35b Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_author_flocke.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_author_flocke.png b/app/src/main/res/mipmap-xxxhdpi/ic_author_flocke.png new file mode 100644 index 00000000..56851eba Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_author_flocke.png differ diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 4d90d39b..6bb10726 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -12,6 +12,8 @@ 14dp 46dp + 64dp + 33sp diff --git a/app/src/main/res/values/strings_about.xml b/app/src/main/res/values/strings_about.xml index 289e31a1..a1aaca60 100644 --- a/app/src/main/res/values/strings_about.xml +++ b/app/src/main/res/values/strings_about.xml @@ -23,7 +23,8 @@ Original App Website Github - Donate + Donate (PayPal) + Donate (Bitcoin) Jakob Nixdorf Bruno Bierbaumer