Git Product home page Git Product logo

android-geocities-theme's Introduction

Android Geocities Theme

Bringing the best of the web to native!

Features

  • ๐Ÿšง Cool "under construction" views
  • ๐Ÿ‘ ImageViews have their images replaced with GIFs that are better than whatever was there before
  • โŒ Replaces some images with "broken image" images
  • ๐Ÿ˜Ž Marquee and blink text
  • ๐Ÿ”ฅ An awesome hit/visitor counter for your app
  • ๐Ÿ™ Uses Comic Sans as the Gods intended
  • ๐Ÿ”Š Plays awesome audio midi files

Sample video (contains audio):

In the video we launch BaseDemoActivity which unfortunately is not Geocitified, however we fix that by next launching GeocitiesDemoActivity, which is a sub-class of the same activity that only adds in Geocities.wrap(newBase) to attachBaseContext (see instructions below).

And just like that the activity becomes 100x better than it was before ๐Ÿ‘

Sample Video

Usage

In your application class:

override fun onCreate() {
  super.onCreate()
  Geocities.init(this)
}

Add this to your activity:

override fun attachBaseContext(newBase: Context) {
  super.attachBaseContext(Geocities.wrap(newBase))
}

Add the dependency in your app build.gradle:

compile 'com.github.dvoiss:android-geocities-theme:1.0.2'

Add the jitpack repo to your root build.gradle:

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

Roadmap / Feature request:

  • More GIFs
  • Support for "web ring" functionality?
  • Guestbook functionality
  • Create an issue or pull request to add a feature!

FAQ

How does it work?

The ViewPump library is used to intercept a few UI components that are then modified to be "Geocitified".

  • ImageViews have their images replaced with GIFs or "broken image" images.
  • Toolbars are modified to have the GIF back button seen in the video above as well as a hit counter, rainbow colored title text, and an "under construction" GIF.
  • TextViews blink and scroll (marquee effect) and use comic sans.
  • The root layout (ContentFrameLayout) has a background set with one of the supplied backgrounds.

Can I use this in a real app?

That's probably ill advised. This library was not meant for serious consumption (surprised?) and as such some of the resources below are pulled from public sources. If you really want to use this you may need to check the usage/licenses for them or replace them.

There's a lot of GIFs will it crash my app? Is this library stable?

๐Ÿคท

Assets/Resources used:

android-geocities-theme's People

Contributors

dvoiss 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.