Giter Site home page Giter Site logo

camohan / layersthemeplugin_example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitsyko/layersthemeplugin_example

0.0 1.0 0.0 872 KB

Example Theme for the new Layers Manager

Home Page: https://play.google.com/store/apps/details?id=com.lovejoy777.rroandlayersmanager

Java 100.00%

layersthemeplugin_example's Introduction

Layers Theme PluginExample

Welcome to the example theme which will help you to convert your Layers team to a proper plugin which can be used with the Layers Manager app since version 4.0

If you want to learn what a plugin overlay is and how to use it, have a look at the Wiki found here https://github.com/BitSyko/LayersThemePlugin_Example/wiki

The current plugin Version is 1.1 which was released on the twenty second of July 2015.

  • Whats new in Version 1.1?

    • Easier adoption for new themers:
    • Move most of the changes a themer has to make from android manifest to strings.xml
    • Split the Layers_OverlayNames into NormalOverlaynames and StyleSpecificoverlayNames
    • New recommended screenshot height: 750px (to prevent the layers Manager app from crashing on Low Memory devices)
    • A new documentation on how to make a Plugin Overlay
  • Whats new in Version 1.0?

    • Initial Release

Outdated HOW TO: Only works with plugin Version 1.0

##How to use ###Download & open download the sample app from https://github.com/LayersManager/LayersThemePlugin_Example/releases open Android Studio, click on File, import project. Select the downloaded project.

###Changes to Manifest

  • inside the project navigate to the AndroidManifest.xml

  • at the top part of the Manifest you have to change the following things: alt tag
    change the marked part in android:sharedUserId to your theme name. (example: exampleUI)
    change the marked part in android:label the desired app Name (shown in android in the settings app (example: Example UI)

  • at the bottom you have to add some basic information about your theme alt tag

    • Layers_Name = the name of your theme (it can contain spaces)
    • Layers_Developer = your name
    • Layers_Colors = if you include some overlays which are available in different colors, add the colors here.
    • Layers_Description = Short description about your theme
    • Layers_WhatsNew = Whats new in your themes latest update.
    • Layers_OverlayNames = Names of the apps you include Overlays for.
      • BE AWARE: If you use...
        • Only "normal" Overlays: the list is like: "App,App,App,App,App, "alt tag
        • Only color specific Overlays: the list is like: " ,App,App,App,App,App"alt tag
        • both normal and color specific Overlays: the list is like: "App,App,App, ,App,App"alt tag

###Change Package Name Look at the project panel in android studio (the one on the left). In the top right corner you will see a little gear icon. Click on it. You will see the following: alt tag

In this dialog you have to click on Compact Empty Middle Packages
Select the schnettler folder (in JAVA/com/ and rightclick it. Choose refactor and then rename.
A warning window will pop up. Just click on Rename package.
Enter the desired first part of your package name and click refactor.
At the bottom of the screen a refactoring preview will appear. Just click on DO REFACTOR at the left corner.

Do the same with the exampleUi folder, name it like your desired second part of the packagename

Finally open the build.gradle and change the package name there too.

###Changes to the resources

In a file explorer open the following location of the project:

  • Drawables (app\src\main\res\drawable-xxhdpi)
    • You have to replace the following drawables with your own ones:
      • Heroimage: A image displayed at the top of your themes page (dimensions should be about 1598*1052) alt tag

    • icon: An icon displayed in the overlay chooser of the Layers Manager
      alt tag

    • screenshot1,2,3: Screenshots visible on your themes installation page (height about 1100px) alt tag


  • Overlay zips (app\src\main\assets\Files)
    • How to name the Overlay apk´s: ThemeName_OverlayedAppNameWithoutSpaces.apk (OverlayedAppNameWith... = one item you put into the OverlayNames list, but without the spaces) alt tag
    • if
      • Only normal Overlays: Generate a zip Named: ThemeName_General.zip (ThemeName = Name defined in the Manifest, but without spaces, ex: ExampleUi) and put the Overlays into it
      • Only Color Overlays: Generate zips named: ThemeName_AColor.zip and put the Overlays into it. alt tag
      • both normal and color: Generate a zip named ThemeName_General.zip and for each color a ThemeName_AColor.zip and put the Overlays which are only available in one color into the General zip and the others into the Color zips

##You are Ready

Compile/run the app and test it in the new Layers Manager :) I hope the tutorial was understandable and if you still have any questions or a suggestions on how to improve the tutorial, just let me know...

layersthemeplugin_example's People

Contributors

nschnettler avatar aldrinholmes avatar lovejoy777 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.