Reflex 4.0.2 - Change your status bar πŸ₯³

Version 1.0.0

‐ Fixed a spelling mistake with the description.

‐ The minimum API is now 23, or Android Marshmallow.
Β  This is a backward incompatible change.

‐ You can now set the statusbar icons to be visible on a light background!
Β  Introduced as a parameter to the Setup procedure.


In response to #13

This extension is meant to be used without the title bar being visible. It’s meant to let you make your own title bar while still letting you customize the statusbar.


The new β€œSetup” procedure

Use the β€œisLight” parameter when your statusbar color is transparent and the arrangement color is light or if your statusbar color is light, but not transparent.

Trying to use the procedure provided by :kodular: will not work.

"Setup" procedure.


Download

4 Likes

:package: Reflex 2.0.0

  • :bug: Fixed an issue where Android R and Android S would show a white status bar instead of the configured status bar. This only affected compiled applications, not the companion.
  • :hammer_and_wrench: Migrated to building with Rush
  • :package: Package name has been changed to com.github.squishyoctopus.reflex
  • :unlock: Reflex is open-source on GitHub
  • :label: β€œStatusBar” is now named β€œReflex” :D

:no_entry_sign: Deprecated πš‚πšŽπšπšžπš™(β€¦πš™πšŠπš›πšŠπš–πšœ)

It will be completely removed in v3.0.0, use π™Έπš—πš’πšπš’πšŠπš•πš’πš£πšŽ(β€¦πš™πšŠπš›πšŠπš–πšœ) instead.

:scissors: π™³πš’πšœπš™πš•πšŠπš’π™·πšŠπšœπ™²πšžπšπš˜πšžπš()

Checking if the display has a cutout is now a reality!

:framed_picture: π™ΈπšŒπš˜πš—

Reflex has a new icon!

:wastebasket: Removed πšƒπš›πšŠπš—πšœπš™πšŠπš›πšŽπš—πš

Use 𝟢 instead.

:link: Download and view this release on GitHub

9 Likes

:package: Reflex 3.0.0

  • :tada: Change the state of the status bar an unlimited amount of times
  • :memo: Changed documentation
  • :wastebasket: πš‚πšŽπšπšžπš™(β€¦πš™πšŠπš›πšŠπš–πšœ) has been removed. Use π™Έπš—πš’πšπš’πšŠπš•πš’πš£πšŽ(β€¦πš™πšŠπš›πšŠπš–πšœ) instead.

:black_circle: π™³πš’πšœπš™πš•πšŠπš’π™Έπšœπšπš˜πšžπš—πš()

Check if the display is rounded. This will only return πšπš›πšžπšŽ if the display is rounded by software, not by hardware.

:framed_picture: π™ΈπšŒπš˜πš—

Reflex has a redesigned icon!

icon

:link: Download and view this release on GitHub

1 Like

DonΒ΄t work :slight_smile:

1 Like

You didn’t say what you tried.

P.S. it does in fact work, you are doing something incorrect.

When I run my App. Don’t work…
image

:x: We can use the β€œthe customer isn’t always correct” saying here… Me being the customer of course. I talked to the user privately and tested it myself on older versions of Android, it did in fact not work. I have taken a look into how to fix the issue and due to limitations put on Android earlier, it might not be possible to fix it because of the β€œisLight” argument. Over the next few days, I will continue to look for a solution and post a reply with v3.0.1 when one is found.

:hourglass_flowing_sand: A temporary solution is to set β€œtransparent” to false and set a color other than 0.

The β€œisLight” argument should continue to work normally. This issue only affects Android Q and older.

1 Like

:package: Reflex 3.1.0 – Features and Fixes

:link: Download from GitHub
:mag: View this release on GitHub

