[KOR][E-Kor-Seminar 2014][5/8] Scalable UI (JaeHwan Kim)

17

Transcript of [KOR][E-Kor-Seminar 2014][5/8] Scalable UI (JaeHwan Kim)

1000

1000

Desktop Mobile

1000

1000

Desktop Mobile

1000

1000

100

100

200

Desktop (scale=1.0) Mobile (scale=2.0)

X2.0

ELM_SCALE=2.0 elementary_test

X 4.0 X 2.0

Scale 1.0 2.0 4.0

10

20

40

3

X 2.0

2 1

Scale 1.0 2.0 4.0

10

3 2 1

100

20

200

40

400

4.0

3

20

400

4.0

3

20 40

400

2.0

2

Base scale in edc

collections {

base_scale: 1.8;

parts {

part { name: “box”; type: RECT;

min: 100 100;

scale: 1;

}

}

… }

int app_create(void *data)

{

elm_app_base_scale_set(1.8);

}

evas_object_size_hint_min_set(object,

ELM_SCALE_SIZE(100),

ELM_SCALE_SIZE(100));

evas_object_resize(object,

ELM_SCALE_SIZE(50),

ELM_SCALE_SIZE(50));

Base scale in c

10

10

20

30%

30%

30%