Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android:orientation="horizontal" is invalid #55

Open
TianGuisen opened this issue Apr 29, 2021 · 1 comment
Open

android:orientation="horizontal" is invalid #55

TianGuisen opened this issue Apr 29, 2021 · 1 comment

Comments

@TianGuisen
Copy link

TianGuisen commented Apr 29, 2021

<ShimmerRecyclerView 
android:orientation="horizontal" 
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
/>

is invalid

<RecyclerView 
android:orientation="horizontal" 
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
/>

is valid

@serdarbuyukkanli-exi
Copy link

serdarbuyukkanli-exi commented Oct 5, 2021

Get rid of the lines below.

android:orientation="horizontal" 
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"

and set LayoutManager programmatically like that below:

val llm = LinearLayoutManager(context, RecyclerView.HORIZONTAL, false)
binding.prescriptionRecyclerView.layoutManager = llm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants