Nar*_*esh 7 android preview android-studio
我已经开始使用最新的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>
Run Code Online (Sandbox Code Playgroud)
非常感谢您对此事的帮助
谢谢..
小智 11
以下更改为我解决了这个问题:
在styles.xml(app> res> values)中,在基本应用程序主题中 - 在父样式之前添加"base".
从:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
Run Code Online (Sandbox Code Playgroud)
至:
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
Run Code Online (Sandbox Code Playgroud)
小智 0
嘿,我遇到了同样的问题,我是这样解决的:在 build.gradle(app) 中编辑以下行,如下所示:
compileSdkVersion 25
buildToolsVersion '25.0.0'
targetSdkVersion 25
compile 'com.android.support:appcompat-v7:25.3.1'
Run Code Online (Sandbox Code Playgroud)
希望对你有帮助!
归档时间: |
|
查看次数: |
2541 次 |
最近记录: |