GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sulikali/ZCarouselView: 一种轮播图效果

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
.settings
.settings
 
 
bin
bin
 
 
gen/com/zl/carouselview
gen/com/zl/carouselview
 
 
image
image
 
 
libs
libs
 
 
res/values
res/values
 
 
src/com/zl/carouselview
src/com/zl/carouselview
 
 
.classpath
.classpath
 
 
.project
.project
 
 
AndroidManifest.xml
AndroidManifest.xml
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
proguard-project.txt
proguard-project.txt
 
 
project.properties
project.properties
 
 

Repository files navigation

ZCarouselView

这是一个自定义布局的轮播图。

效果图:

Alt Text

使用方法:

1.代码中进行初始化

CarouselView carouselView=(CarouselView) findViewById(R.id.cv); // carouselView.setImageDrawable_one(R.drawable.aa); // carouselView.setImageDrawable_two(R.drawable.bb); // carouselView.setImageDrawable_three(R.drawable.cc); carouselView.setOnImageClickListener(new ImageOnClickListener() {

	@Override
		public void image_left_Click() {
			Toast.makeText(MainActivity.this, "点击了1", Toast.LENGTH_LONG).show();
			
		}

		@Override
		public void image_middle_Click() {
			Toast.makeText(MainActivity.this, "点击了2", Toast.LENGTH_LONG).show();
			
		}

		@Override
		public void image_right_Click() {
			Toast.makeText(MainActivity.this, "点击了3", Toast.LENGTH_LONG).show();
			
		}
	});
	
	
	
	
	
	2.布局中添加
	
	
	<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:cv="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<com.zl.carouselview.CarouselView
    android:id="@+id/cv"
    android:layout_width="fill_parent"
    android:layout_height="140dp"
    cv:image_left="@drawable/aa"
    cv:image_middle="@drawable/bb"
    cv:image_right="@drawable/cc" />

About

一种轮播图效果

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.