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
46
Aviasales Отели - практический опыт объединения двух приложений
johnkil
0
99
Kotlin in production
johnkil
0
150
Life without Fragments
johnkil
1
530
6. Создание UI
johnkil
0
80
3. Создание Android приложения
johnkil
0
77
4. Структура Android приложения
johnkil
0
150
5. Android ресурсы
johnkil
0
77
1. Введение в Android
johnkil
0
69
Other Decks in Education
See All in Education
2026年度春学期 統計学 第2回 統計資料の収集と読み方 (2026. 4. 16)
akiraasano
PRO
0
180
Case Studies and Future Research - Lecture 12 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
180
自己紹介 / who-am-i
yasulab
6
6.9k
事業紹介資料(トレーナー養成講座)
kentaro1981
0
450
[2026前期火5] 論理学(京都大学文学部 前期 第9回)「正規化の停止性——ヒドラゲームによる証明」
yatabe
0
100
SARA Annual Report 2025-26
sara2023
1
370
【セーフィー】テクニカルライティング&コミュニケーション実践講座(26新卒エンジニア向け研修資料)
ymzaki_m4
0
220
AIには考えられないことを考えられる人になるために
iqbocchi
1
160
2026年度春学期 統計学 第5回 分布をまとめるー記述統計量(平均・分散など) (2026. 5. 7)
akiraasano
PRO
0
140
[2026前期火5] 論理学(京都大学文学部 前期 第3回)「形式言語と四つのキーワード:メタ・構成・意味論・ハーモニー」
yatabe
0
550
Implicit and Cross-Device Interaction - Lecture 10 - Next Generation User Interfaces (4018166FNR)
signer
PRO
2
2.3k
Πλουτοκρατία: Η Τυραννία του Μαμμωνά και η Μεταανθρώπινη Δουλεία
amethyst1
0
260
Featured
See All Featured
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
170
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
300
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
330
Java REST API Framework Comparison - PWX 2021
mraible
34
9.4k
Odyssey Design
rkendrick25
PRO
2
700
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
210
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
780
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
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/