slideinview
this is a quick and lightweight example of how to present a notification like view from the bottom of a view. using slideinview, the code you'd need would look something like this:
這是一個快速、輕量級的示例工程,用來展示一個通知資訊,從這個view的底部。如果要使用slideinview,你隻需要寫下面幾行代碼就行了:
the different approach taken here is to animate any view, without making assumption about whether it is a warning or failure message like many other libraries do.
不同的地方在于,這個可以用于任何view的動畫,而不僅僅區分于警告資訊、失敗資訊等等固定的view。
included are simple demos, most of which emulate the style you'd see in alalertbanner.
這裡包含了一個示例的demo,你可以看到所有他能做到的事情。
currently all included in the same video.
項目中包含了如下的一些效果。
view with button 有button的view
alalertbannerstylesuccess success樣式的view
alalertbannerstylefailure failure樣式的view
alalertbannerstylewarning warning樣式的view
alalertbannerstylenotify notify樣式的view
stacking views 棧模式的view