Skip to content

hantrungkien/AutoDimension

Repository files navigation

Auto Dimension

Auto Dimension

License Platform

install:

via JitPack (to get current code)

project/build.gradle

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

module/build.gradle ``gradle compile 'com.github.hantrungkien:AutoDimension:1.0.9'


## How to use:

```xml
<TextView
 android:id="@+id/work_time_sheet"
 android:layout_width="match_parent"
 android:layout_height="match_parent"
 android:layout_margin="@dimen/_1dp"/>

Extensions

Context.dpToPx(dp: Number)
Context.pxToDp(px: Number)

Contribution

If you've found an error, please file an issue.

Patches and new samples are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.

LICENCE

Copyright 2017 Kien Han Trung

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.