Yanbin's Blog

Stay hungry. Stay foolish.


  • Home

  • Categories

  • Tags

  • Archives

  • Search

Expandable ListView

Posted on 2017-10-23 | In Xamarin.Forms |

Xamarin.Forms Expandable ListView

This demo explain how to create a expandable ListView with MVVM pattern using Xamarin.Forms. The ideal is from this blog. If you prefer first to know how to create a expandable ListView without MVVM pattern, please read the blog, and then go back to read this one.
The following gif shows the result of this demo.

Read more »

Bootstrap Tutorial

Posted on 2017-10-18 | In Bootstrap |

Starter Template

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
</head>
<body>
<div class="container">
<h1>Hello, world!</h1>
</div>

<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
</body>
</html>
Read more »

Manage touch events in a ViewGroup

Posted on 2017-09-30 | In Android |

Intercept Touch Events in a ViewGroup

The onInterceptTouchEvent() method is called whenever a touch event is detected on the surface of a ViewGroup, including on the surface of its children. If onInterceptTouchEvent() return true, the MotionEvent is intercepted, meaning it will not be passed on to the child, but rather to the onTouchEvent() method of the parent.

Read more »

git rebase example

Posted on 2017-09-30 | In Git |

Assume the following history exists and the current branch is “master”.

1
2
3
      A---B---C topic
/
D---E---F---G master

From this point, the result of either of the following commands:

1
2
git rebase master
git rebase master topic

would be:

Read more »
12
Yanbin Hu

Yanbin Hu

9 posts
7 categories
9 tags
GitHub
© 2018 Yanbin Hu
Powered by Hexo
Theme - NexT.Muse