百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

Frisson

> 开发工具
开源

在图像上提供有趣的剪裁(完美的头部用于个人资料用户界面)

397 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

在图像上提供有趣的剪裁(完美的头部用于个人资料用户界面)

Frisson

Provide Funky cuts on image (The Perfect Header for Profile UI)

[Demo App - IS Library]

Overview

Frisson provide following features:

  • Funky Cuts: Provide Funky cuts on the bottom of the view.
  • Customizable: custom settings of cuts
  • Gradient : Add gradient on the view.

Usage

Step 1. Add the JitPack repository to your build file

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

Step 2. Add the dependency

groovy
dependencies {
  compile 'com.github.IntruderShanky:Frisson:2.1.1'
 }

Implementation

XML Implementation:

xml
  

Implementation with [Glide]

java
Glide.with(context)
                .load(URL)
                .asBitmap()
                .into(new SimpleTarget(SimpleTarget.SIZE_ORIGINAL, SimpleTarget.SIZE_ORIGINAL) {
                    @Override
                    public void onResourceReady(Bitmap bitmap, GlideAnimation anim) {
                        frissonView.setBitmap(bitmap);
                    }
                });

Attributes

Image ScaleType

xml
frisson:scaleType="centerCrop"
frisson:scaleType="fitXY"

Image Drawable Resource

xml
frisson:src="@drawable/your_image"

Background Tint Color

xml
frisson:tintColor="@color/your_color"

Alpha Value (Ranges from 0 to 255) Default Value: 50

xml
frisson:alphaValue="value"

Auto Tint (Pick automatically tint color from image)

xml
frisson:autoTint="true"

Tide Height (Height of waves)

xml
frisson:tideHeight="50dp"

Tide Count (No. of Tides)

xml
frisson:tideCount="3"

Gradient Type

xml
frisson:gradientType="linear"
frisson:gradientType="radial"

Gradient Color

xml
frisson:gradient_endColor="#cc000000"
frisson:gradient_startColor="#00000000"

Gradient Angle (Works with Linear type Gradient)

xml
frisson:gradientAngle="180"

Java Implementation:

java
FrissonView frissonView = (FrissonView) findViewById(R.id.frisson_view);

// to set image from resources        
frissonView.setImageSource(R.drawable.your_image);

// to set bitmap
frissonView.setBitmap(bitmap);

// to set the background color (color should have some alpha val)
frissonView.setColorTint(Color.GREEN);

Licence

…

[Glide]: https://github.com/bumptech/glide [Demo App - IS Library]: https://play.google.com/store/apps/details?id=com.intrusoft.islibrarydemo

Issues· 3 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Javafunky-cutsprofile-uitideswave-view

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具