Android AppMsg (Crouton) Library
==============================
Implementation of in-layout notifications. Based on [Toast](http://developer.android.com/reference/android/widget/Toast.html) notifications and article [The making of Prixing #4: in-layout notifications](http://android.cyrilmottier.com/?p=773) by [Cyril Mottier](http://www.cyrilmottier.com/).
Description
-----------
Toast is far from being perfect and I am not entirely satisfied with it.
Toast can be un-accurate in some cases. Indeed, Toast has one major drawback: it completely breaks contexts.
This issue can be reproduced effortless. Let’s say a user is currently in an app firing a Toast and wants to switch to another application using the dedicated “multitask” button.
The Toast will remain on screen even if the brought-to-front application has nothing do to with the previously shown app as described on the following figure:
![Example Image][1]
As you can easily notice, the problem with Toasts is they are persistent.
Once a Toast has been fired, it is displayed on top of any screen and remains visible for the duration specified at its creation.
In order to bypass the Toast persistence problem and ensure information is displayed in the correct context, we decided to create a new notification system:
Activity-bound notifications. This is what it looks like in the current version of Prixing:
![Example Image][2]
Crouton overcomes the main issue of having a Toast being shown while the menu is open.
It sticks to the current screen sliding with it and leaving the menu completely free of any information that would have not been related to it.
<b>Copyright (C) by Cyril Mottier</b>
Sample
------
A sample application is available on Google Play:
<a href="http://play.google.com/store/apps/details?id=com.devspark.appmsg.sample">
<img alt="Get it on Google Play"
src="http://www.android.com/images/brand/get_it_on_play_logo_small.png" />
</a>
![Example Image][3]
The source code is available in this repository.
Compatibility
-------------
This library is compatible from API 4 (Android 1.6).
Installation
------------
The sample project requires:
* The library project
* [ActionBarSherlock](https://github.com/JakeWharton/ActionBarSherlock)
Usage
-----
Android AppMsg is presented as an [Android library project](http://developer.android.com/guide/developing/projects/projects-eclipse.html).
You can include this project by [referencing it as a library project](http://developer.android.com/guide/developing/projects/projects-eclipse.html#ReferencingLibraryProject) in Eclipse or ant.
To display the item you need the following code:
* Show AppMsg:
``` java
AppMsg.makeText(/*Activity*/, /*CharSequence*/, /*AppMsg.Style*/).show();
```
Contribution
------------
Please fork [dev](https://github.com/johnkil/Android-AppMsg/tree/dev) repository and contribute back using [pull requests](https://github.com/johnkil/Android-AppMsg/pulls).
Contributors are recommended to follow the Android [Code Style Guidelines](http://source.android.com/source/code-style.html).
Any contributions, large or small, major features, bug fixes, additional language translations, unit/integration tests are welcomed and appreciated but will be thoroughly reviewed and discussed.
Developed By
------------
* Evgeny Shishkin - <johnkil78@gmail.com>
License
-------
Copyright 2012 Evgeny Shishkin
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
[1]: http://cyrilmottier.com/media/2012/07/the-making-of-prixing-4-activity-tied-notifications/toast_user_flow_fail.png
[2]: http://cyrilmottier.com/media/2012/07/the-making-of-prixing-4-activity-tied-notifications/in_layout_notification.png
[3]: http://i46.tinypic.com/21kywit.png
没有合适的资源?快使用搜索试试~ 我知道了~
Android-AppMsg.zip_DEMO
共1037个文件
png:523个
class:280个
xml:98个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 192 浏览量
2022-09-19
20:53:22
上传
评论
收藏 3.71MB ZIP 举报
温馨提示
android可用的消息提示的demo,可实现多种提示效果
资源推荐
资源详情
资源评论
收起资源包目录
Android-AppMsg.zip_DEMO (1037个子文件)
resources.ap_ 293KB
MainActivity.apk 603KB
jarlist.cache 120B
jarlist.cache 120B
SearchView.class 36KB
ActionBarView.class 31KB
MenuBuilder.class 30KB
ActionBarSherlockCompat.class 26KB
ActionBarImpl.class 23KB
IcsProgressBar.class 20KB
SuggestionsAdapter.class 18KB
IcsAdapterView.class 18KB
ValueAnimator.class 17KB
ActionMenuPresenter.class 17KB
ActionBarContextView.class 16KB
IcsListPopupWindow.class 16KB
AnimatorSet.class 15KB
MenuItemImpl.class 15KB
ActivityChooserView.class 14KB
ScrollingTabContainerView.class 13KB
ActionMenuView.class 13KB
PropertyValuesHolder.class 13KB
ActivityChooserModel.class 13KB
MenuPopupHelper.class 12KB
ActionBarSherlock.class 12KB
ActionMenuItemView.class 11KB
IcsSpinner.class 11KB
R$styleable.class 10KB
R$styleable.class 10KB
ActionBarWrapper.class 10KB
R$styleable.class 10KB
MenuInflater$MenuState.class 9KB
IcsAbsSpinner.class 9KB
MenuItemWrapper.class 9KB
ActionMenu.class 9KB
AbsActionBarView.class 8KB
SherlockPreferenceActivity.class 8KB
SherlockFragmentActivity.class 8KB
SherlockListActivity.class 8KB
SherlockActivity.class 8KB
R$drawable.class 8KB
SherlockExpandableListActivity.class 8KB
ActionBarSherlockNative.class 7KB
ActionMenuItem.class 7KB
ListMenuItemView.class 7KB
ActivityChooserView$ActivityChooserViewAdapter.class 7KB
MenuWrapper.class 7KB
ShareActionProvider.class 7KB
KeyframeSet.class 7KB
R$style.class 7KB
ActionBarContainer.class 7KB
ObjectAnimator.class 7KB
R$drawable.class 7KB
R$drawable.class 6KB
BaseMenuPresenter.class 6KB
ActionBarImpl$ActionModeImpl.class 6KB
ActionBarView$ExpandedActionViewMenuPresenter.class 6KB
AppMsg.class 6KB
IcsLinearLayout.class 6KB
AnimatorProxy.class 6KB
R$style.class 6KB
R$style.class 6KB
R$attr.class 6KB
MenuInflater.class 6KB
ActivityChooserModel$HistoryLoader.class 5KB
ActionBarWrapper$TabWrapper.class 5KB
StandaloneActionMode.class 5KB
ActionBarView$HomeView.class 5KB
ActivityChooserView$Callbacks.class 5KB
SubMenuBuilder.class 5KB
ResourcesCompat.class 5KB
R$attr.class 5KB
ScrollingTabContainerView$TabView.class 5KB
R$attr.class 5KB
ActivityChooserModel$HistoryPersister.class 4KB
ActionBarImpl$TabImpl.class 4KB
PopupWindowCompat.class 4KB
MsgManager.class 4KB
FloatKeyframeSet.class 4KB
IntKeyframeSet.class 4KB
MenuPopupHelper$MenuAdapter.class 4KB
SearchView$SearchAutoComplete.class 4KB
Watson.class 4KB
IcsSpinner$DropdownPopup.class 4KB
AnimatorSet$Builder.class 3KB
ActivityChooserModel$DefaultSorter.class 3KB
AnimatorSet$AnimatorSetListener.class 3KB
ValueAnimator$AnimationHandler.class 3KB
ActionMenuPresenter$OverflowMenuButton.class 3KB
ActionBar.class 3KB
Animator.class 3KB
PropertyValuesHolder$FloatPropertyValuesHolder.class 3KB
PropertyValuesHolder$IntPropertyValuesHolder.class 3KB
SherlockDialogFragment.class 3KB
TabsLinearLayout.class 3KB
SherlockListFragment.class 3KB
ActionBarSherlockNative$ActionModeCallbackWrapper.class 3KB
SherlockFragment.class 3KB
AnimatorSet$DependencyListener.class 3KB
R$id.class 3KB
共 1037 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
朱moyimi
- 粉丝: 63
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功