This is my library for Android. It is very simple and will be gradually developed day by day.
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.thanhnamzzz:CommonLib:last-version'
}
Class | Description |
---|---|
SimpleActivity |
A simple class is integrated with viewbinding for activity |
SimpleFragment |
A simple class is integrated with viewbinding for fragment |
View | Description |
---|---|
FingerGestures |
Touch and swipe for a view |
GradientTextView |
Gradient text view |
StrokeTextView |
Stroke text view |
Many extensions such as:
Binding
: for classSimpleActivity
vàSimpleFragment
Bitmap
:saveBitmapToJpgCache
saveBitmapToPng
bitmapResize
cropWithRect
File
: Function for File(), storage,TextTime
: format text timeVersionSDK
: function check version SDKView
:VISIBLE
,GONE
,INVISIBLE
, view's point location (in screen)Window
:updateStatusBarColors
updateNavigationBarColors
ClipboardFunction
:copyToClipboard
andgetTextFromClipboard
FileUtils
: check hidden directory, mineType of file, copy file, date file, size file, Video Resolution, Image ResolutionGlobalFunction
:hideSystemNavigationBar
hideSystemStatusBar
hideSystemUiBar
(both navigation and status bar)showSystemUiBar
hideKeyBoard
andshowKeyBoard
shareApp
: share link appshareFile
shareText
openMarket
Permission Setting
: Open the app's permission settings.Sort
: Sort the data list in ascending order (isAscending = true) or descending order (isAscending = false) based on the reference (propertySelector) of the data list.
ImageGlide
: methods for loading images with Glide.MyToast
: a custom layout for Toast.ThemeApp
: functions for setting the app theme (night mode, light mode)