The document discusses the meaning and importance of friendship. It describes a friend as a confidant, listener, and shoulder to cry on. A true friend is someone you can share your deepest secrets and experiences with, even more so than family. Friendships are unique bonds that can withstand disagreements and last through challenges. Friends become like family and are a necessary foundation for life. The document expresses gratitude to the reader for being a good friend.
The document outlines a daily lesson plan for a 4th grade mathematics class on basic operations involving length. The plan includes introducing addition of different units of length using examples, practice problems, and online resources for students to explore further. The goal is for students to learn how to add and convert between units of length like millimeters, centimeters, and meters.
The survey results show that R&B and hip hop/rap music are the most popular genres among the target audience. Beyoncé is the most popular artist. Grey, black, and blue are the most popular color scheme. Celebrity gossip and interviews should be included as features in the magazine. The price of the magazine should be between £2.30-£3.20. The magazine should be published monthly. "Champagne and Limousines" is the most popular font for the masthead. "Vibe" magazine is the most appealing magazine to the survey respondents.
The document provides step-by-step instructions for creating an origami square box with a lid using a single sheet of paper. The instructions include 17 figures that illustrate each folding step to transform the paper into a box that can be opened and closed when the lid is lifted.
Diabetes in dependent adults is pervasive. Many are suffering needlessly because their oral health is contributing to glucose management.
Dental hygienists in most states are unable to care for these people without a prescription from a dentist. It's an unnecessary hurdle.
http://www.vzhurudolu.cz/prednaska/design-webu-v-prohlizeci-149 ***** Přednáška pr WebExpo 2015. Pojďme si ukázat proces návrhu rozhraní webu při responzivním redesignu eshopu VašeČočky.cz. V posledních letech jsem opustil standardní postupy s wireframy a Photoshopem. Vystačím si s papírem, tužkou a prohlížečem.
The document discusses the meaning and importance of friendship. It describes a friend as a confidant, listener, and shoulder to cry on. A true friend is someone you can share your deepest secrets and experiences with, even more so than family. Friendships are unique bonds that can withstand disagreements and last through challenges. Friends become like family and are a necessary foundation for life. The document expresses gratitude to the reader for being a good friend.
The document outlines a daily lesson plan for a 4th grade mathematics class on basic operations involving length. The plan includes introducing addition of different units of length using examples, practice problems, and online resources for students to explore further. The goal is for students to learn how to add and convert between units of length like millimeters, centimeters, and meters.
The survey results show that R&B and hip hop/rap music are the most popular genres among the target audience. Beyoncé is the most popular artist. Grey, black, and blue are the most popular color scheme. Celebrity gossip and interviews should be included as features in the magazine. The price of the magazine should be between £2.30-£3.20. The magazine should be published monthly. "Champagne and Limousines" is the most popular font for the masthead. "Vibe" magazine is the most appealing magazine to the survey respondents.
The document provides step-by-step instructions for creating an origami square box with a lid using a single sheet of paper. The instructions include 17 figures that illustrate each folding step to transform the paper into a box that can be opened and closed when the lid is lifted.
Diabetes in dependent adults is pervasive. Many are suffering needlessly because their oral health is contributing to glucose management.
Dental hygienists in most states are unable to care for these people without a prescription from a dentist. It's an unnecessary hurdle.
http://www.vzhurudolu.cz/prednaska/design-webu-v-prohlizeci-149 ***** Přednáška pr WebExpo 2015. Pojďme si ukázat proces návrhu rozhraní webu při responzivním redesignu eshopu VašeČočky.cz. V posledních letech jsem opustil standardní postupy s wireframy a Photoshopem. Vystačím si s papírem, tužkou a prohlížečem.
2. Design android aplikace z pohledu programátora
Představení
Tomáš Vondráček
Android Developer
Inmite
Vývoj pro chytré telefony (Android: Mobilní Banka,
YouRadio, Radio Tycoon, ČT24, Corkbin, SMS jízdenka a
další)
2
3. Design android aplikace z pohledu programátora
Agenda
Cíle přednášky
Než začneme programovat
Z čeho se skládá UI aplikace
Co dělat a čemu se vyhnout
Máme rádi XML
Od inline kódu po dynamické přepínání témat
Tipy na závěr, Q & A
3
4. Design android aplikace z pohledu programátora
Cíle přednášky
Úskálí při vytváření UI pro android a jejich řešení
Jak udělat naší aplikaci hezčí navenek i v kódu
4
5. Design android aplikace z pohledu programátora
Než začneme s vývojem
Koncová zařízení
Verze androida
5
8. Design android aplikace z pohledu programátora
Koncová zařízení
Různé hustoty pixelů - ldpi, mdpi, hdpi, xhdpi
Různé velikosti - small, normal, large, xlarge
Výbava
8
9. Design android aplikace z pohledu programátora
Koncová zařízení
normal-hdpi
small-mdpi
xlarge(large)-
mdpi
9
13. Design android aplikace z pohledu programátora
Koncová zařízení
Jednotky nezávislé na hustotě - dip
Resources podle dpi
ldpi 0.75x / mdpi 1.0x / hdpi 1.5x /xhdpi 2.0x
Layout podle velikosti, orientace
13
15. Design android aplikace z pohledu programátora
Koncová zařízení
verze androida
http://developer.android.com/resources/dashboard/platform-versions.html
15
16. Design android aplikace z pohledu programátora
Koncová zařízení
verze androida - příklady rozdílů
2.1 - Sync adapters, nové API pro kontakty
2.2 - Androida Cloud to Device Messaging, nové API pro
audio focus, APP2SD
2.3 - Nové gra cké téma
3.0 - Tablety
Hardwarová výbava - senzory
16
17. Design android aplikace z pohledu programátora
Agenda
Cíle přednášky
Než začneme programovat
Z čeho se skládá UI aplikace
Co dělat a čemu se vyhnout
Máme rádi XML
Od inline kódu po dynamické přepínání témat
Tipy na závěr, Q & A
17
20. Design android aplikace z pohledu programátora
UI aplikace - layout
ViewGroup - Linear Layout,
Relative, Layout,...
View - TextView,
ImageView, ListView,
Button ...
20
21. Design android aplikace z pohledu programátora
UI aplikace - layout
<LinearLayout android:id="@+id/pricelayout"
style="@style/priceInfoBlock"
android:orientation="vertical"
android:layout_weight="1"
android:gravity="right" >
<TextView
android:id="@+id/price"
style="@style/moneyText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/money_item_text"/>
<TextView
android:id="@+id/change"
style="@style/subText.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/money_item_text"/>
</LinearLayout>
21
22. Design android aplikace z pohledu programátora
UI aplikace - patterny
TabBar
ActionBar
Dashboard
Multi pane layout
22
28. Design android aplikace z pohledu programátora
Agenda
Cíle přednášky
Než začneme programovat
Z čeho se skládá UI aplikace
Co dělat a čemu se vyhnout
Máme rádi XML
Od inline kódu po dynamické přepínání témat
Tipy na závěr, Q & A
28
29. Design android aplikace z pohledu programátora
Tudy ano
dip
podporujte obě orientace
d-pad
ukažte obsah hned jak ho máte
přístup do sítě, databáze, kartu, dlouhé operace -
background thread, neblokovat UI
29
30. Design android aplikace z pohledu programátora
Tudy ne
backstack
absolute layout, px
portrait only
modální dialog
30
31. Design android aplikace z pohledu programátora
Agenda
Cíle přednášky
Než začneme programovat
Z čeho se skládá UI aplikace
Co dělat a čemu se vyhnout
Máme rádi XML
Od inline kódu po dynamické přepínání témat
Tipy na závěr, Q & A
31
32. Design android aplikace z pohledu programátora
Drawables
drawable je obecný koncept pro gra ku, která může
být nakreslena na obrazovku
Bitmapy (png)
9-patche
Xml Drawables
32
33. Design android aplikace z pohledu programátora
PNG v aplikaci
Ikonka aplikace
Ikonky akcí
Pozadí okna
Pozadí pro view (Button, EditText)
33
34. Design android aplikace z pohledu programátora
PNG v aplikaci
Ikonka aplikace
Ikonky akcí
Pozadí okna
Pozadí pro view (Button, EditText)
Jedna obrazovka - 2 layouty x 3 dpi -> spousta png
34
39. Design android aplikace z pohledu programátora
Shape vs 9-patch
Shape 9-patch
zakulacené rohy zakulacené rohy
gradienty gradienty
nenáročný na pamět a padding
CPU obecné roztahovatelné
padding regiony
1 shape pro všechny dpi dithering
39
40. Design android aplikace z pohledu programátora
Shape vs 9-patch
Shape 9-patch
zakulacené rohy zakulacené rohy
gradienty gradienty
nenáročný na pamět a padding
CPU obecné roztahovatelné
padding regiony
1 shape pro všechny dpi dithering
40
41. Design android aplikace z pohledu programátora
XML drawables
Selector
Xml Bitmap
Layer list
a další
41
42. Design android aplikace z pohledu programátora
Selector
Umožňuje jednoduše odlišit různé stavy UI
normal vs focused vs pressed
42
43. Design android aplikace z pohledu programátora
Selector
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
android:drawable="@drawable/btn_home_pressed" />
<item android:state_focused="true"
android:drawable="@drawable/btn_home_focused" />
<item android:drawable="@drawable/btn_home_normal"/>
</selector>
43
44. Design android aplikace z pohledu programátora
XML bitmap
alias pro skutečnou bitmapu
dlaždice
výřez
44
46. Design android aplikace z pohledu programátora
XML bitmap
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/bg"
android:gravity="top|center_horizontal" />
46
49. Design android aplikace z pohledu programátora
Layer list
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:id="@id/background">
<bitmap
android:src="@drawable/bg"
android:gravity="top|center_horizontal" />
</item>
<item
android:top="@dimen/actionBarHeight"
android:right="0dp">
<bitmap
android:src="@drawable/bg_stain"
android:gravity="top|right" />
</item>
</layer-list>
49
50. Design android aplikace z pohledu programátora
Agenda
Cíle přednášky
Než začneme programovat
Z čeho se skládá UI aplikace
Co dělat a čemu se vyhnout
Máme rádi XML
Od inline kódu po dynamické přepínání témat
Tipy na závěr, Q & A
50
51. Design android aplikace z pohledu programátora
Styly a témata
Style
sada vlastností které určují vzhled a formát okna nebo
konkrétního view
Theme
styl aplikovaný na celou aplikaci
51
52. Design android aplikace z pohledu programátora
Inline vs Style vs Theme
Level 0 - inline
layout.xml
Level 1 - style
Level 2 - theme
52
53. Design android aplikace z pohledu programátora
Inline vs Style vs Theme
Level 0 - inline
Level 1 - style
layout.xml
Styles.xml
Level 2 - theme
53
54. Design android aplikace z pohledu programátora
Inline vs Style vs Theme
Level 0 - inline
Level 1 - style
Level 2 - theme
layout.xml
themes.xml
54
55. Design android aplikace z pohledu programátora
Výhody
Šetří čas
Neopakuje se stále stejný kód
Oddělení vzhledu od struktury UI
je vyměnitelný
55
56. Design android aplikace z pohledu programátora
Přepínání témat
Plné využití themes jak jsme si ukázali
Navíc:
Vlastní view
Ikonky
Různé styly pro text
56
57. Design android aplikace z pohledu programátora
Attribute
V layout.xml nepřiřadíme přímo style, ale attribute
Hodnotu attributu nastavíme v theme
Attribute se vyhodnotí v runtimu podle aktuálního
tématu
57
58. Design android aplikace z pohledu programátora
Attribute
nejdříve deklarace co chceme mít témovatelné
<declare-styleable name="homeIcons">
<attr name="homeBranchesIcon" format="integer" />
<attr name="homeATMsIcon" format="integer" />
<attr name="homeContactsIcon" format="integer" />
<attr name="homeNewsIcon" format="integer" />
<attr name="homeSettingsIcon" format="integer" />
</declare-styleable> attrs.xml
58
64. Design android aplikace z pohledu programátora
Agenda
Cíle přednášky
Než začneme programovat
Z čeho se skládá UI aplikace
Co dělat a čemu se vyhnout
Máme rádi XML
Od inline kódu po dynamické přepínání témat
Tipy na závěr, Q & A
64
65. Design android aplikace z pohledu programátora
AsyncTask
zpracování na pozadí
synchronizace s UI
AsyncTask vs Service
65
66. Design android aplikace z pohledu programátora
Compatibility package
novinky z android 3.0 dostupné i na telefonech až po
1.6
Fragmenty
Loader
ViewPager
66
67. Design android aplikace z pohledu programátora
Bitmapy
vyvarovat se velkým bitmapám
2.3 a starší - bitmapy nejsou v heapu aplikace
lepší je shape, 9-patch, dlaždice
používat palety
67
68. Design android aplikace z pohledu programátora
Výkon
Nealokovat pamět pokud to není potřeba
Zjednodušit architekturu
enum -> public static nal
String.format(...)
Static je lepší než Virtual je lepší než interface
68