What is the correct way to change the statusbar color in android. So that it work in all the devices evenly.
All these months no answers that works. Any one have any method that really works for all the devices.
Finally i am satisfied and made decision not to use FMX for android development. For Desktop Delphi rocks but for android it is not mature enough to be.
Delphi FMX is multiplatform solution, so you need to remember that. In many place you need to use Android (Java) classes. So add this code to yours application and you will have what you need on create application event:
uses Androidapi.Helpers, FMX.Helpers.Android, Androidapi.JNI.GraphicsContentViewText;
procedure TForm1.FormCreate(Sender: TObject);
// work without but should be uncoment this 2 lines https://developer.android.com/reference/android/view/Window#setStatusBarColor(int)You shuld uncoment this 2 lines
Anyone could give a sample code to change status bar foreground color? If I set status bar color to white the statuses can't be seen because they were white also.
I can help but I am out station. Take your time in this forum. If anyone helps you, which i doubt, this may take time, if you still not received your answer then when I arrive I will send you the code.
Best of luck.