Skip to content

wkarl/mia-Leanback

Repository files navigation

API Build Status Release License

Using Gradle

Add the following lines to your root build.gradle:

allprojects {
    repositories {
        [...]
        maven { url "https://jitpack.io" }
    }
}

Then reference the library from your module's build.gradle:

dependencies {
    [...]
    compile 'com.github.7factory:mia-leanback:x.y'
}

Integration

  1. Extend from LeanbackActivity.
public class MainActivity extends LeanbackActivity {
    [...]
}
  1. Configure your leanback experience, f.e. enter fullscreen on landscape.
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    
    // Enter fullscreen on landscape
    forceFullscreenOnLandscape(true); 

    [...] 
}
  1. Leanback!

📺

About

Easy fullscreen handling for Android apps.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages