- 浏览: 862886 次
- 性别:
- 来自: 深圳
文章分类
- 全部博客 (509)
- android (55)
- CSS (23)
- eclipse (25)
- Data Structes and Algorithms (53)
- J2SE (87)
- Java_面试学习_j2se (26)
- java_面试学习_非技术 (13)
- java_gui (2)
- java_设计模式 (27)
- JDBC (10)
- java_web (15)
- hibernate (5)
- Oracle (37)
- Struts2 (7)
- Word-----dos (24)
- Jbpm (3)
- java小技巧 (8)
- math (1)
- flex (12)
- WebService (4)
- 生活 (9)
- 小框架或小语言 (27)
- spring (1)
- 面试~~~软实力 (7)
- jstat的用法 (1)
- jmap (1)
- 数据链路层和传输层的流量控制区别 (1)
- shell (0)
- 财商 (1)
- javascript (0)
- js研究 (1)
- 代码收集 (0)
最新评论
-
海尔群:
http://jingyan.baidu.com/articl ...
android加密 -
完美天龙:
------------------------- ...
asm----字节码操纵 -
houniao1990:
大神,请问 string 类型 定义为 oracle的 cha ...
hibernate注解 -
JamesQian:
Line:103
f.doFilter(msg);
是否需 ...
责任链模式_过滤器模式 -
sacoole:
好评
interview--- 如何从N个数中选出最大(小)的n个数?
public class ImageShowActivity extends Activity implements AdapterView.OnItemSelectedListener, ViewSwitcher.ViewFactory { CheckBox plain_cb; CheckBox serif_cb; CheckBox italic_cb; CheckBox bold_cb; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.image_show); setTitle("ImageShowActivity"); //展示图片的父类 mSwitcher = (ImageSwitcher) findViewById(R.id.switcher); mSwitcher.setFactory(this); mSwitcher.setInAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_in)); mSwitcher.setOutAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out)); //下面的图片走廊 Gallery g = (Gallery) findViewById(R.id.gallery); g.setAdapter(new ImageAdapter(this)); g.setOnItemSelectedListener(this); } //图片走廊上得触发事件 public void onItemSelected(AdapterView parent, View v, int position, long id) { mSwitcher.setImageResource(mImageIds[position]);//这里完成切换 } public void onNothingSelected(AdapterView parent) { } //mSwitcher.setFactory(this);必须实现的方法,这里配置switcher的一些初始化参数 public View makeView() {//viewFactory的方法 ImageView i = new ImageView(this);//这就是个父容器,俗称相框 i.setBackgroundColor(0xFF000000); i.setScaleType(ImageView.ScaleType.FIT_CENTER); //设置图片的布局 与父容器匹配模式 i.setLayoutParams(new ImageSwitcher.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); return i; } private ImageSwitcher mSwitcher; //这个适配器类是gallery的东西 public class ImageAdapter extends BaseAdapter { public ImageAdapter(Context c) {//这里传过来的就是gallery mContext = c; } public int getCount() { return mThumbIds.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { //设置图片走廊的一些东西 ImageView i = new ImageView(mContext); i.setImageResource(mThumbIds[position]); i.setAdjustViewBounds(true); i.setLayoutParams(new Gallery.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); i.setBackgroundResource(R.drawable.picture_frame); return i; } private Context mContext; } private Integer[] mThumbIds = { R.drawable.sample_thumb_0, R.drawable.sample_thumb_1, R.drawable.sample_thumb_2, R.drawable.sample_thumb_3, R.drawable.sample_thumb_4, R.drawable.sample_thumb_5, R.drawable.sample_thumb_6, R.drawable.sample_thumb_7}; private Integer[] mImageIds = { R.drawable.sample_0, R.drawable.sample_1, R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6, R.drawable.sample_7}; }
发表评论
-
EditText失去焦点
2011-12-25 13:57 1050<LinearLayout andr ... -
调用照相机和相册
2011-12-21 19:26 1438直接下代码看吧。。 ... -
wifi流程详细分析
2011-12-09 23:56 10874一.启动wifi服务 1.在 S ... -
Android WifiManager 常量
2011-12-09 00:20 5977ACTION_PICK_WIFI_NETWORK Activ ... -
android 探索首选项框架xxxPreference
2011-12-08 20:50 1708http://blog.csdn.net/qinjuning/ ... -
Wifi
2011-12-02 15:02 1680. Confirm if Wifi is On Usin ... -
Tab
2011-12-01 16:02 1236public class MyTab extends ... -
color
2011-12-01 10:48 1084<?xml version="1.0&qu ... -
EditText属性解释
2011-12-01 09:31 2329EditText继承关系:View-->TextView ... -
Android之Inflate()方法用途
2011-11-30 10:40 3172原文: Inflate()作用就是将xml定义的一个布局找出 ... -
android 自定义listview无法响应点击事件OnItemClickListener
2011-11-29 22:34 2757如果你的自定义ListViewItem中有Button或者 ... -
事件event
2011-11-29 22:34 986private class OnItemClickLis ... -
gridView ---图片显示类九宫格
2011-12-01 09:23 3128<GridView xmlns:android= ... -
Image gallery
2011-11-25 14:36 5<ImageSwitcher ... -
Image gallery
2011-11-25 14:36 4public class ImageShowActiv ... -
Image gallery
2011-11-25 14:36 4public class ImageShowActiv ... -
Image gallery
2011-11-25 14:36 4public class ImageShowActiv ... -
Menu
2011-11-25 11:22 1017按menu按钮弹出来的东西 public static ... -
listView
2011-11-25 10:35 2153android.R.layout.simple_list_it ... -
手机模拟器上安装apk
2011-11-17 17:07 12421. 在D:\android\android-sdk-wind ...
相关推荐
Image Gallery Management System
一款来自国外的JS相册代码:Responsive Image Gallery画廊,这个相册类似于现在的QQ空间中的照片预览功能,缩略图支持滚动,可无限制加载相册中的图片,然后通过点击缩略图可查看对应的大图片,这款相册在国外的...
如果有那个想法的话,就不要错过了这款插件Page Flip Image Gallery,它不是幻灯片模式展开,而是通过书的模式把图片展示给访客,效果十分不错。 Page Flip Image Gallery插件的特点: •图片页面翻转功能,增加...
请看上一个描述。改进了ImageGallery和FileDownload功能。 如果需要源代码,请下载上一个。这个只包含修正后的DLL和几个外挂功能模块。
joomla的图库扩展,提供非常丰富的功能
网上版本不兼容orchard 1.9+,表现为没有Image Gallery管理菜单 这个是本人编译的兼容orchard 1.9+的版本 安装方法后台模块(module),选择从文件安装
FreeTextBox1.6的图片上传和选择页面
Moa 是一个轻量级、易于使用的个人画廊,适合做为现有网页的功能延伸和补充。 Moa 1.2.6新增幻灯片显示(可调用任何相册的图片),新增主题预览页,管理和切换主题时可观看预览效果。
The Image Gallery Revisited
很给力的一款图片轮播插件,点击某张图片可以移动到最中间放大,感觉很立体逼真,附上是个演示demo页面,该js插件已被jquery官方收录,你也可以点击这里(官网地址)
Display image gallery in ASP.NET GridView Control。
wa-aj-frontend-completeSamples.zip wa-aj-frontend-completeSamples.zip wa-aj-frontend-completeSamples.zip wa-aj-frontend-completeSamples.zip wa-aj-frontend-completeSamples.zip wa-aj-frontend-...
jQuery Image Gallery
Softbiz Image Gallery v1.0.zip
实现较为完整的图片展示功能(Image Gallery),包括手指划动切换图片,点击图片隐藏导航条,放大图片功能等等。 注意:请在Mac下解压使用
android ImageGallery android ImageGallery
在原ImageGallery.rar的基础上,增加简单的组件自适应性,在窗口大小变化时,自动调整高清大图和缩略图的宽高。将Tkinter的grid布局修改为pack布局。线程管理selenium和geckodriver的启动和使用,引入GC机制销毁...
matlab开发-imagegallery。一个简单的图形用户界面来打开,查看和处理一批图像-现在有一个轴滚动条。
可分专辑的jQuery相册——Animation Image Gallery ,动感十足的JS相册,内置有LightBox的功能,点击相册的小图后,大图渐显渐大,完成酷似Flash一样的效果,希望大家能够喜欢。
PHP实例开发源码—moa image gallery 轻量级易于使用的个人画廊系统.zip PHP实例开发源码—moa image gallery 轻量级易于使用的个人画廊系统.zip PHP实例开发源码—moa image gallery 轻量级易于使用的个人画廊系统....