Android L Style Pack for XE7 » Developer.Team - Developers Paradise!

Android L Style Pack for XE7

Android L Style Pack for XE7
Android L Style Pack for XE7 | 836 kB


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


Home:
http://blogs.embarcadero.com/sarinadupont/2015/01/22/android-l-style-pack/


[/b]

[b] Only for V.I.P
Warning! You are not allowed to view this text.