Short Notes

How to call a method after a delay with handler

How to use handler in andorid

Hi, sometimes we need to execute my method or we can say my function after a time delay. In that situation what can I do? So the answer is - Use Handler() for that. A Handler is a utili...

How to justify content in div

Just set your inner div in center

You can justify the content of your page or content within the layout. The justify-content property aligns the flexible container's items when the items do not use all available space on the main-axis...

Spinner with search option in android

How to create searchable spinner in android

Hello, Let's see the above example for your awesome dropdown list to search. Searchable Spinner is a dialog spinner with the search feature which allows to search the items loaded in th...

How to open link externally from android webview

Android open url external browser and internal WebView

You can open link of the WebView externally from android webview without leaving the app. For this action you need to set a WebViewClient class in your WebView. No n...


How do I hide an element when printing a web page

Hide specific elements while printing web page

Sometime we need to show all content on the web page but hide some content for the print. So, you can use this trick for that. Hide specific elements while printing web page: To hide an element, you...

How to get hashtag value on hashchange

Javascript trigger hashchange

You can get the value of #hashtag from the URL if user click on any link in your page. There are two ways to find the id,  First by using Javascript and the second&n...

Add and Remove event listener javascript

Enable and Disable scroll with event listener javascript

Add and Remove event listener with javascript is very simple. First, you need to create your function with your business logics. We have taken an example of stop and start scrolling&nbs...

How to find minimum value of an array

Minimum value of an array using foreach loop

It's very simple to find the minimum value of an array using foreach loop. Create an array with some numeric value. Now create a temporary variable $temp in which stored array’s first index&rsqu...


Top