homayoonahmadi/GroupBoxLayout

RTL layoutDirection does not show inner views

yaghoob opened this issue · 1 comments

Hi,
GroupBox is one of the Nostalgia view components for legacy .Net developers like me!
I use your library proudly, but I have a little problem.

This is my code:

<ir.programmerplus.groupbox.GroupBoxLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="5dp"
                android:layoutDirection="rtl"
                android:padding="4dp"
                app:borderColor="@color/gray"
                app:borderCornerRadius="8dp"
                app:borderStrokeWidth="1dp"
                app:labelText="بازیگران"
                app:labelTextSize="10dp">
                
                     <RelativeLayout
                            android:id="@+id/row_cast"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="8dp">
                            
                                          <androidx.recyclerview.widget.RecyclerView
                                              android:id="@+id/list_cast"
                                              android:layout_width="match_parent"
                                              android:layout_height="wrap_content"/>
                                              
                        </RelativeLayout>
            </ir.programmerplus.groupbox.GroupBoxLayout>

Unfortunately when i add android:layoutDirection="rtl" to the groupbox, whole content of recyclerview disappears!
Also i added android:supportsRtl="true" to the Manifest...
The amazing issue is that, items can scroll or focus but it seems be invisible!

Regards,

Hi Yaghoob, how have you been recently 🖐?

Try adding android:layoutDirection="ltr" to your RelativeLayout and check if it worked for you,
If NOT, try removing RelativeLayout and put RecyclerView as direct child of GroupBoxLayout.

Let me know if it solved your problem.