Android 5.0 Lollipop Style Pack for Appmethod
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. This requires the Appmethod September Release (Version 1.15).
Here are the steps to add Android L styling support to your Appmethod Android application:
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
Tags: Appmethod Android Style Lollipop 5.0