Skip to content

hyl87/android-view-resizing-utils

 
 

Repository files navigation

Fluent view resizing for Android

Basic usage

ViewParams.of(someView)
        .width(widthPx)
        .heightRes(R.dimen.height)
        .margins(0)
        .marginLeftRes(R.dimen.horizontal_margin)
        .marginRightRes(R.dimen.horizontal_margin)
        .apply();

Animation

ViewParams.of(findViewById(R.id.container))
                .animate()
                .widthBy(value)
                .heightBy(value)
                .repeatInfinitely()
                .repeatModeReverse()
                .setDuration(DURATION_MS)
                .start();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%