Home > Mobile >  Android, please how to correctly use the support - in the studio v4 package?
Android, please how to correctly use the support - in the studio v4 package?

Time:10-05

I use the AS built a project with the drawer, the inside of the activity_main. XML is used in the com. Android. Support. The v4. Widget. DrawableLayout this control, however, in the case of I didn't change anything directly prompt can not find the class, the baidu also can not find similar problems and effective solutions,,,

Tip:

Side AS already automatically import, I also did not move:

Ctrl + click on the name of the class can jump to the corresponding class:


For some reason to learn is not deep, it directly to fit, maybe some very basic question do not quite understand, hope everybody a great god give directions, thank you!

CodePudding user response:

In XML without com. Directly is android. Support. The v4...

CodePudding user response:

Well, I don't write wrong, com, the project is generated as himself, I don't have to mend, error, directly, also don't understand

CodePudding user response:

Meet the same problem, in the XML layout is wrong, this is how to solve

CodePudding user response:

Will you build posted to look at how to write