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 - androiddream/IdentityImageView: 一个能带进度条的图片框架,同时有身份标识动能,简单易用

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

24 Commits
24 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
app
app
 
 
gradle/wrapper
gradle/wrapper
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

IdentityImageView

一个能带进度条的图片框架,同时有身份标识动能,简单易用

效果图:

效果图

博客介绍

CSDN:http://blog.csdn.net/iamdingruihaha/article/details/69895266

Download

(简单的两个类:IdentityImageView,CircleImageView,最好下载下来,方便更改)

    allprojects {
	    repositories {
		    ...
		    maven { url 'https://jitpack.io' }
	    }
	}

    dependencies {
    
               compile 'com.github.385841539:IdentityImageView:-SNAPSHOT'
     }

Usage

基本使用:

<com.example.identityimageview.widegt.IdentityImageView
        android:id="@+id/iiv"
        android:layout_width="300dp"
        android:layout_height="300dp"
        app:iciv_progress_collor="@color/colorPrimary"
        android:layout_centerVertical="true"
        android:layout_centerHorizontal="true"></com.example.identityimageview.widegt.IdentityImageView>

自定义(均设有默认值,可不使用):

属性            参数           说明
iciv_bigimage reference 大图片
iciv_smallimage reference         小图片(标识)
iciv_angle float angle    标识的角度,默认为45度
iciv_radiusscale float x 大小图片比例,默认为0.2
 iciv_isprogress boolean flag 是否有进度条,默认为false,如果要用,必须设置为true
iciv_progress_collor Color color Or reference 进度条颜色
iciv_border_color Color color Or reference 边框颜色
  iciv_border_width integer y 边框和进度条宽度
iciv_hint_smallimageview  boolean 是否隐藏小图片

 

动态 设置属性值:

   
                identityImageView = ((IdentityImageView) findViewById(R.id.iiv));
               
               //填充大图片
                identityImageView.getBigCircleImageView().setImageResource(R.mipmap.guojia);
		
		//改变图片比例大小,
                identityImageView.setRadiusScale(0.1f);
		
		
	          //增加边框
                identityImageView.setBorderWidth(100);
                identityImageView.setBorderColor(R.color.colorTest);
		
		   //增加进度条,以及改变的角度
                identityImageView.setIsprogress(true);
                identityImageView.setProgressColor(R.color.colorAccent);
		identityImageView.setProgress(120);
		
                

Tips:

原理很简单,献丑了,方便大家调用,为了节省大家时间  

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.