GithubHelp home page GithubHelp logo

wiiafl's Introduction

WIIAFL

Wrap it in a FrameLayout

-- Expert Andriod Dev

Pretty much any layout problem in Android can be solved by wrapping your view in a FrameLayout, this lib makes that a piece of cake!

Usage

For the simple case, you just call the awesomely-named wiiafl() extension function:

val myFixedLayout = view.wiiafl()

You can find a specific view to wrap with childId.

view.wiifl(childId = R.id.broken_button)

Sometimes, 1 FrameLayout just isn't enough to fix your bugs, you can wrap it in as many as you like by passing in a count.

val extraFrameLayouts = view.wiiafl(count = 3)

Want to just wrap everything in a FrameLayout? Just use the recursive flag. This is an easy way to get rid of all of your bugs!

view.wiiafl(recursive = true)

wiiafl's People

Contributors

evant avatar

Stargazers

Balqis Mughny Sasando avatar Karl Åström avatar Andrei Shikov avatar Mark Han avatar Eder Bastos avatar Niek Haarman avatar Guillermo Orellana avatar Andrey Kulikov avatar Huu Hoang avatar Jamolkhon Khakimov avatar

Watchers

 avatar James Cloos avatar  avatar

wiiafl's Issues

DSL Support

kotlin dsl's are alre the rage, need to add one for a more fluent api.

Add Proguard rules

Need to know which rules to use for Proguard. Currently I'm using the following, but it doesn't cover all cases.

`-keep class android.widget.FrameLayout { *; }`
`-keep class android.widget.FrameLayout.FrameLayout { *; }`
`-keep class android.widget.FrameLayout.FrameLayout.FrameLayout { *; }`
`-keep class android.widget.FrameLayout.FrameLayout.FrameLayout.FrameLayout { *; }`
`-keep class android.widget.FrameLayout.FrameLayout.FrameLayout.FrameLayout.FrameLayout  { *; }`
`-keep class android.widget.FrameLayout.FrameLayout.FrameLayout.FrameLayout.FrameLayout .FrameLayout  { *; }`
`-keep class android.widget.FrameLayout.FrameLayout.FrameLayout.FrameLayout.FrameLayout .FrameLayout.FrameLayout  { *; }`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.