Android article,What is the function of Bottom Sheets in Android and what are they used for?
نوشته شده توسط : dotnek

so that they can be opened from the bottom of the page to the top of the page and show the required information to users, and Bottom Sheets , including components Material Design are on Android. They have two different types, one Persistent Bottom Sheet and Modal Bottom Sheet (modal bottom sheets android), both of which are used to display information to users, and the way to access them is by dragging them from the bottom of the page and then the item information We see the needs and details. It should be noted that these can be used in applications such as Google Maps and Google Drive. Google Drive and Google Maps are examples of their use in applications.

what is a bottom sheet?

If we pin a place on the map in Google Maps, a Bottom Sheet will be created that has more information and details about it and they will provide details to the users. If we press the MORE INFO button or drag the page upwards, the whole screen will be displayed and the information and details related to it will be displayed on a larger screen.This component in the Google Drive application can also be used to create folders or upload files. In this case, we drag the page from the bottom to the top and the whole screen of the Bottom Sheet is displayed and all the desired operations can be performed there.

bottom sheets android example

1- We create a new project in Android Studio and choose its name as desired. The name chosen for this project in this tutorial is SimpleBottomSheet.2- Then you need to create an Empty Activity.3- It is worth mentioning that in order to be able to create and launch this project properly, we must add the Support Design library to the project. Like the following:

dependencies {
implementation fileTree (dir: 'libs', include: ['* .jar'])
implementation 'com. android. support: appcompat-v7:27.1.1'
implementation 'com. android. support:design:27.1.1'
}
In this project that we are building, we are just launching a simple Bottom Sheet, which is why we only have to work with the activity layout and not with Java.4- Select and create a Root Layout of the CoordinatorLayout type to display the Bottom Sheet.5- The codes that should be in the activity_main.xml section are as follows: 

Read more on:https://www.dotnek.com/Blog/Apps/what-is-the-function-of-bottom-sheets-in-andr

link:https://dotnek.mystrikingly.com/

Related link:click here





:: برچسب‌ها: dotnek , seo , site ,
:: بازدید از این مطلب : 89
|
امتیاز مطلب : 0
|
تعداد امتیازدهندگان : 0
|
مجموع امتیاز : 0
تاریخ انتشار : دو شنبه 18 مرداد 1400 | نظرات ()
مطالب مرتبط با این پست
لیست
می توانید دیدگاه خود را بنویسید


نام
آدرس ایمیل
وب سایت/بلاگ
:) :( ;) :D
;)) :X :? :P
:* =(( :O };-
:B /:) =DD :S
-) :-(( :-| :-))
نظر خصوصی

 کد را وارد نمایید:

آپلود عکس دلخواه: