使用viewpager+fragment实现首页的滑动;然后需要在第三个fragment被选中时自动弹出对话框。...
分类:
移动开发 时间:
2014-09-29 23:58:31
阅读次数:
301
首先,为了避免滑动冲突,我们要继承ViewFlow,重写onInterceptTouchEvent 1 public class MyViewFlow extends ViewFlow { 2 private ViewPager mPager; 3 4 public MyViewF...
现在基本上大多数的Android应用程序的首页都有轮播图,就是像下图这样的(此图为转载的一篇博文中的图,拿来直接用了):
像这样的组件我相信大多数的应用程序都会使用到,本文就是自定义一个这样的组件,可以动态设置图片的张数。下面就开始本次的自定义之旅吧,首先看一下自定义控件的的布局文件:
<RelativeLayout xmlns:android="http://schemas.and...
分类:
移动开发 时间:
2014-09-28 12:58:52
阅读次数:
343
在Win7环境下,编写MFC应用程序,Project菜单下Add To Project子菜单中的 Components and Controls…选项,在弹出的对话框中Gallery文件为空,也就无法找到Registered ActiveX Controls项。经过试验,打开VC时使用管理员权限.....
Cloud Carousel (演示 | 下载)ShineTime (演示 | 下载)Nivo Slider (演示 | 下载)Interactive Photo Desk (演示 | 下载)Beautiful Photo Stack Gallery with jQuery and CSS3 (演示...
分类:
Web程序 时间:
2014-09-27 00:52:38
阅读次数:
404
1 import android.app.Activity; 2 import android.content.Intent; 3 import android.content.SharedPreferences; 4 import android.content.SharedPreference....
分类:
移动开发 时间:
2014-09-26 21:26:48
阅读次数:
426
以加载图库的照片为例解释都在代码中,看吧代码块package auggie.gallery;import android.content.ContentResolver;import android.content.Context;import android.database.Cursor;imp...
分类:
其他好文 时间:
2014-09-26 18:52:21
阅读次数:
160
问题:
在图库中缩略图与实际图片不对应,比如缩略图显示的明明是A图片,点进去发现显示的是B图片。
解决办法:
Go to Setting-->Applications--->Gallery-->Clear Cache
After clearing the cache, open the gallery app, it will automatically regen...
分类:
移动开发 时间:
2014-09-26 12:01:08
阅读次数:
224