skydoves / ExpandableLayout

🦚 An expandable layout that shows a two-level layout with an indicator.
Apache License 2.0
825 stars 54 forks source link

conflicts with another tag that has the same ID #34

Open oluwabajio opened 2 years ago

oluwabajio commented 2 years ago

Please complete the following information:

This is what i am getting in my app

{"msg":"\u003ccom.skydoves.expandablelayout.ExpandableLayout id\u003d\u0027@+id/expandable\u0027\u003e conflicts with another tag that has the same ID","file":"app\src\main\res\layout\fragment_kyc_overview.xml","pos":[{"line0":187,"col0":24,"line1":195,"col1":64}]}

oluwabajio commented 2 years ago

This is my code

<androidx.cardview.widget.CardView android:id="@+id/cdSilver" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" app:cardCornerRadius="7dp" app:cardElevation="0dp">

                <RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="@color/white"
                    android:gravity="center_vertical"
                    android:paddingHorizontal="10dp"
                    android:paddingVertical="20dp">

                    <com.skydoves.expandablelayout.ExpandableLayout
                        android:id="@+id/expandableSilver"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        app:expandable_duration="300"
                        app:expandable_isExpanded="false"
                        app:expandable_parentLayout="@layout/layout_kyc_silver_benefits_title"
                        app:expandable_secondLayout="@layout/layout_kyc_silver_benefits_details"
                        app:expandable_showSpinner="false" />
                </RelativeLayout>
            </androidx.cardview.widget.CardView>

            <androidx.cardview.widget.CardView
                android:id="@+id/cdGold"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="10dp"
                app:cardCornerRadius="7dp"
                app:cardElevation="0dp">

                <RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="@color/white"
                    android:gravity="center_vertical"
                    android:paddingHorizontal="10dp"
                    android:paddingVertical="20dp">

                    <com.skydoves.expandablelayout.ExpandableLayout
                        android:id="@+id/expandableGold"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        app:expandable_duration="300"
                        app:expandable_isExpanded="false"
                        app:expandable_parentLayout="@layout/layout_kyc_gold_benefits_title"
                        app:expandable_secondLayout="@layout/layout_kyc_gold_benefits_details"
                        app:expandable_showSpinner="false" />
                </RelativeLayout>
            </androidx.cardview.widget.CardView>