Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hantrungkien/autodimension
Auto Dimension Lib for many dislay resolutions
https://github.com/hantrungkien/autodimension
android android-studio dimensions
Last synced: about 7 hours ago
JSON representation
Auto Dimension Lib for many dislay resolutions
- Host: GitHub
- URL: https://github.com/hantrungkien/autodimension
- Owner: hantrungkien
- License: apache-2.0
- Created: 2017-07-01T07:40:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-05T03:01:40.000Z (about 3 years ago)
- Last Synced: 2023-10-29T16:20:26.933Z (about 1 year ago)
- Topics: android, android-studio, dimensions
- Language: Kotlin
- Homepage:
- Size: 2.21 MB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Auto Dimension
Auto Dimension[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Platform](https://img.shields.io/badge/platform-android-green.svg)](http://developer.android.com/index.html)
[![](https://jitpack.io/v/hantrungkien/AutoDimension.svg)](https://jitpack.io/#hantrungkien/AutoDimension)## install:
**via JitPack (to get current code)**
project/build.gradle
```gradle
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
```
module/build.gradle
``gradle
compile 'com.github.hantrungkien:AutoDimension:1.0.9'
```## How to use:
```xml
```
## Extensions
```kotlin
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 athttp://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.