RAD Studio XE7 customers can now download the Android L style pack. This style pack includes a dark style, a light style and a dark blue style for Android 5.0. You can access the download here.
Here are the steps to add Android L styling support to your Delphi, C++Builder or RAD Studio XE7 Android applications:
1. Place a TStyleBook onto your Master view
2. Set TStyleBook.Name = "AndroidLStyleBook"
3. Load AndroidLLight.fsf, AndroidLDarkBlue.fsf or AndroidLDark.fsf to
AndroidLStyleBook
4. Use the TForm.OnCreate event and add this code:
Object Pascal:
procedure TForm1.FormCreate(Sender: TObject); begin {$IFDEF ANDROID} if TOSVersion.Major = 5 then Form1.StyleBook := AndroidLStyleBook; {$ENDIF} end;
C++:
#if defined(__ANDROID__) if (System::Sysutils::TOSVersion::Check(5)) { Form1->StyleBook = AndroidLStyleBook; } #endif