android 画廊控件Gallery的使用
来源:互联网 发布:jdk 7u55 linux x64 编辑:程序博客网 时间:2024/05/17 22:18
效果图
准备八张图
布局文件
<<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<</LinearLayout>>
在res/values下新建attrs.xml,用来设置画廊控件的背景
<<?xml version="1.0" encoding="utf-8"?>>
<<resources>
<</resources>>
代码
package com.example.gallery;
import android.app.Activity;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.BaseAdapter;
import android.widget.Gallery;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
public class MainActivity extends Activity {
}
- android 画廊控件Gallery的使用
- 画廊控件Gallery的使用
- 【Android 开发】:UI控件之 Gallery 画廊控件的使用
- Android控件之Gallery(画廊)
- Android基础--Gallery画廊控件
- android gallery 画廊控件示例
- 画廊效果Gallery控件的使用(横向列表)
- Android UI控件详解-Gallery(画廊)
- Android 控件之十二:Gallery画廊
- Android Gallery画廊 图片展示控件
- android中画廊视图Gallery和ImageSwitcher组件的使用
- Android开发学习之Gallery画廊的使用
- Android中Gallery(画廊)的创建与使用
- gallery画廊控件
- 安卓控件使用系列24:Gallery画廊控件的使用方法
- 89 Android Gallery 简单的画廊效果
- android 画廊 gallery
- Android--Gallery,画廊
- 2498 AOE网上的关键路径
- android 蓝牙bluetooth的简单使用
- 使用 ipmitool 实现 Linux 系统下对服务器的 ipmi 管理
- android wifi的打开关闭以及…
- Android Sdk Manager 无法下载资源
- android 画廊控件Gallery的使用
- tabHost选项卡的简单使用
- Activity com.example.weibo.…
- nginx超详细讲解之location,rewrite,反向代理及负载均衡
- 开源项目SlidingMenu滑动菜单栏的…
- android 中TextView文本控件…
- 进程的虚拟地址空间
- android TextView控件的字符…
- android的mediaPlayer+surfaceView…