Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

ViewById with generics - creates syntax errors in generated class #1351

@malcooke

Description

@malcooke

What steps will reproduce the problem?

Declare something as follows with a generic eg
@ViewById(R.id.phrasetype)
FloatingLabelItemChooser phraseTypeSpinner;

This creates syntax errors in the generated class eg bad import and casting error

import com.marvinlabs.widget.floatinglabel.itemchooser.FloatingLabelItemChooser<android.content.ContentValues>;
...
phraseTypeSpinner = ((ContentValues>) hasViews.findViewById(uk.co.myApp.android.R.id.phrasetype));

What version of the product are you using? On what operating system?

3.2, Windows, Android Studio

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions