2 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
21 * |------------------------------------|
22 * | | 2(right,top)| | |
23 * | - - - |----------------|---|----|
27 * | - - - | - - - - - |--------|
32 * | |(left, center) | | |
33 * | - - - | - - - - - |--------|
39 * |------------------------------------|
43 "name":"simple-table",
46 "color": [0.5,0.5,0,1]
48 "parent-origin": "CENTER",
52 "cell-padding": [10, 5],
53 "layout-rows": { // set the height of the rows
54 "0": { "policy": "fixed", "value": 40 },
55 "1": { "policy": "relative", "value": 0.33 },
56 "2": { "policy": "fit", "value": 0 }
58 "layout-columns": { // set the widths of the columns
59 "0": { "policy": "fit", "value": 0 },
60 "2": { "policy": "relative", "value": 0.2 },
61 "3": { "policy": "fixed", "value": 30 }
66 "height-resize-policy":"FILL_TO_PARENT",
68 "filename": "{DALI_IMAGE_DIR}gallery-small-1.jpg"
70 "custom-properties": { // properties registered dynamically
71 "cell-index": [0,0], // property to specify the top-left cell this child occupies
72 "row-span":4, // property to specify how many rows this child occupies, if not set, default value is 1
73 "column-span":1 // property to specify how many columns this child occupies, if nor set, defualt cvalue is 1
78 "height-resize-policy":"FILL_TO_PARENT",
80 "filename": "{DALI_IMAGE_DIR}gallery-small-2.jpg"
82 "custom-properties": { // properties registered dynamically
84 "cell-horizontal-alignment": "right" // property to specify how to align horizontally inside the cells, if not set, default value is 'left'
90 "filename": "{DALI_IMAGE_DIR}gallery-small-3.jpg"
92 "custom-properties": {
95 "cell-horizontal-alignment": "left",// property to specify how to align horizontally inside the cells, if not set, default value is 'left'
96 "cell-vertical-alignment": "center" // property to specify how to align vertically inside the cells, if not set, default value is 'top'
101 "width-resize-policy":"FILL_TO_PARENT",
103 "filename": "{DALI_IMAGE_DIR}gallery-small-4.jpg"
105 "custom-properties": {
111 "width-resize-policy":"FILL_TO_PARENT",
112 "height-resize-policy":"FILL_TO_PARENT",
114 "filename": "{DALI_IMAGE_DIR}gallery-small-5.jpg"
116 "custom-properties": {