После очистки интерфейса путем добавления большого количества свойств android:visibility="gone"
и "invisible"
, здесь появляется сообщение «Ошибка: несоответствующий тег» в строке с последней по последнюю: </LinearLayout>
.
Удаляя это, выдает ошибку еще в последней строке: </android.support.constraint.ConstraintLayout">
Полный код:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:ignore="ExtraText">
<Button
android:id="@+id/czasuButton"
android:layout_width="56dp"
android:layout_height="32dp"
android:onClick="dodacCzasu"
android:padding="0dp"
android:text="@string/czas"
app:layout_constraintBottom_toBottomOf="@+id/nag_button"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/nag_button"
app:layout_constraintVertical_bias="0.0" />
<Button
android:id="@+id/kopujButton"
android:layout_width="56dp"
android:layout_height="0dp"
android:layout_marginStart="12dp"
android:layout_marginLeft="12dp"
android:onClick="skopujDate"
android:padding="0dp"
android:text="@string/kopujczasu"
app:layout_constraintBottom_toBottomOf="@+id/czasuButton"
app:layout_constraintStart_toEndOf="@+id/czasuButton"
app:layout_constraintTop_toTopOf="@+id/czasuButton"
app:layout_constraintVertical_bias="0.0" />
<Button
android:id="@+id/nag_button"
android:layout_width="74dp"
android:layout_height="0dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:padding="0dp"
android:text="@string/sync"
app:layout_constraintBottom_toBottomOf="@+id/toggleButton"
app:layout_constraintStart_toEndOf="@+id/toggleButton"
app:layout_constraintTop_toTopOf="@+id/toggleButton"
app:layout_constraintVertical_bias="1.0" />
<ToggleButton
android:id="@+id/toggleButton"
android:layout_width="88dp"
android:layout_height="30dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp"
android:padding="0dp"
android:textOff="@string/zacz"
android:textOn="@string/kon"
android:visibility="gone"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<EditText
android:id="@+id/start_time"
android:layout_width="300dp"
android:layout_height="48dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:ems="10"
android:inputType="date"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/czasuButton" />
<ImageView
android:id="@+id/start_time_x"
android:layout_width="24dp"
android:layout_height="0dp"
android:layout_alignParentBottom="true"
android:layout_marginTop="12dp"
android:layout_marginEnd="4dp"
android:layout_marginRight="4dp"
android:layout_marginBottom="12dp"
android:src="@drawable/cross_icon"
app:layout_constraintBottom_toBottomOf="@+id/start_time"
app:layout_constraintEnd_toEndOf="@+id/start_time"
app:layout_constraintTop_toTopOf="@+id/start_time" />
<EditText
android:id="@+id/complete_time"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:ems="10"
android:inputType="date"
app:layout_constraintEnd_toEndOf="@+id/start_time"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/start_time" />
<ImageView
android:id="@+id/complete_time_x"
android:layout_width="24dp"
android:layout_height="0dp"
android:layout_alignParentBottom="true"
android:layout_marginTop="12dp"
android:layout_marginEnd="4dp"
android:layout_marginRight="4dp"
android:layout_marginBottom="12dp"
android:src="@drawable/cross_icon"
app:layout_constraintBottom_toBottomOf="@+id/complete_time"
app:layout_constraintEnd_toEndOf="@+id/complete_time"
app:layout_constraintTop_toTopOf="@+id/complete_time" />
<AutoCompleteTextView
android:id="@+id/im"
android:layout_width="387dp"
android:layout_height="0dp"
android:ems="10"
android:hint="@string/im"
android:inputType="none"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="136dp" />
<Spinner
android:id="@+id/jedSelector"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:background="@android:drawable/btn_dropdown"
android:spinnerMode="dropdown"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@+id/im"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/im"
app:layout_constraintTop_toTopOf="@+id/im" />
<TextView
android:id="@+id/log"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:text="Log"
android:visibility="invisible"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/jedzenieList">
<EditText
android:id="@+id/napis"
android:layout_width="0dp"
android:layout_height="192dp"
android:layout_marginStart="16dp"
android:layout_marginLeft="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:ems="10"
android:hint="@string/zapis"
android:inputType="textMultiLine|textImeMultiLine|textLongMessage"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/im"
app:layout_constraintVertical_bias="1.0" />
<Button
android:id="@+id/refreshStartButton"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:onClick="refreshStart"
android:padding="0dp"
android:text="@string/nowy"
app:layout_constraintBottom_toBottomOf="@+id/start_time"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/start_time"
app:layout_constraintTop_toTopOf="@+id/start_time"
app:layout_constraintVertical_bias="0.0" />
<Button
android:id="@+id/refreshCompleteButton"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:onClick="refreshComplete"
android:padding="0dp"
android:text="@string/nowy"
app:layout_constraintBottom_toBottomOf="@+id/complete_time"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/complete_time"
app:layout_constraintTop_toTopOf="@+id/complete_time"
app:layout_constraintVertical_bias="1.0" />
<LinearLayout
android:id="@+id/jedzenieList"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layoutDirection="ltr"
android:orientation="vertical"
android:visibility="invisible"
app:layout_constraintEnd_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent" />
<LinearLayout
android:id="@+id/mediaLayout"
android:layout_width="243dp"
android:layout_height="26dp"
android:orientation="horizontal"
android:visibility="invisible"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
<Button
android:id="@+id/playButton"
android:layout_width="wrap_content"
android:layout_height="31dp"
android:padding="0dp"
android:text="Abspielen">
<Button
android:id="@+id/recordButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:padding="0dp"
android:text="Aufnehmen"
tools:layout_editor_absoluteX="157dp"
tools:layout_editor_absoluteY="59dp">
</LinearLayout>
</android.support.constraint.ConstraintLayout>
Спасибо.