带动画效果的简单Tips显示
2015-06-30 00:00
295 查看
摘要: SuperToolTips 是一个根据触发位置显示提示条的控件。
https://github.com/nhaarman/supertooltips
https://github.com/nhaarman/supertooltips
介绍:
SuperToolTips 是一个根据触发位置显示提示条的控件。运行效果:
使用说明:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | <RelativeLayout xmlns:android=" http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/activity_main_redtv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> <com.nhaarman.supertooltips.ToolTipRelativeLayout android:id="@+id/activity_main_tooltipRelativeLayout" android:layout_width="match_parent" android:layout_height="match_parent" /> </RelativeLayout> @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ToolTipRelativeLayout toolTipRelativeLayout = (ToolTipRelativeLayout) findViewById(R.id.activity_main_tooltipRelativeLayout); ToolTip toolTip = new ToolTip() .withText("A beautiful View") .withColor(Color.RED) .withShadow() .withAnimationType(ToolTip.ANIMATIONTYPE_FROMTOP); myToolTipView = toolTipRelativeLayout.showToolTipForView(toolTip, findViewById(R.id.activity_main_redtv)); myToolTipView.setOnToolTipViewClickedListener(MainActivity.this); } |
相关文章推荐
- Android 使用android-support-multidex解决Dex超出方法数的限制问题
- 修改Ueditor工具栏字号显示方式为中文word字号显示方式
- 关于c语言变量的存储及内存的分配
- spring整合xfire
- 看VMware Horizon如何紧跟Citrix的步伐
- Gartner:Citrix vGPU VS. VMware vSGA,3D虚拟化技术对比
- 使用 DNS 的扩展名机制 (EDNS0)
- Linux 下 配置JDK
- 微信供销多用户版本 bingsnsV2.0
- git fork 项目的代码与上游同步
- jquery技巧
- 天下数据详解Linux系统备份策略
- mono fiddler 抓取app的包
- 四种卸载Mac应用的方法
- 李开复:历经死亡后我修的七个学分
- MongoDB 常用命令总结
- 解决virtualbox找不到USB设备
- ceph-objectstore-tool工具使用示例
- javascript实现AOP
- css3使用checked伪类隐藏传统的radio和checkbox