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

Error in list_fragment_menu.xml #5

Open
thuijssoon opened this issue Jan 25, 2021 · 0 comments
Open

Error in list_fragment_menu.xml #5

thuijssoon opened this issue Jan 25, 2021 · 0 comments

Comments

@thuijssoon
Copy link

<group android:checkableBehavior="single">
<item
android:id="@+id/menu_sortBy"
android:title="@string/sort_by">
<menu>
<item
android:id="@+id/menu_priority_high"
android:title="@string/priority_high"/>
<item
android:id="@+id/menu_priority_low"
android:title="@string/priority_low"/>
</menu>
</item>
</group>

Should be:

        <item
            android:id="@+id/menu_sortBy"
            android:title="@string/sort_by">
            <menu>
                <group android:checkableBehavior="single">
                    <item
                        android:id="@+id/menu_priority_high"
                        android:title="@string/priority_high"/>
                    <item
                        android:id="@+id/menu_priority_low"
                        android:title="@string/priority_low"/>
                </group>
            </menu>
        </item>

So the radio buttons will be visible in the sub menu and not in the main options menu

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

1 participant