Опция предварительного просмотра в Android Studio не работает - PullRequest
0 голосов
/ 01 июня 2018

У меня есть некоторые проблемы в Android Studio в опции предварительного просмотра [xml]

Подробности ниже

Я все сделал.

  1. Gradle уже сборка
  2. Устранены все ошибки макета xml
  3. Также изменен уровень API, разрешение экрана, поворот и тема
  4. Перезапустите андроид студию, но ничего не могло произойти Ссылка на изображение ниже

enter image description here

Код ниже

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:app="http://schemas.android.com/apk/res-auto"
   xmlns:card_view="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent">

   <android.support.design.widget.CollapsingToolbarLayout
       android:id="@+id/DT_ImageCardView"
       android:layout_width="match_parent"
       android:layout_height="150dp"
       app:cardBackgroundColor="@color/DarkGrayDark"
       app:contentScrim="?attr/colorPrimary"
       app:layout_scrollFlags="scroll|exitUntilCollapsed"
       card_view:cardPreventCornerOverlap="false">

       <ImageView
           android:id="@+id/DT_full_image"
           android:layout_width="match_parent"
           android:layout_height="match_parent"
           android:background="@color/colorPrimaryDark"
           android:contentDescription="@string/dailytipsimage"
           android:scaleType="fitXY"
           android:src="@drawable/trans_logo" />

       <ImageView
           android:id="@+id/DT_share"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:layout_below="@id/DT_ImageCardView"
           android:background="@color/transparentBlack"
           android:contentDescription="@string/dailytipsshare"
           android:padding="5dp"
           android:src="@drawable/ic_share_white_24dp" />

   </android.support.design.widget.CollapsingToolbarLayout>


   <TextView
       android:id="@+id/DT_full_title"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       android:layout_below="@id/DT_ImageCardView"
       android:layout_marginTop="5dp"
       android:text="@string/jeetesh_surana"
       android:textAlignment="center"
       android:textSize="20sp"
       android:textStyle="bold" />

   <TextView
       android:id="@+id/DT_full_des"
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:layout_below="@id/DT_full_title"
       android:layout_margin="10dp" />

   <android.support.design.widget.FloatingActionButton
       android:id="@+id/DT_full_videoIV"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_alignParentRight="true"
       android:layout_below="@id/DT_full_des"
       android:layout_margin="10dp"
       android:padding="10dp"
       android:src="@drawable/ic_videocam_black_24dp"
       android:visibility="visible" />

   <Button
       android:id="@+id/DT_comment"
       android:layout_width="match_parent"
       android:layout_height="50dp"
       android:layout_alignParentBottom="true"
       android:layout_centerHorizontal="true"
       android:background="@color/colorPrimary"
       android:padding="10dp"
       android:text="@string/comment"
       android:textColor="@color/colorWhite" />

</RelativeLayout> 

1 Ответ

0 голосов
/ 01 июня 2018

В первый раз покажите нам свой вопрос прямо в углу экрана!В секунду этот экран означает (если я хорошо помню), ваш экран еще не загружен На моем старом ПК было даже 2-3 минуты, прежде чем он показывает:)

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...