Skip to content
Plugin which add simple menus to Hyperion-Android
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
hyperion-simple-item
sample
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

Hyperion-Simple-Item

Release

You can add item to Hyperion-Android menu.

If you already have DebugMenu in your app, you will be able to go to that place.

image

Usage

app/src/debug/AndroidManifest.xml

    <application
        android:name=".DebugApp"
        tools:replace="android:name"
        />

Write bindings between shared preference and method in your DebugApp.

app/src/debug/java/.../DebugApp.java

// Extends your main Application classs
public class DebugApp extends App {
  @Override public void onCreate() {
    super.onCreate();

    final SimpleItem item = new SimpleItem.Builder()
            .title("all: this is the title")
            .text("this is the text")
            .image(R.drawable.ic_list_black_24dp)
            .clickListener(new View.OnClickListener() {
              @Override public void onClick(View v) {
                Toast.makeText(App.this, "click",Toast.LENGTH_SHORT).show();
              }
            })
            .build();
    SimpleItemHyperionPlugin.addItem(item);

Download

Step 1. Add it in your root build.gradle at the end of repositories:

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

Step 2. Add the dependency

dependencies {
    debugImplementation 'com.github.takahirom:Hyperion-Simple-Item:0.1.0'
}
You can’t perform that action at this time.