Android development, the use of RecyclerView, establish library dependencies, activity only display layout, the layout in the configuration file if flash back, add the following code will compile without problems, don't understand what the book says the use of the library depends on how to include the complete package path, could you tell me what flash back may cause flash back? The android: id="@ + id/msg_recycler_view" Android: layout_width="match_parent" Android: layout_height="0 dp" Android: layout_weight="1"/& gt;
CodePudding user response:
Flash back with an error message, you look at the information in the logcat
CodePudding user response:
RecyclerView is a space that contains a resource file, I think you only contains a Java file to import, and not contain resources such as file layout and error, need to change your way of import,