jamie-mh / AuthenticatorPro

📱 Two-Factor Authentication (2FA) client for Android + Wear OS
https://authenticatorpro.jmh.me
GNU General Public License v3.0
2.98k stars 198 forks source link

UI enhancements #966

Open milindgoel15 opened 1 year ago

milindgoel15 commented 1 year ago
Jesse205 commented 1 year ago

And on lower versions of Android the status bar icons are white in color and not visible

Jesse205 commented 12 months ago

I don't know why, I can't compile it into an arm64 application, so I can't test if the code I modified works properly.I can only make a few key points.

System bars

  1. Google supports the bright status bar on Android 6 and needs to define android:windowLightStatusBar in XML.
  2. Google supports bright navigation bars on Android 8 and XML definitions on Android 8.1.The attribute value is android:windowLightNavigationBar
  3. Devices that do not suppor light navigation or status bars should use a black semi transparent background to ensure that they can be seen clearly.
  4. The code should use WindowsInsetsCompat to controll light mode, which will be compatible with earlier Android versions.

Scroll

Set an ID for each scrollable view, and Android will automatically handle the scrolling position after reloading the activity.

App bar

  1. The root layout must be CoordinaterLayout
  2. Suggest setting liftOnScrollTargetViewId to ensure normal operation on some pages