// Create an ImageView for the 9-patch border around the tile.
ImageView borderImage = new ImageView();
- borderImage.SetStyleName("DemoTileBorder");
borderImage.ResourceUrl = CommonResource.GetDaliResourcePath() + "DaliDemo/item-background.9.png";
borderImage.PositionUsesPivotPoint = true;
borderImage.PivotPoint = PivotPoint.Center;
{
"styles":
{
- "ConfirmationPopup":{
- "popupBackgroundImage":"{APPLICATION_RESOURCE_PATH}/images/00_popup_bg.9.png"
- },
-
- "CustomPopupStyle":{
- "popupBackgroundImage":"{APPLICATION_RESOURCE_PATH}/images/popup.9.png",
- "popupBackgroundBorder":[0,4,4,0],
- "tailUpImage":"{APPLICATION_RESOURCE_PATH}/images/popup-tail-up.png",
- "tailDownImage":"{APPLICATION_RESOURCE_PATH}/images/popup-tail-down.png",
- "tailLeftImage":"{APPLICATION_RESOURCE_PATH}/images/popup-tail-left.png",
- "tailRightImage":"{APPLICATION_RESOURCE_PATH}/images/popup-tail-right.png"
- },
-
"DemoTile":
{
"states":
{
"image":
{
- "url":"{APPLICATION_RESOURCE_PATH}/images/demo-tile-texture.9.png",
// TILE_BACKGROUND_ALPHA
// This shader takes a texture.
// An alpha discard is performed.
{
"image":
{
- "url":"{APPLICATION_RESOURCE_PATH}/images/demo-tile-texture-focused.9.png",
// TILE_BACKGROUND_ALPHA
// This shader takes a texture.
// An alpha discard is performed.
}
}
},
- "FocusActor":
- {
- "visuals":
- {
- "image":
- {
- "url":"{APPLICATION_RESOURCE_PATH}/images/tile-focus.9.png"
- }
- }
- },
- "DemoTileBorder":
- {
- "visuals":
- {
- "image":
- {
- "url":"{APPLICATION_RESOURCE_PATH}/images/item-background.9.png" // TILE_BACKGROUND
- }
- }
- },
"TextLabelRosemary":
{
"fontFamily":"Rosemary"
"units": "USER_SPACE",
"stopColor": [[0.247,0.38,0.52,1.0],[0.055,0.18,0.286,1.0]]
}
- },
-//
-// Simple Visuals Application Style section
-//
- "MyControl":
- {
- "states":
- {
- "NORMAL":
- {
- "visuals":
- {
- "iconVisual":
- {
- "url":"{APPLICATION_RESOURCE_PATH}/images/application-icon-13.png"
- }
- }
- },
- "FOCUSED":
- {
- "visuals":
- {
- "iconVisual":
- {
- "url":"{APPLICATION_RESOURCE_PATH}/images/application-icon-83.png"
- }
- }
- }
- }
}
}
}