Android Navigation: Menus, ActionBar/ToolBar, and Navigation Drawer Ro’zimurodov Nodirjon



Download 0,86 Mb.
bet1/7
Sana13.12.2022
Hajmi0,86 Mb.
#885109
  1   2   3   4   5   6   7

Android Navigation: Menus, ActionBar/ToolBar, and Navigation Drawer

Ro’zimurodov Nodirjon

Navigation visual


Back Button
ActionBar/
ToolBar
Menu
Note: If there is physical menu button, then the menu does not show on the screen
Navigation Drawer
Action Buttons

Navigation Drawer Layout

  • This is all but the default method that google wants you to use for navigation
    • As well as menus.
    • So at any point you should think about using a listview as a separate fragment
    • Play store as example:

Navigation Drawer Layout (2)

  • Using the toolbar instead of the actionbar,
    • The navigation bar provides the function as google wants: the drawer layout covers the toolbar when it is open.
    • ActionBar ToolBar

Menus

  • Menus are created via an xml document
    • First create a menu xml (normally in res/menu) with menu as the type.
      • You can add items (and sub menus). You can also group the items as well.

Menu.xml example:

"@+id/group1">

"@+id/item1"

android:orderInCategory="5"

android:title="item1"/>

"@+id/item2"

android:orderInCategory="10"

android:title="item2"/>

"@+id/item3"

android:orderInCategory="1"

android:title="item3"/>

"@+id/item4"

android:orderInCategory="3"

android:title="item4"/>

"@+id/item5"

android:orderInCategory="2"

android:title="item5"/>

  • Note the orderInCategory determines the order of display, so this will show:
  • Item3

    Item5

    Item3


    Download 0,86 Mb.

    Do'stlaringiz bilan baham:
  1   2   3   4   5   6   7




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish