From a3abf9e55d8b7034278e382cb851df07d854dfc2 Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Tue, 22 Oct 2024 15:48:20 +0530 Subject: [PATCH] Rework about screen Changes title from Etar to Calendar Makes app icon smaller Hide some ui elements which we don't need Change author text to include our name Clicking on author points to our source code --- .../main/java/com/android/calendar/AboutActivity.kt | 2 +- .../main/java/com/android/calendar/AboutFragment.kt | 2 +- app/src/main/res/layout/about.xml | 10 ++++++---- app/src/main/res/menu/calendar_view.xml | 2 +- app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml | 4 ++-- app/src/main/res/values-de/e_strings.xml | 4 +++- app/src/main/res/values-es/e_strings.xml | 4 +++- app/src/main/res/values-fr/e_strings.xml | 4 +++- app/src/main/res/values-is/e_strings.xml | 1 + app/src/main/res/values-it/e_strings.xml | 4 +++- app/src/main/res/values/e_strings.xml | 2 ++ app/src/main/res/values/strings.xml | 4 ++-- 12 files changed, 28 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/com/android/calendar/AboutActivity.kt b/app/src/main/java/com/android/calendar/AboutActivity.kt index 7aa4e6249..dbfac72d2 100644 --- a/app/src/main/java/com/android/calendar/AboutActivity.kt +++ b/app/src/main/java/com/android/calendar/AboutActivity.kt @@ -18,7 +18,7 @@ class AboutActivity : AppCompatActivity() { setContentView(binding.root) setSupportActionBar(binding.include.toolbar) supportActionBar?.setDisplayHomeAsUpEnabled(true) - title = getString(R.string.preferences_menu_about) + title = getString(R.string.e_preferences_menu_about) if (savedInstanceState == null) { supportFragmentManager diff --git a/app/src/main/java/com/android/calendar/AboutFragment.kt b/app/src/main/java/com/android/calendar/AboutFragment.kt index 792de2ad0..ddc95d63a 100644 --- a/app/src/main/java/com/android/calendar/AboutFragment.kt +++ b/app/src/main/java/com/android/calendar/AboutFragment.kt @@ -42,7 +42,7 @@ class AboutFragment : Fragment() { view.findViewById(R.id.version).text = BuildConfig.VERSION_NAME val year = Calendar.getInstance().get(Calendar.YEAR).toString() - view.findViewById(R.id.copyright).text = getString(R.string.app_copyright, year) + view.findViewById(R.id.copyright).text = getString(R.string.e_app_copyright, year) view.findViewById(R.id.authorsLayout).setOnClickListener { startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.app_authors_url)))) diff --git a/app/src/main/res/layout/about.xml b/app/src/main/res/layout/about.xml index 82d034619..3ced97cc2 100644 --- a/app/src/main/res/layout/about.xml +++ b/app/src/main/res/layout/about.xml @@ -17,8 +17,8 @@ @@ -33,7 +33,8 @@ android:gravity="center_vertical" android:clickable="true" android:focusable="true" - android:background="?attr/selectableItemBackground"> + android:background="?attr/selectableItemBackground" + android:visibility="gone"> + android:layout_gravity="center_vertical" + android:visibility="gone">