SsnaaakeE
SsnaaakeE

Reputation: 11

Use Leanback UI on Mobile/Tablet for Android

I am currently developing a mobile app for phone/tablet devices that looks like the Leanback sample app. I really like the Leanback UI used for Android TV.

Unfortunately, on Android studio, I can't use Leanback with mobile projects.

Is there some kind of customized version of Leanback than can be used on other devices?

*P.S *: I found this project, but I enable to import it on Android Studio, it tells me that I don't have the right SDK version.

Upvotes: 1

Views: 2787

Answers (3)

Moaz Rashad
Moaz Rashad

Reputation: 1075

Please check my fork, I fixed the build issue and updated the build configuration to android 30.

https://github.com/moaz-cliqz/MaterialLeanBack

Upvotes: 0

A_rmas
A_rmas

Reputation: 784

<uses-feature
        android:name="android.software.leanback"
        android:required="false" />
    <uses-feature
        android:name="android.hardware.touchscreen"
        android:required="true" />

Just place this, it runs in mobile devices.

Upvotes: 1

Nick Felker
Nick Felker

Reputation: 11970

It looks like this project you found is fairly old and is using older dependencies. You would need to go into your SDK manager and install SDK version 22 (Lollipop MR1).

You could also fork the project and update it to use API version 24 so it works with your project.

Upvotes: 1

Related Questions