Various useful utilities for Android apps development

Overview

Android Commons

Maven Central Size

Various useful utilities for Android apps development.

API documentation provided as Javadoc.

Usage

Add dependency to your build.gradle file:

compile 'com.alexvasilkov:android-commons:2.0.2'

Main features

Views

Simple utility class to find views within layout with implicit types casting (e.g. TextView tv = Views.find(layout, R.id.text_view);) Includes other methods to simplify work with views and layouts.

Navigate

Helper methods to navigate between screens and to open external app to perform related actions, for example: share text; compose email or sms; open browser or Google Play, pick phone number and many more.

SpannableBuilder

SpannableStringBuilder implementation that helps applying various text styles to a single TextView.

Fonts

Utility to set custom fonts for all views extending TextView, uses android:tag to store font info.

InstanceStateManager

Helper methods to save and restore instance state of activities and fragments.

ItemsAdapter & LayoutItemsAdapter

BaseAdapter implementations to be used with java.util.List. LayoutItemsAdapter class provides methods to populate any ViewGroup with views from adapter with optional views recycling mechanism.

KeyboardHelper

Helper methods to show / hide keyboard and listen for keyboard state.

Convertable & ConvertUtils

Helper utils to convert one set of objects into another.

ThreadSafeDateFormatter

Thread safe wrapper for SimpleDateFormatter.

ISO8601DateFormatter

ISO 8601 date parser and formatter.

FillWidthImageView

ImageView that will be scaled to fit entire available width preserving aspect ratio (by adjusting view's height). It is also possible to set aspect ratio of the image before it is loaded into the view.

BoundedFrameLayout & BoundedLinearLayout & BoundedRelativeLayout

Base view groups implementations that allows setting maxWidth and maxHeight.

License

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.
You might also like...
Access and process various types of personal data in Android with a set of easy, uniform, and privacy-friendly APIs.
Access and process various types of personal data in Android with a set of easy, uniform, and privacy-friendly APIs.

PrivacyStreams PrivacyStreams is an Android library for easy and privacy-friendly personal data access and processing. It offers a functional programm

Secure Preference Manager for android. It uses various Encryption to protect your application's Shared Preferences.

Secure-Pref-Manager ##Secure Preference Manager is a simple Library to help you protect your Shared Preferences. Secure Preference Manager for android

A collection of Android build scripts for various third-party libraries and the tooling to build them

ndkports A collection of Android build scripts for various third-party libraries and the tooling to build them. If you're an Android app developer loo

🐫🐍🍢🅿 Multiplatform Kotlin library to convert strings between various case formats including Camel Case, Snake Case, Pascal Case and Kebab Case

KaseChange Multiplatform Kotlin library to convert strings between various case formats Supported Case Formats SCREAMING_SNAKE_CASE snake_case PascalC

Some useful tools
Some useful tools

JustWeTools - Some useful tools JustWe 现在有哪些模块? View自定义控件 PaintView画图工具(包含重构压感新版) CodeView代码编辑 ExplorerView文件管理器 ReadView小说阅读器 MarkDownView支持MarkDown语

Useful helpers that make it easier to implement maven-plugin mojos with kotlin

A library that makes writing powerful maven plugins even easier by providing kotlin extensions and convenience functions for common use cases.

An Android App which is capable of accessing system apps
An Android App which is capable of accessing system apps

Android_Project_Kotlin In this Project I am building an Android App which is capable of accessing system apps. This project is written in Kotlin and I

Predictable state container for JavaScript apps
Predictable state container for JavaScript apps

Redux is a predictable state container for JavaScript apps. (Not to be confused with a WordPress framework – Redux Framework) It helps you write appli

A library to quickly and easily enable multiple monitoring & support platforms for your mobile apps

You have a small team. Setting up crash reporting tools, event tracking tools, and log management services is not what you want to spend your hours do

Comments
  • Views.find() not working properly

    Views.find() not working properly

    Hi Alex,

    your findViewById implemantation is different so when I try to initialize an object I'm always getting Null Pointer Exception.I always changed from View.fınd(...) to findViewById(....)

    I also added your compile 'com.alexvasilkov:android-commons:1.2.3' library as an dependency into build.gradle

    opened by zcelaloglu 4
  • Copyright notice for AndroidCommons library

    Copyright notice for AndroidCommons library

    Hey Alex, we are using your AndroidCommons library within our Android App and we have to list your library within our FOSS components. Therefore we need a Copyright notice which is, unfortunately, not available in this repo. Can you please provide this oneliner? Greetings Flo

    opened by flobetz 2
Owner
Alex Vasilkov
Alex Vasilkov
CreditCardHelper 🖊️ A Jetpack-Compose library providing useful credit card utilities such as card type recognition and TextField ViewTransformations

CreditCardHelper ??️ A Jetpack-Compose library providing useful credit card utilities such as card type recognition and TextField ViewTransformations

Stelios Papamichail 18 Dec 19, 2022
Collection of source codes, utilities, templates and snippets for Android development.

Android Templates and Utilities [DEPRECATED] Android Templates and Utilities are deprecated. I started with this project in 2012. Android ecosystem ha

Petr Nohejl 1.1k Nov 30, 2022
Android Utilities Library build in kotlin Provide user 100 of pre defined method to create advanced native android app.

Android Utilities Library build in kotlin Provide user 100 of pre defined method to create advanced native android app.

Shahid Iqbal 4 Nov 29, 2022
General purpose utilities and hash functions for Android and Java (aka java-common)

Essentials Essentials are a collection of general-purpose classes we found useful in many occasions. Beats standard Java API performance, e.g. LongHas

Markus Junginger 1.4k Dec 29, 2022
Utilities I wish Android had but doesn't

wishlist Library of helpers and utilities that I wish were included in the Android SDK but aren't. If you think something in this library is already h

Kevin Sawicki 386 Nov 21, 2022
Android library that regroup bunch of dateTime utilities

DateTimeUtils This library is a package of functions that let you manipulate objects and or java date string. it combine the most common functions use

Thunder413 98 Nov 16, 2022
General purpose utilities and hash functions for Android and Java (aka java-common)

Essentials Essentials are a collection of general-purpose classes we found useful in many occasions. Beats standard Java API performance, e.g. LongHas

Markus Junginger 1.4k Dec 29, 2022
A Telegram bot utilities that help to reduce the code amount

Flume Party A Telegram bot utilities that help to reduce code amount. Real project examples Pull Party Bot: 19% of code has been reduced. Resistance B

pool party 1 Jun 8, 2022
FractalUtils - A collection of utility functions and classes, with an emphasis on game related utilities

A collection of utility functions and classes written in Kotlin. There is some emphasis on utilities useful for games (Geometry, Random, Time, Updating, etc).

null 2 Nov 11, 2022
Little utilities for more pleasant immutable data in Kotlin

What can KopyKat do? Mutable copy Nested mutation Nested collections Mapping copyMap copy for sealed hierarchies copy from supertypes copy for type al

KopyKat 193 Dec 19, 2022