Giter VIP home page Giter VIP logo

pixeleperfectdesign's Introduction

Pixel Perfect Design

To make percentile design in kotlin. This lib Will Help you.

Pixel Perfect Design is a fase and efficient open source constant management That use for create Percentage wise design. so any size of device it's look Same.

Download

You can download a jar from GitHub's [releases page][1].

Use with Gradle File โ€”โ€” Here two version method depends on the Gradle version

If you are using version 7 or above version 7

In the settings.gradle file Put this Two line jcenter() maven { url 'https://jitpack.io' }

If your Gradle version is below 7

In the build.gradle(Project level) file jcenter() maven { url 'https://jitpack.io' }

Also need to Inject this dependency in your build.gradle(Module level) implementation 'com.github.kishan-ck:pixeleperfectdesign:0.1.1'

How do I use Pixel Perfect Design?

Simple use cases will look something like this:

XML

<androidx.constraintlayout.widget.ConstraintLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:id="@+id/hello_layout"/>

.Kotlin

import com.percentage.percentagedesign.utils

Anywhere in your function

	utils.setMargin(activity,hello_textView, start = 5.33f , end = 5.33f , top = 3.07f, bottom = 3.07f)

In this Example I use Left Margin: 5.33% Right Margin: 5.33% Top Margin: 3.07% Bottom Margin: 3.07%

You Can use this with Constant Layout.

Status

Version 1.1 is stable now we still working more on this to make easy to use.

Compatibility

  • Minimum Android SDK: Glide v4 requires a minimum API level of 14.
  • Compile Android SDK: Glide v4 requires you to compile against API 26 or later.

Note: Make sure your Android SDK has the Android Support Repository installed, and that your $ANDROID_HOME environment variable is pointing at the SDK or add a local.properties file in the root project with a sdk.dir=... line.

Contributing

Before submitting pull requests, contributors must sign Google's [individual contributor license agreement][7].

Thanks

  • Everyone who has contributed code and reported issues!

pixeleperfectdesign's People

Contributors

kishan-ck avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.