Есть ли на Android стандартные ярлыки?

создайте функцию baseActivity add внутри нее, чтобы инициализировать панель инструментов и настроить ее так, как вам нравится

open class BaseActivity : AppCompatActivity() {
 protected fun initializeToolbar() {
 val toolbar: Toolbar = findViewById(R.id.toolbar)
        setSupportActionBar(toolbar)
   }
}

create toolbar_main.xml

расширяет baseActivity в любой активности после включения toolbar_main.xml в <include layout="@layout/toolbar_main" />

class MainActivity : BaseActivity(){
}

и вызова функции, созданной вами в baseActivity.

8
задан rene 21 May 2015 в 20:44
поделиться

2 ответа

The last time I checked, the answer was no.

2
ответ дан 5 December 2019 в 19:03
поделиться
Switch between applications / quick launch:
Browser SEARCH + b
Contacts SEARCH + c
E-Mail SEARCH + e
Google Mail SEARCH + g
Calendar SEARCH + l
Maps SEARCH + m
Music SEARCH + p
Messaging SEARCH + s
YouTube SEARCH + y

Navigation within lists
Page down SPACEBAR
Page up SHIFT + SPACEBAR
Jump to end of list ALT + TRACKBALL roll DOWN
Jump to top of list ALT + TRACKBALL roll UP

Typing and text navigation tips:
Insert special character ALT + SPACEBAR opens special character selector
Delete character to left DEL
Delete character to right SHIFT + DEL
Delete entire line ALT + DEL
Persistent CAPS Press SHIFT twice; press SHIFT again to escape
Jump cursor to beginning/end of line ALT + roll TRACKBALL left/right
Create tab character ALT + q
Highlight (select) text SHIFT + roll TRACKBALL
Cut text MENU + x, or Highlight text, press & hold TRACKBALL, select Cut
Copy text to clipboard MENU + c, or Highlight text, press & hold
TRACKBALL, select Copy
Paste text copied to clipboard MENU + v, or Highlight text, press & hold
TRACKBALL, select Paste
Undo change MENU + z
Select all text in field MENU + a, or Highlight text, press & hold
TRACKBALL, select Select all

Browser shortcuts
Open Go to window MENU + s
Open Bookmarks MENU + b
Open Windows MENU + w
View history MENU + h
Refresh or stop page MENU + r
Go back a page MENU + j
Go forward a page MENU + k
Find on page MENU + f
Go to home page MENU + ENTER
Zoom in MENU + i
Zoom out MENU + o
Go to Settings MENU + p
Page down SPACEBAR
Page up SHIFT + SPACEBAR

Map shortcuts
Directions MENU + d
Select map mode MENU + m
History MENU + h
My Location MENU + 0 (zero)
Go to Settings MENU + p
Zoom in MENU + i
Zoom out MENU + o

7
ответ дан 5 December 2019 в 19:03
поделиться
Другие вопросы по тегам:

Похожие вопросы: