Posts

Showing posts from July, 2020

Bottom Sheet Dialog in Andriod application .

Image
Bottom Sheet Dialog box :  Bottom Sheet Dialog is a component that slides up from the bottom of the screen. There are two types of bottom sheets Persistant Bottom Sheet and Modal Bottom Sheet. Persistant Bottom Sheet : This bottom sheet shows in-application content. It will be shown at the base of the screen with a portion of its part noticeable , it shows full substance in the wake of growing it. Modal Bottom Sheet : This bottom sheet functions as a menu or discourse with choices, it implies this replaces menu or exchange. It has a higher height than the determined base sheet. For the most part, they are utilized for incorporating profound connecting picker activities.  How to implement bottom sheet dialog box in Android  app ? Bottom Sheet Dialogs are very commonly used in a lot of applications today. Here we will be imitating a bottom sheet dialog like the  Whatsapp App that enables us to set

Handling orientation changes in a WebView in Android

What is a WebView? The  WebView  framework allows you to specify viewport and style properties that make your web pages appear at the proper size and scale on all screen configurations for all major web browsers. You can even define an interface between your Android app and your web pages that allows JavaScript in the web pages to call upon APIs in your app—providing Android APIs to your web-based application. WebView objects allow you to display web content as part of your activity layout, but lack some of the features of fully-developed browsers. A WebView is useful when you need increased control over the UI and advanced configuration options that will allow you to embed web pages in a specially-designed environment for your app. Now it often happens that when the orientation of an app is changed by the user i.e the screen is rotated, the current progress of the WebView is lost and the Web Page reloads from the start poi