MaterialIntroView
MaterialIntroView copied to clipboard
Relative layout malfunction - Unexpected and awkward consequence of including the library
Hi,
I am quite perplexed at the following issue: I have a recycler view with a recyclerview that has rows that have relative layouts as their viewgroup. This relative layout doesn't seem to understand "left:right", "right:left" attributes after including your library. This is weird as I haven't seen anything in your code that could impede my layout and use the same libraries as you do. Please see the screenshots below:
Before inclusion:
After inclusion:
Do you have any idea what might be causing the issues? Or know how to solve it? :)
Thanks!
Does it occur after you set MaterialIntroView to list item ? Can you add some code snippet here how you implement it on java and your list item xml here?
The only difference between a faulty app and a properly-working app is the inclusion of your library. So I don't set any MaterialIntroView to any of my objects. It is thus not implemented in java
Here's the XML snippet for my recyclerview row (Sorry for adding the snippet as a linked txt file, but the editor hated the relative layout tag and tried to interpret it as HTML) **:
[xml snippet.txt](https://github.com/iammert/MaterialIntroView/files/149873/xml.snippet.txt)
I later changed my root layout for my recyclerview row to a linear layout and the library works as intended.
I am not that surprised that the relative layout broke, in the sense that relative layouts are famed for having issues when they are the first child of a scrolling view group. However, I am surprised that it broke due to the inclusion of your library, since nothing in it seems to hint towards an eventual hindrance
By the way, I really like your library and am grateful for you having shared it! :)
I had a similar problem and added this to my manifest :
tools:replace="android:supportsRtl"
android:supportsRtl="false"
Works fine now :+1: