Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
12. Меню и Настройки
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Evgeny Shishkin
February 26, 2015
Education
93
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
52
Aviasales Отели - практический опыт объединения двух приложений
johnkil
0
100
Kotlin in production
johnkil
0
150
Life without Fragments
johnkil
1
550
6. Создание UI
johnkil
0
88
3. Создание Android приложения
johnkil
0
82
4. Структура Android приложения
johnkil
0
160
5. Android ресурсы
johnkil
0
80
1. Введение в Android
johnkil
0
81
Other Decks in Education
See All in Education
2026年度秋学期 統計学 第1回 イントロダクション ー 統計的なものの見方・考え方について (2026. 9. 29)
akiraasano
PRO
0
260
Modulo : abc
robintux
0
240
HCI and Interaction Design - Lecture 2 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
2k
日本における応用言語学・言語教育学これまでとこれから
terasawat
0
170
セキュリティ担当がいない中小医療機関を院外のRISSはどう支えるべきか / How External RISS Can Help Small Medical Institutions
eller86
1
230
GENERAL PHARMACOLOGY
pawan_pharm
0
210
Tema 1. El relieve de España: Formación y características
juanmartin2026
0
39k
El Geoparque Mundial UNESCO Volcanes de Calatrava de la Investigación Científica a la Transposición Didáctica en el aula
juanmartin2026
1
33k
批判的応用言語学ワークショップ(2026-08-12 お茶の⽔⼥⼦⼤学)
terasawat
0
210
Introduction to M&A
bvr7352
0
240
20260908_ターゲットとスコープを決める発表法
masakiokuda
1
140
Sekolah Sabat - Triwulan 3 2026 - Pelajaran 13
hiola
0
11k
Featured
See All Featured
Are puppies a ranking factor?
jonoalderson
2
4.1k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
The Art of Programming - Codeland 2020
erikaheidi
57
14k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
870
Documentation Writing (for coders)
carmenintech
77
5.6k
How GitHub (no longer) Works
holman
316
150k
Abbi's Birthday
coloredviolet
4
10k
sira's awesome portfolio website redesign presentation
elsirapls
0
460
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Odyssey Design
rkendrick25
PRO
2
870
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Amusing Abliteration
ianozsvald
1
350
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/