All Projects → petersamokhin → double-avatar-view

petersamokhin / double-avatar-view

Licence: MIT license
Instagram-like double avatar view with cropping

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to double-avatar-view

WechatPopupWindow
高仿微信聊天界面长按弹框样式
Stars: ✭ 71 (+129.03%)
Mutual labels:  custom-view, customviews, customview, custom-views
AACustomFont
[UNMAINTAINED] AACustomFont is a lightweight custom font binder in XML directly in TextView, Button, EditText, RadioButton, CheckBox tags. The library is aimed to avoid custom views for custom fonts in XML and to minimize the JAVA code for setting the TypeFaces for each view.
Stars: ✭ 76 (+145.16%)
Mutual labels:  custom-view, customview
Testleavesloading
Android 自定义 View 之 LeavesLoading
Stars: ✭ 55 (+77.42%)
Mutual labels:  custom-view, customview
Codeview Android
Display code with syntax highlighting ✨ in native way.
Stars: ✭ 748 (+2312.9%)
Mutual labels:  custom-view, customview
Colorseekbar
A colorful SeekBar for picking color
Stars: ✭ 249 (+703.23%)
Mutual labels:  custom-view, customview
FooterNavigationView
FooterNavigationView helps to show a footer inside the NavigationView
Stars: ✭ 30 (-3.23%)
Mutual labels:  customview
SoundLine
An Android custom view which offers an audio timeline controller as the SoundCloud Sound Wave
Stars: ✭ 53 (+70.97%)
Mutual labels:  custom-view
YuanaItemSettingView
Customizable Item Setting View Android
Stars: ✭ 15 (-51.61%)
Mutual labels:  custom-view
epg magic carousel
Awesome RecyclerView with custom LayoutManager
Stars: ✭ 98 (+216.13%)
Mutual labels:  customview
un-material-tab
(deprecated) Custom tab layout which can be used as a material TabLayout alternative and contains basic functionality which Google's TabLayout has.
Stars: ✭ 83 (+167.74%)
Mutual labels:  custom-view
MultiShapeView
支持圆角矩形,圆形自定义View
Stars: ✭ 35 (+12.9%)
Mutual labels:  customview
BeautyClock
A simple project draw clock view by using Canvas and Kotlin
Stars: ✭ 14 (-54.84%)
Mutual labels:  customview
SocialOrbitLayout
Kotlin based custom view to show floating objects that can be used for social apps.
Stars: ✭ 28 (-9.68%)
Mutual labels:  custom-view
Image-Support
Add badge with counter to ImageView Android.
Stars: ✭ 128 (+312.9%)
Mutual labels:  custom-view
CustomWaterView
⭐ 仿支付宝蚂蚁森林效果
Stars: ✭ 118 (+280.65%)
Mutual labels:  customview
SquaresLoadingView
A SquaresLoadingView based on android.View, nicely rotation、easy to use.
Stars: ✭ 26 (-16.13%)
Mutual labels:  custom-view
MenuPopupView
一款仿iOS长按菜单弹窗的自定义控件
Stars: ✭ 26 (-16.13%)
Mutual labels:  custom-view
BetterBottomBar
Fork of the BottomNavigationView from the design lib to allow for view state, accessibility and colorful animations
Stars: ✭ 33 (+6.45%)
Mutual labels:  customview
flasto
A FLoating ASsistive TOuch library for android!
Stars: ✭ 15 (-51.61%)
Mutual labels:  custom-view
NoiseView
Android library written in kotlin that add a noise effect to image.
Stars: ✭ 47 (+51.61%)
Mutual labels:  customview

Double Avatar View

Instagram-like (from broadcasts) double avatar view with cropping

Demo APK: https://petersamokhin.com/files/projects/doubleavatar/dav.apk

Install

  1. Add jitpack repo to your project-level build.gradle:
allprojects {
    repositories {
        // other repos
	    maven { url 'https://jitpack.io' }
    }
}
  1. Add library to your dependencies:
dependencies {
    implementation 'com.github.petersamokhin:double-avatar-view:$ACTUAL_VERSION'
}

See last version: https://github.com/petersamokhin/double-avatar-view/releases

Usage

Configure view in your xml layout file:

<com.petersamokhin.android.doubleavatarview.DoubleAvatarView
        android:id="@+id/dav"
        android:layout_width="200dp"
        android:layout_height="200dp"
        app:cut_size_coeff="1.115"
        app:second_size_coeff="2"
        app:horizontal_offset="0.15"
        app:vertical_offset="0.15" />

Or configure view from Java/Kotlin:

val config = DoubleAvatarView.Config(
            "https://back.avatar/",
            "https://front.avatar/",
            0.15f,                     // horizontal offset in percents of back image's width
            0.15f,                     // vertical offset in percents of back image's height
            2f,                        // front image radius multiplier
            1.115f                     // front image's cropped background radius multiplier
)
dav.updateConfig(config)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].