Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.31 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.31 KB

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!

📺