π™°πšπšπšŽπš

  • :straight_ruler: π™ΆπšŽπšπ™½πšŠπšŸπš’πšπšŠπšπš’πš˜πš—π™±πšŠπš›π™·πšŽπš’πšπš‘πš – Get the navigation bar height.

  • :gear: πšπšŽπššπšžπšŽπšœπšπ™Έπš—πš’πšπš’πšŠπš•πš’πš£πšŠπšπš’πš˜πš— – Request both the navigation bar and status bar follow set properties as policy.

  • :books: πš‚πšŽπšπ™»πšŠπš’πš˜πšžπš – Set the layout which will be used if transparency is toggled.

  • :art: πš‚πšŽπšπ™½πšŠπšŸπš’πšπšŠπšπš’πš˜πš—π™±πšŠπš›π™²πš˜πš•πš˜πš› – Sets the color of the navigation bar.

  • :art: πš‚πšŽπšπ™½πšŠπšŸπš’πšπšŠπšπš’πš˜πš—π™±πšŠπš›π™³πš’πšŸπš’πšπšŽπš›π™²πš˜πš•πš˜πš› – Shows a thin line of the specified color between the navigation bar and the app content.

    :information_source: Works with Androidβ„’ Pie and newer.

  • :art: πš‚πšŽπšπš‚πšπšŠπšπšžπšœπ™±πšŠπš›π™²πš˜πš•πš˜πš› – Sets the color of the status bar.

  • :art: πšƒπš˜πšπšπš•πšŽπ™½πšŠπšŸπš’πšπšŠπšπš’πš˜πš—π™±πšŠπš›π™»πš’πšπš‘πšπš‚πšπš’πš•πšŽ – Requests the navigation bar to draw in a mode that is compatible with light navigation bar backgrounds.

    :information_source: Works with Androidβ„’ Oreo and newer.

  • :art: πšƒπš˜πšπšπš•πšŽπš‚πšπšŠπšπšžπšœπ™±πšŠπš›π™»πš’πšπš‘πšπš‚πšπš’πš•πšŽ – Requests the status bar to draw in a mode that is compatible with light status bar backgrounds.

  • :mag: πšƒπš˜πšπšπš•πšŽπšƒπš›πšŠπš—πšœπš™πšŠπš›πšŽπš—πšŒπš’ – Requests the layout is drawn behind the status bar. The layout will also be drawn behind the navigation bar.

    :information_source: When either false or true, πšƒπš˜πšπšπš•πšŽπ™½πšŠπšŸπš’πšπšŠπšπš’πš˜πš—π™±πšŠπš›π™»πš’πšπš‘πšπš‚πšπš’πš•πšŽ and πšƒπš˜πšπšπš•πšŽπš‚πšπšŠπšπšžπšœπ™±πšŠπš›π™»πš’πšπš‘πšπš‚πšπš’πš•πšŽ can be set.

    :information_source: When false, the navigation bar and status bar colors (πš‚πšŽπšπ™½πšŠπšŸπš’πšπšŠπšπš’πš˜πš—π™±πšŠπš›π™²πš˜πš•πš˜πš› and πš‚πšŽπšπš‚πšπšŠπšπšžπšœπ™±πšŠπš›π™²πš˜πš•πš˜πš›) can be set. Content inside the specified layout will stay in between the navigation bar and status bar like usual, however the background color of the layout won’t be visible from the navigation bar and status bar.

    :information_source: When true, the set layout will show behind the navigation bar and status bar, with respect to their tone style settings (set with πšƒπš˜πšπšπš•πšŽπ™½πšŠπšŸπš’πšπšŠπšπš’πš˜πš—π™±πšŠπš›π™»πš’πšπš‘πšπš‚πšπš’πš•πšŽ and πšƒπš˜πšπšπš•πšŽπš‚πšπšŠπšπšžπšœπ™±πšŠπš›π™»πš’πšπš‘πšπš‚πšπš’πš•πšŽ). The navigation bar and status bar colors (πš‚πšŽπšπ™½πšŠπšŸπš’πšπšŠπšπš’πš˜πš—π™±πšŠπš›π™²πš˜πš•πš˜πš› and πš‚πšŽπšπš‚πšπšŠπšπšžπšœπ™±πšŠπš›π™²πš˜πš•πš˜πš›) can’t be set and will both remain transparent. Content inside the specified layout will stay in between the navigation bar and status bar like usual, however the background color of the layout will be visible from the navigation bar and status bar.

π™²πš‘πšŠπš—πšπšŽπš

  • :framed_picture: Redesigned icon

π™³πšŽπš™πš›πšŽπšŒπšŠπšπšŽπš

  • :hourglass_flowing_sand: π™³πš’πšœπš™πš•πšŠπš’π™Έπšœπšπš˜πšžπš—πš – This will no longer function as intended, and will return false instead.
  • :hourglass_flowing_sand: π™Έπš—πš’πšπš’πšŠπš•πš’πš£πšŽ – This will no longer function as intended, use πšπšŽπššπšžπšŽπšœπšπ™Έπš—πš’πšπš’πšŠπš•πš’πš£πšŠπšπš’πš˜πš— instead.

