Challenge: Customizing the Toast

For this challenge, customize the toast to show at the top instead of the bottom of the screen. To change how the toast is displayed, use the Toast class’s setGravity function. Use Gravity.TOP for the gravity value. Refer to the developer documentation at developer.android.com/​reference/​kotlin/​android/​widget/​Toast#setgravity for more details.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
44.203.235.24