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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Evgeny Shishkin
February 26, 2015
Education
92
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
51
Aviasales Отели - практический опыт объединения двух приложений
johnkil
0
100
Kotlin in production
johnkil
0
150
Life without Fragments
johnkil
1
540
6. Создание UI
johnkil
0
86
3. Создание Android приложения
johnkil
0
80
4. Структура Android приложения
johnkil
0
160
5. Android ресурсы
johnkil
0
80
1. Введение в Android
johnkil
0
77
Other Decks in Education
See All in Education
データマネジメント試験対策教材1〜データマネジメント基礎〜
yoshimura_datam
1
690
学生のうちに考えておきたい信頼の話
suisan
1
770
輻射安全管理系統2.0暨輻防e++學園平台說明會
aecrp
0
2k
Tableau Public入門ハンズオン|Titanicデータで学ぶViz作成とMakeover
hayashi_ds017
0
120
人間のために、人間と共に働く時代の終わりの始まり
frievea
0
160
AIがコードを書く時代に、何を教えるのか / What Should We Teach in the Age of AI-Generated Code?
ichiroc
1
540
Soluciones al examen de Geografía 2026. JUNIO (Convocatoria Ordinaria)
juanmartin2026
1
10k
第2部-高校生とAI活用/high-school2026-2
okana2ki
0
150
INTRODUCTION TO THE CELL
pawan5505
0
150
形骸化しない社内勉強会の取り組み - オーナーシップの作り方 / In-house study session
soudai
PRO
1
250
Comentario del plano urbano de Madrid hasta 1860 (1ª parte )
juanmartin2026
1
47k
2026年度春学期 統計学 第11回 分布の「型」を考える - 確率分布モデルと正規分布 (2026. 6. 11)
akiraasano
PRO
0
180
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
463
34k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Making Projects Easy
brettharned
120
6.7k
Test your architecture with Archunit
thirion
2
2.4k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Mobile First: as difficult as doing things right
swwweet
225
10k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Speed Design
sergeychernyshev
33
2.1k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
190
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/