GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - RepoForks/Android-Helper: A small, simple library providing developers with some utility methods to use in their code.

BranchesTags
Open more actions menu

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.idea
.idea
 
 
gradle/wrapper
gradle/wrapper
 
 
jars
jars
 
 
javadoc
javadoc
 
 
library
library
 
 
sample
sample
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

Android-Helper

A small, simple library providing developers with some utility methods to use in their code.

Compile in your Project

Add this in your root build.gradle file (not your module build.gradle file):

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

Next, add the dependency in your module:

dependencies {
	   compile 'com.github.Andrew-Quebe:Android-Helper:v0.3.1'
}

Features

Android-Helper currently has a small amount of functions, but that will change as future releases become available. Below are some things you can do with it already.

Toasts

You can easily show short or long toasts with this code:

// Short Toast
AndroidHelper.shortToast(getBaseContext(), "Your message");

// Long Toast
AndroidHelper.longToast(getBaseContext(), "Your message");

Convert Drawables to Bitmaps

This allows you to convert your drawable resources into Bitmap resources.

AndroidHelper.drawableToBitmap(ResourcesCompat.getDrawable(getResources(), drawable, theme));

Dark Versions of Colors

This lets you convert your app colors to different shades using float values.

// float value: 0.1 = 10%, 0.9 = 90%
AndroidHelper.darker(Color.parseColor("#FFFFFF"), 0.8f);

Java Documentation

If you would like to view the Javadocs for this library, click here.

Contributions

If you'd like to contribute to this library, feel free to make a pull request with your changes.

Developed By

Andrew Quebe
[email protected]

License

Copyright 2016 Andrew Quebe

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.

About

A small, simple library providing developers with some utility methods to use in their code.

andrew-quebe.github.io/Android-Helper/

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.