Я начал использовать последнюю версию Android Studio 3.0, но у меня проблема с Preview. Он не отображает Предварительный просмотр в окне предварительного просмотра. Вот что я сделал
<?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white"> <include android:id="@+id/activePlanCard" layout="@layout/layout_item_activated_plan" /> <TextView android:id="@+id/DashView" android:layout_width="match_parent" android:layout_height="10dp" android:layout_below="@id/activePlanCard" android:background="@drawable/drw_dash_line" /> <TextView android:id="@+id/provideAddress" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/DashView" android:layout_margin="10dp" android:text="Provide Address Detail :" /> </RelativeLayout> </ScrollView> </layout>
Ваша помощь в этом вопросе будет высоко оценена
Благодаря..
Эй, у меня была такая же проблема, и я решил ее так: в build.gradle (app) отредактируйте следующие строки, как это:
compileSdkVersion 25 buildToolsVersion '25.0.0' targetSdkVersion 25 compile 'com.android.support:appcompat-v7:25.3.1'
Надеюсь, это сработает для вас!