Utility functions to perform dynamic operations on Android.
Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.jignesh8992:Utilities:5.3'
}
AssetsUtil
- listSize : Get thetotal size of files of given assets directory
- listOfFiles : Get the total files of given assets directory
- getAssetBitmap : Get the bitmap from given assets path
- getDrawable : Get the drawable from given assets path
- getAssetsFilePath : Get the assets path from simple path
- getJsonDataFromAsset : Get the string from assets path
BatteryUtil
- getBatteryPercentage : Get the battery percentage level
- ColorCircleDrawable
- DrawingView
- EraserView
- LoadingDots
- LockableViewPager
- MaterialSpinner
- SquareCardLayout
- SquareConstraintLayout
- SquareLayout
- TouchImageView
Feel free to contribute code to Utilities. You can do it by forking the repository via Github and sending pull request with changes.
When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible. Also be sure that all tests are passing.
Jignesh N Patel - jignesh8992@gmail.com
Copyright [2020] Jignesh N Patel
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.