π™΅πš’πš‘πšŽπš

  • :bug: Androidβ„’ Marshmallow to Androidβ„’ Q would set their status bars to white, while being set to transparent. Content padding would also be added, which would create more whitespace below the status bar.

    Original reference
    Second reference

πš„πš—πš›πšŽπš•πšŽπšŠπšœπšŽπš

  • :x: Removal of π™Έπš—πš’πšπš’πšŠπš•πš’πš£πšŽ.
  • :x: Source code on GitHub.
5 Likes

:package: Reflex 3.1.1 – Hotfix

:link: Download from GitHub
:mag: View this release on GitHub

π™°πšπšπšŽπš

  • :straight_ruler: πš‚πšŽπšπš‚πš‘πš˜πšžπš•πšπ™°πš™πš™πš•πš’π™ΏπšŠπšπšπš’πš—πš – Requests that when transparency is toggled, that padding is applied to content so it’s not drawn under the navigation bar and status bar.

    :information_source: This is good for designs such as custom action bars!

    :information_source: If false, padding won’t be applied.

    :information_source: If true, padding will be applied.

π™²πš‘πšŠπš—πšπšŽπš

  • :gear: πšπšŽπššπšžπšŽπšœπšπ™Έπš—πš’πšπš’πšŠπš•πš’πš£πšŠπšπš’πš˜πš— – Will now update the UI after properties have been changed before being used.

π™΅πš’πš‘πšŽπš

  • :gear: πšπšŽπššπšžπšŽπšœπšπ™Έπš—πš’πšπš’πšŠπš•πš’πš£πšŠπšπš’πš˜πš— – Being used more than once would cause an error to be thrown saying that null cannot be added to a view.

πš„πš—πš›πšŽπš•πšŽπšŠπšœπšŽπš

  • :x: Removal of π™Έπš—πš’πšπš’πšŠπš•πš’πš£πšŽ.
  • :x: Source code on GitHub.
1 Like

The layout background, can it contain an image?

1 Like

Try it :relieved::blue_heart:Β :)

1 Like

I’m trying, generated apk… …but…

The image, will it be behind the status bar?

1 Like

If you set β€œSetShouldApplyPadding” to false, then yes it should appear behind the status bar.

1 Like

I thought it didn’t work on the companion…but…

In Apk and Companion , only When i click in This button…only Status bar becomes transparent

:package: Reflex 4.0.0

:link: Download from GitHub
:mag: View this release on GitHub

πš„πš—πš›πšŽπš•πšŽπšŠπšœπšŽπš

  • :github: Source code on Github.

π™²πš‘πšŠπš—πšπšŽπš

  • :straight_ruler: π™ΆπšŽπšπ™½πšŠπšŸπš’πšπšŠπšπš’πš˜πš—π™±πšŠπš›π™·πšŽπš’πšπš‘πš & π™ΆπšŽπšπš‚πšπšŠπšπšžπšœπ™±πšŠπš›π™·πšŽπš’πšπš‘πš – More accurate values are now returned, if not returned before.

π™΅πš’πš‘πšŽπš

  • :gear: πšπšŽπššπšžπšŽπšœπšπ™Έπš—πšπš’πšŠπš•πš’πš£πšŠπšπš’πš˜πš— – Devices running Android 10 and lower wouldn’t run full screen if transparency was enabled, instead, there would appear to be a white bar at the top and bottom of the screen.

    :man_technologist:t2: Thank you @Rogerio_Rios for helping debug!

    :information_source: This should be the final fix for this issue, assuming nothing else happens to pop up.

πšπšŽπš–πš˜πšŸπšŽπš

  • :hourglass_flowing_sand: π™³πš’πšœπš™πš•πšŠπš’π™Έπšœπšπš˜πšžπš—πš – No alternative available.
  • :x: π™Έπš—πš’πšπš’πšŠπš•πš’πš£πšŽ – Use πšπšŽπššπšžπšŽπšœπšπ™Έπš—πšπš’πšŠπš•πš’πš£πšŠπšπš’πš˜πš— instead.
5 Likes


Thanks for This Extension

8 Likes

can you share blocks how to set background image in navigation bar and status bar using this extension

Transparent status bar working fine on live test but not not working after installation

Hi @Amanur,

If you’re using Android 11 and higher, I’m aware of this issue and do have it fixed! The next build is currently on hold because there seems to be a few hiccups when toggling transparency still.

1 Like

how can I set the status bar icon dark with your extension?