今天试着导入extra里的design
然后自己另外建立的project在引入design总是R文件找不到
这里说下步骤
首先导入design文件夹后
要导入appv7和recyclerview的包
导入recyclerview包的目的是为了支持design布局文件design_navigation_menu的
<android.support.design.internal.NavigationMenuView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/design_navigation_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="@dimen/design_navigation_padding_top_default"
android:paddingBottom="@dimen/design_navigation_padding_bottom"
android:clipToPadding="false"
android:divider="@null"
android:scrollbars="vertical"
android:listSelector="?attr/selectableItemBackground"
app:layoutManager="android.support.v7.widget.LinearLayoutManager"/>
这样就可以使用library design了