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
100
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
12. Меню и Настройки
Evgeny Shishkin
February 26, 2015
Transcript
15 slides
Меню и Настройки Шишкин Евгений
Меню
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/
More Decks by Evgeny Shishkin
See All by Evgeny Shishkin
Создать собственное приложение для планирования путешествий за 60 секунд
johnkil
0
57
Aviasales Отели - практический опыт объединения двух приложений
johnkil
0
100
Kotlin in production
johnkil
0
150
Life without Fragments
johnkil
1
560
6. Создание UI
johnkil
0
93
3. Создание Android приложения
johnkil
0
84
4. Структура Android приложения
johnkil
0
160
5. Android ресурсы
johnkil
0
86
1. Введение в Android
johnkil
0
83
Other Decks in Education
See All in Education
[2026後期火5] 論理学(京都大学文学部 後期 第3回)「∀ の規則と固有変数条件」
yatabe
0
200
AIができることを人はなぜ学ぶのか ― 専門性を育て、AIと学び続ける大学へ
gmoriki
0
200
AI活用の基礎体験ハンズオン(松尾研 AXエバンジェリスト講座)
minorun365
PRO
13
16k
Biological Source, Chemical Constituents And Therapeutic Efficacy
pawan_pharm
0
180
【ainiチャット操作ガイド】
ainischool
0
220
[2026後期火5] 論理学(京都大学文学部 後期 第4回)「∃ の規則と存在具体性」
yatabe
0
140
GOVERNOR ADDRESS 1 :延岡 研一 氏(国際ロータリー第2720地区:2026-2027年度 地区ガバナー・人吉ロータリークラブ ・人吉電気工事株式会社 会長)卓話 : 2026.10.26例会・卓話
2720japanoke
0
690
チームワークなどの「人間力」をAIの背中を見て学ぼう
oguemon
0
160
Web 2.0 Patterns and Technologies - Lecture 8 - Web Technologies (1019888BNR)
signer
PRO
0
3.5k
1002
cbtlibrary
0
560
Invest Early, Build Together
rashwhitman
0
1k
Requirements Analysis and Prototyping - Lecture 3 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.9k
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
72
12k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
A Modern Web Designer's Workflow
chriscoyier
699
190k
Become a Pro
speakerdeck
PRO
31
6.4k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
The SEO Collaboration Effect
kristinabergwall1
1
630
Building an army of robots
kneath
307
47k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
680
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3.1k
The Art of Programming - Codeland 2020
erikaheidi
57
15k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.7k