由于随手拍项目想做成类似于美图秀秀那种底部有一排Menu实现不同效果的功能,这里先简单介绍如何通过Menu实现打开相册中的图片、怀旧效果、浮雕效果、光照效果和素描效果.后面可能会讲述如何通过PopupWindow实现自定义的Menu效果.同时增加了别人的冰冻效果和素描效果,希望对大家有所帮助,如果有错误或不足之处,请海涵!...
分类:
移动开发 时间:
2014-11-02 21:04:28
阅读次数:
449
PopupWindow对象创建对话框风格的窗口...
分类:
移动开发 时间:
2014-10-30 15:16:51
阅读次数:
156
private void iniPopupWindow() { ??LayoutInflater inflater = (LayoutInflater) this?.getSystemService(LAYOUT_INFLATER_SERVICE); ??View layout = inflater.inflate(R.layout.task_detail_popupwindow...
将Activity设置成窗口的样式实现Dialog或者Popupwindow效果在开发中是很常用的一种方式,在AndroidMenifest.xml中将需要设置的Activity增加android:theme="@android:style/Theme.Dialog"属性即可。但是窗口化的Activ...
分类:
其他好文 时间:
2014-10-28 17:14:20
阅读次数:
196
MainActivity.java
package com.main;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.v...
自己总结的,习惯于去解析程序的抽象用法,写博客就不喜欢当做记录程序的工具,当做记录想法的笔记吧...
分类:
移动开发 时间:
2014-10-23 17:48:16
阅读次数:
274
============问题描述============ 在底部菜单里的更多按钮中,为什么popupWindow.showAtLocation(v,Gravity.NO_GRAVITY,location[0],location[1]-popupWindow.getHeight());这段代码在手机上...
分类:
移动开发 时间:
2014-10-22 00:52:05
阅读次数:
206
摘要PopupWindow在android.widget包下,弹出窗口的形式展示。官方文档对该控件的描述是:“一个弹出窗口控件,可以用来显示任意视图(View),而且会浮动在当前 活动(activity)的顶部”。PopupWindow可以让我们实现多种自定义控件,例如:menu、alertdial...
分类:
移动开发 时间:
2014-10-21 11:40:25
阅读次数:
316
============问题描述============ 具体就是我写了一个popupwindow类,implementsOnGestureListener,但是一般都得在onTouchEvent里边返回true,可是popupwindow里边没有这个方法,所以当有手势的时候就没走OnGesture...
1.PopupWindow的特点借用Google官方的说法:“A popup window that can be used to display an arbitrary view. The popup window is a floating container that appears on top of the current activity.”也就是说,popupwindow是acti...
分类:
移动开发 时间:
2014-10-16 19:42:53
阅读次数:
370