我已经开始使用最新的 Android Studio 3.0,但预览版遇到问题。它没有在预览选项卡中显示预览。
这是我所做的
<?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>
我们将非常感谢您在此事上的协助
Thanks..
以下更改为我解决了这个问题:
在 styles.xml(应用程序 > res > 值)中,在基本应用程序主题中 - 在父样式之前添加“base”。
From:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
To:
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)