Skip to content

SPAstef/LayersThemePlugin_Example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Layers Theme PluginExample

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

Packages

No packages published

Languages

  • Java 100.0%