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
Evgeny Shishkin
February 26, 2015
Education
97
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
56
Aviasales Отели - практический опыт объединения двух приложений
johnkil
0
100
Kotlin in production
johnkil
0
150
Life without Fragments
johnkil
1
550
6. Создание UI
johnkil
0
92
3. Создание Android приложения
johnkil
0
83
4. Структура Android приложения
johnkil
0
160
5. Android ресурсы
johnkil
0
85
1. Введение в Android
johnkil
0
82
Other Decks in Education
See All in Education
Padlet opetuksessa
matleenalaakso
12
16k
[2026後期火5] 論理学(京都大学文学部 後期 第2回)「量化子の導入」
yatabe
0
230
Sekolah Sabat - Triwulan 3 2026 - Pelajaran 13
hiola
0
11k
2026年度秋学期 統計学 第3回 クロス集計と感度・特異度,データの可視化 (2026. 10. 13)
akiraasano
PRO
0
290
Session 1 & 2 - Mass Communication
adeputra13
0
320
TISSUE
pawan_pharm
0
300
Sekolah Sabat - Triwulan 4 2026 - Pelajaran 5
hiola
0
12k
人工知能とは/IntroAI02
kfujita
0
120
Invest Early, Build Together
rashwhitman
0
980
The Dirty Dozen: 12 gala mistakes you don’t know you’re making
auctria
PRO
0
250
Sekolah Sabat - Triwulan 4 2026 - Pelajaran 6
hiola
0
8.9k
Pharmacognosy_Chapter_-1.pdf , Definition, history & scope of pharmacognosy
ak679839
0
180
Featured
See All Featured
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
930
Optimizing for Happiness
mojombo
378
71k
Embracing the Ebb and Flow
colly
88
5.2k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
Discover your Explorer Soul
emna__ayadi
2
1.3k
The Curious Case for Waylosing
cassininazir
1
610
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
For a Future-Friendly Web
brad_frost
184
11k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
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/