Replacing "android.support.v4.widget.DrawerLayout" with another one for can be showing that on Preview -
as know, there problem android.support.v4.widget.drawerlayout on preview of android studio , cannot see "android.support.v4.widget.drawerlayout".
so, bad , take our time designing activity.
my question is,
is there replacer doing below tutorial? (for showing preview on android studio)
http://www.android4devs.com/2014/12/how-to-make-material-design-navigation-drawer.html
for example, here main_activity
<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.drawerlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawerlayout" android:layout_width="match_parent" android:layout_height="match_parent" android:elevation="7dp"> <scrollview android:layout_width="fill_parent" android:layout_height="wrap_content"> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <include android:id="@+id/tool_bar" layout="@layout/tool_bar"> </include> <android.support.v7.widget.cardview android:layout_height="155dp" android:layout_width="match_parent" android:layout_margin="@dimen/outer_margin"> <imagebutton android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/bg"/> </android.support.v7.widget.cardview> <button android:layout_width="300dp" android:layout_height="50dp" android:layout_marginleft="50dp" android:layout_marginright="70dp" android:text="@string/button" android:textallcaps="false" android:id="@+id/button" tools:ignore="rtlhardcoded"/> <android.support.v7.widget.cardview android:layout_height="100dp" android:layout_width="match_parent" android:layout_margintop="0dp" android:layout_marginleft="@dimen/outer_margin" android:layout_marginbottom="@dimen/outer_margin" android:layout_marginright="@dimen/outer_margin"> <textview style="@style/base.textappearance.appcompat.headline" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="title2"/> </android.support.v7.widget.cardview> <android.support.v7.widget.cardview android:layout_height="100dp" android:layout_width="match_parent" android:layout_margintop="0dp" android:layout_marginleft="@dimen/outer_margin" android:layout_marginbottom="@dimen/outer_margin" android:layout_marginright="@dimen/outer_margin"> <textview style="@style/base.textappearance.appcompat.headline" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="title3"/> </android.support.v7.widget.cardview> <android.support.v7.widget.cardview android:layout_height="100dp" android:layout_width="match_parent" android:layout_margintop="0dp" android:layout_marginleft="@dimen/outer_margin" android:layout_marginbottom="@dimen/outer_margin" android:layout_marginright="@dimen/outer_margin"> <textview style="@style/base.textappearance.appcompat.headline" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="title4"/> </android.support.v7.widget.cardview> <android.support.v7.widget.cardview android:layout_height="100dp" android:layout_width="match_parent" android:layout_margintop="0dp" android:layout_marginleft="@dimen/outer_margin" android:layout_marginbottom="@dimen/outer_margin" android:layout_marginright="@dimen/outer_margin"> <textview style="@style/base.textappearance.appcompat.headline" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="title4"/> </android.support.v7.widget.cardview> </linearlayout> </scrollview> <android.support.v7.widget.recyclerview android:id="@+id/recyclerview" android:layout_width="320dp" android:layout_height="match_parent" android:layout_gravity="left" android:background="#ffffff" android:scrollbars="vertical"> </android.support.v7.widget.recyclerview> </android.support.v4.widget.drawerlayout> build.gradle dependencies :
compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.android.support:support-v4:22.1.1' android studio version: ai 141.1962279 canary channel
how showing on android studio preview ? or replacer this?
"android.support.v4.widget.drawerlayout"
Comments
Post a Comment