Code Monkey home page Code Monkey logo

android-lib-appbase's Introduction

AppBase

com.hardcodedjoy.appbase v1.8.6
minSdkVersion: 21
targetSdkVersion: 33

Short description

Our base to use for building android apps faster and easier.

Description

Library to be used as a starting point for developing android apps. It is our independently-developed Single Activity Architecture, without fragments. It also includes some additional utility classes and methods that are useful in many apps.

  • ContentView = Base class for a new "screen" in the app;
  • CvTMLL = ContentView with title bar, menu button and LinearLayout for additional content;
  • CvTMSLL = same as CvTMLL, but the LinearLayout is inside a ScrollView;
  • CvTSLL = same as CvTMSLL, but the Menu button is invisible;
  • CvAboutBase = "about" screen;
  • CvSettingsBase = "settings" screen.

In ContentView, set the layout by calling inflate(int resId) in the constructor.

In CvT...:

  • add content -> add it to LinearLayout (id = "appbase_ll_content");
  • change title -> setTitle(...);
  • change title icon -> setTitleIcon(...);

Menu button opens a drop-down menu:

  • "ABOUT" screen;
  • "SETTINGS" screen;
  • add more options:
Vector ops = new Vector<>(); ops.add(new Option(...)); ... addMenuOptions(ops, 0);

User can add other options to the menu as well.

This repo also contains an android project that is a testbed app. See its code for more details about using the library.

Links

developer website: https://hardcodedjoy.com

android-lib-appbase's People

Contributors

hardcodedjoy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.