Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
12. Меню и Настройки
Search
Evgeny Shishkin
February 26, 2015
Education
91
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
12. Меню и Настройки
Evgeny Shishkin
February 26, 2015
More Decks by Evgeny Shishkin
See All by Evgeny Shishkin
Создать собственное приложение для планирования путешествий за 60 секунд
johnkil
0
49
Aviasales Отели - практический опыт объединения двух приложений
johnkil
0
100
Kotlin in production
johnkil
0
150
Life without Fragments
johnkil
1
530
6. Создание UI
johnkil
0
83
3. Создание Android приложения
johnkil
0
77
4. Структура Android приложения
johnkil
0
150
5. Android ресурсы
johnkil
0
78
1. Введение в Android
johnkil
0
71
Other Decks in Education
See All in Education
Examen de Selectividad. Geografía julio 2026 (Convocatoria Extraordinaria). UCLM
juanmartin2026
1
10k
2026年度春学期 統計学 第11回 分布の「型」を考える - 確率分布モデルと正規分布 (2026. 6. 11)
akiraasano
PRO
0
150
プログラミング言語において文字列を複数行にわたって だらだらと記載するアレ
sapi_kawahara
0
180
AWS Skill Builderを活用した一石二鳥の業務計画
ysaeki
0
100
Visionary Initiative: Future Intelligence 「未来の知性と社会の礎を築く」|Science Tokyo(東京科学大学)
sciencetokyo
PRO
0
1k
Dashboards - Lecture 11 - Information Visualisation (4019538FNR)
signer
PRO
1
2.8k
AI-Based Speaking Assessment of a Short-Term Study Abroad Program
uranoken
0
390
Soluciones al examen de Geografía 2026. JUNIO (Convocatoria Ordinaria)
juanmartin2026
1
7.1k
Del ojo entrenado a la visión computacional: evaluación de la severidad de enfermedades
emdelponte
0
110
[2026前期火5] 論理学(京都大学文学部 前期 第12回)「証明を走らせる:カリー・ハワード対応」
yatabe
0
230
Case Studies - Lecture 12 - Information Visualisation (4019538FNR)
signer
PRO
0
190
2026年度春学期 統計学 第7回 データの関係を知る(2)ー 回帰と決定係数 (2026. 5. 21)
akiraasano
PRO
0
240
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
WENDY [Excerpt]
tessaabrams
11
39k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
760
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Optimising Largest Contentful Paint
csswizardry
37
3.8k
Into the Great Unknown - MozCon
thekraken
41
2.6k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
A better future with KSS
kneath
240
18k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
500
We Are The Robots
honzajavorek
0
290
30 Presentation Tips
portentint
PRO
1
360
Transcript
Меню и Настройки Шишкин Евгений
Меню
Attributes • android:id • android:icon • android:title • android:showAsAction /
app:showAsAction
onCreateOptionsMenu
onOptionsItemSelected
Настройки
Preference • CheckBoxPreference • ListPreference • EditTextPreference • RingtonePreference •
Preference • PreferenceScreen • PreferenceCategory
Attributes • android:key • android:title • android:summary • android:defaultValue
PreferenceActivity • addPreferencesFromResource(R.xml.preferences);
None
None
SharedPreferences • PreferenceManager.getDefaultSharedPreferences();
SharedPreferences • getBoolean(String key, boolean defValue); • getFloat(String key, float
defValue); • getInt(String key, int defValue); • getLong(String key, long defValue); • getString(String key, String defValue)
SharedPreferences String checkboxKey = "checkbox"; SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); boolean
isChecked = prefs.getBoolean(checkboxKey, false); String checkboxKey = "checkbox"; SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences.Editor editor = prefs.edit(); editor.putBoolean(checkboxKey, true); editor.commit(); Read Write
Ссылки • http://developer.android.com/guide/topics/ui/ menus.html • http://developer.android.com/guide/topics/ui/ settings.html • http://developer.android.com/training/basics/data- storage/shared-preferences.html
• http://habrahabr.ru/post/112100/