Let’s Talk Android (the 251st: Overview of Toolbar in Android)

Hello everyone, the last time we talked about the example of data transfer between Fragments in Android, this time we talked about the Toolbar. Stop talking about gossip, and get back to business. Let's talk to Android together!

Look at the officials, this time we introduced Android in it Toolbar, in fact, every program has its figure, but everyone did not pay attention to it. The Toolbar we introduced is the top line of the program, but it is not the content that displays the status bar information in the phone, but is located below the status bar. It can be used to display the program title, or the current page information. It can also be used as a navigation to jump from one menu to another, but most of them return to the previous menu.

In addition to text content, Toobar can also add icons and listeners used with these icons to respond to related events. Do you feel that the little Toolbar contains too much information? It does not matter, some information can be presented to the user in the form of a menu. Normally, only one menu icon is displayed. When the user needs to use certain functions, clicking the menu icon on the far right will open the menu bar. Below is a screenshot of me on the simulator. The relevant content is marked in the figure. From the figure, you can have an intuitive understanding of the Toolbar and its contents.
Insert picture description here

Let me introduce these first, after all, this chapter is just an overview introduction. In the next chapters, we will introduce how to add titles, icons, menus, etc. to the Toolbar in turn. Let us look forward to it together!

Everyone, let’s stop here for the example of Toolbar in Android. If you want to know what other examples are, let’s listen to the next breakdown!

Guess you like

Origin blog.csdn.net/talk_8/article/details/106974236