Comments (4)
????
from adt-leanback-support.
Not sure. The ADT Leanback library is only designed to work with API 17 or higher. You may be able to use the CardView-v7 compatibility library which is support back to v7. That you will need to get from the android sdk repository.
from adt-leanback-support.
I am working on API 17, but Rounding of cards works fine on API 21 and shadow works fine on API 18.
In Class ShadowHelperJbmr2.java package name is android.support.v17.leanback.widget
you are implementing a function
public static void prepareParent(ViewGroup parent) {
parent.setLayoutMode(ViewGroup.LAYOUT_MODE_OPTICAL_BOUNDS);
}
and there is another function addShadow(...){
......
}
In both functions you are using setLayoutMode(), this function is only workable on API 18.
I have replaced this with ViewGroupCompat.setLayoutMode(parent,ViewGroupCOmpat.LAYOUT_MODE_OPTICAL_BOUNDS);
In the implementation of the ShadowHelperJbmr2.java I mean for the implementation for jelly bean MR2 you are using only this function setLayoutMode() which is using API 18.
But as I have replaced this one its still not working for me . atleast it should display shadow on the tiles. :(
i know CardView library works pretty good with shadow implementation but I want to use your library implementation.
When I run same code on API 21 it rounds the cards and also display shadow, In API 18 it displays shadow, any suggestion,help and recommendation please apart from using cardviews so I can use same feature in the API 17 after making change to Library ,Sir your help will be appreciable and thanks in Advance?
from adt-leanback-support.
Actually, I'm not implementing anything. I just copied the sources from the Android Leanback V17 source jars, and got them to compile. You should open bug reports with the AOSP in regards to the libraries. I just made them consumable by Eclipse since it can't handle AAR files.
from adt-leanback-support.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adt-leanback-support.