Android Development Tips

1 Different Activities can use same Adapter

2 Toolbar in the bottom of screen

3 FragmentPagerAdapter getItem() called twice in first time

4 four-direction swiping:

5 get visible item in RecyclerView

6 detect swiping event in ViewPager

7 share image with url

8 BottomSheet for popped menu

9 ListView with CursorAdapter click listener

10 WebView

myWebView.setWebViewClient(new WebViewClient() {
       public boolean shouldOverrideUrlLoading(WebView view, String url) {
           return false;


Even better just call myWebView.setWebViewClient(new WebViewClient()); The default implementation of shouldOverrideUrlLoading returns false.

11 AlertDialog


To be continue …


About liyao13

Yao Li is a web and iOS developer, blogger and he has a passion for technology and business. In his blogs, he shares code snippets, tutorials, resources and notes to help people develop their skills. Donate $5 to him for a coffee with PayPal at About Me page and read more professional and interesting technical blog articles. Follow him @Yaoli0615 at Twitter to get latest tech updates.
This entry was posted in CS Research&Application, Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s