All Projects → petrnohejl → Android Templates And Utilities

petrnohejl / Android Templates And Utilities

Collection of source codes, utilities, templates and snippets for Android development.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android Templates And Utilities

Pollinate
Template your base files and generate new projects from Git(Hub).
Stars: ✭ 213 (-80.62%)
Mutual labels:  templates, skeleton
Sublimetmpl
Create File From Templates for SublimeText 2 / SublimeText 3
Stars: ✭ 222 (-79.8%)
Mutual labels:  snippets, templates
Useful Tools
A list of useful tools and programs for developers, DevOps and SysAdmins
Stars: ✭ 74 (-93.27%)
Mutual labels:  snippets, utilities
Utils
A collection of useful PHP functions, mini classes and snippets that you need and can use every day.
Stars: ✭ 750 (-31.76%)
Mutual labels:  snippets, utilities
Pine Utils
Code Snippets + Tricks & Tips to help Pine Script developers
Stars: ✭ 149 (-86.44%)
Mutual labels:  snippets, templates
Bojler
Bojler is an email framework
Stars: ✭ 885 (-19.47%)
Mutual labels:  utilities, templates
Sublime Ava
Snippets for AVA
Stars: ✭ 41 (-96.27%)
Mutual labels:  snippets
Sassyfication
💅Library with sass mixins to speed up your css workflow.
Stars: ✭ 51 (-95.36%)
Mutual labels:  utilities
Docker Skeleton Php
A simple Docker PHP development environment
Stars: ✭ 40 (-96.36%)
Mutual labels:  skeleton
Flatjson
A fast JSON parser (and builder)
Stars: ✭ 39 (-96.45%)
Mutual labels:  utilities
Wedding Website
Our Wedding Website 👫
Stars: ✭ 1,090 (-0.82%)
Mutual labels:  templates
Dotfiles
💻 macOS / Ubuntu dotfiles
Stars: ✭ 1,074 (-2.27%)
Mutual labels:  snippets
Radosgw Admin4j
A Ceph Object Storage Admin SDK / Client Library for Java ✨🍰✨
Stars: ✭ 50 (-95.45%)
Mutual labels:  utilities
Jinja
A very fast and expressive template engine.
Stars: ✭ 8,170 (+643.4%)
Mutual labels:  templates
Utils
Docker image with tools like curl, wget, ping, nslookup, dig, psql etc.
Stars: ✭ 49 (-95.54%)
Mutual labels:  utilities
Screeps Snippets
This repository is for saving pinned snippets from the screeps slack for posterity
Stars: ✭ 41 (-96.27%)
Mutual labels:  snippets
Skeleton Vue
A skeleton for building Spatie's Vue components
Stars: ✭ 55 (-95%)
Mutual labels:  skeleton
Platform
The main components of OSGP.
Stars: ✭ 39 (-96.45%)
Mutual labels:  utilities
Liquid.net
.Net Port of the Liquid template language
Stars: ✭ 47 (-95.72%)
Mutual labels:  templates
Intellij Swagger
A plugin to help you easily edit Swagger and OpenAPI specification files inside IntelliJ IDEA
Stars: ✭ 1,073 (-2.37%)
Mutual labels:  utilities

Android Templates and Utilities [DEPRECATED]

Android Templates and Utilities are deprecated. I started with this project in 2012. Android ecosystem has changed a lot since then. There is a new programming language Kotlin, Android Jetpack components, RxJava and other technologies. These templates are written in Java and are not up to date.

Android Templates and Utilities is a collection of source codes, utilities, templates and snippets for Android development. It helps to build new apps and shows the best way how to implement certain things on Android platform.

I write these templates for my personal need. I use it almost every day for developing apps. It is something like cookbook for me. All my apps are based on these templates.

Note that all reusable utilities and classes have been moved to a new standalone library Alfonz. These templates use Alfonz as a dependency.

Content

In this repo you can find templates for styling app, handling activity result, working with alarm manager, animations, sending and receiving broadcasts, using dual pane layout, loading and caching images, working with intents, map, navigation drawer, showing notifications, working with parcelable, preferences, running service, setting SSL connection, timer, working with view pager, webview and much more. All templates were tested and should be compatible with Android 4.1 (API level 16).

Android Templates and Utilities are organized into 3 groups:

  • Base - basic skeleton of the Android project
  • Res - resource code including xml files, images
  • Src - source code including classes, resources

Usage

How to use these templates? Just copy a template into your project, rename package "com.example" to your own package name, rename classes' or resource's names if you want and customize the code to your needs. Some templates have /src/fragment/ExampleFragment.java class which demonstrates how to use the template in a Fragment.

Example

Example of creating a basic app skeleton with 1 Activity and 1 Fragment via Android Studio:

  • Create a new Android project with package name "com.example"
  • Copy & paste Base
  • Copy & paste Res-Placeholder
  • Copy & paste Res-Strings
  • Copy & paste Res-Theme
  • Copy & paste Src-Application-Class
  • Copy & paste Src-Config
  • Copy & paste Src-MVC-Activity
  • Copy & paste Src-MVC-Fragment
  • Add Alfonz dependencies in /mobile/build.gradle
  • Initialize Logcat utility inside ExampleApplication.onCreate(): Logcat.init(ExampleConfig.LOGS, "EXAMPLE");
  • Open ExampleActivity.java and comment out onCreateOptionsMenu(...) and onOptionsItemSelected(...) methods
  • Build the project and voilà, we have a basic MVC skeleton for our future app

Developed by

Petr Nohejl

License

Copyright 2012 Petr Nohejl

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].