mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Backgrounds android
This commit is contained in:
8
apps/tests/pages/background-test.ts
Normal file
8
apps/tests/pages/background-test.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import observable = require("data/observable");
|
||||
import pages = require("ui/page");
|
||||
|
||||
// Event handler for Page "loaded" event attached in main-page.xml
|
||||
export function pageLoaded(args: observable.EventData) {
|
||||
// Get the event sender
|
||||
var page = <pages.Page>args.object;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<Page>
|
||||
<GridLayout style="background-image: url('~/pages/test.png')">
|
||||
<Button text="just a button" />
|
||||
<GridLayout style="background-image: url('~/pages/test2.png'); border-color: green; border-radius: 20; border-width: 4;">
|
||||
<Button text="just a button" horizontalAlignment="center" verticalAlignment="center"/>
|
||||
</GridLayout>
|
||||
</Page>
|
||||
Reference in New Issue
Block a user