113 lines
5.1 KiB
XML
113 lines
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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/scrollview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".posts.PostActivity">
|
|
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
android:id="@+id/postRefreshLayout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp" />
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/app_bar_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
android:id="@+id/collapsing_toolbar_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<include
|
|
android:id="@+id/postFragmentSingle"
|
|
layout="@layout/post_fragment" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/commentIn"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toBottomOf="@+id/postFragmentSingle"
|
|
tools:layout_editor_absoluteX="10dp">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/textInputLayout2"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/submitComment"
|
|
app:layout_constraintStart_toStartOf="parent">
|
|
|
|
<EditText
|
|
android:id="@+id/editComment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/comment"
|
|
android:importantForAutofill="no"
|
|
android:inputType="text" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<Button
|
|
android:id="@+id/submitComment"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
android:contentDescription="@string/submit_comment"
|
|
android:text="@string/comment"
|
|
app:layout_constraintBottom_toBottomOf="@+id/textInputLayout2"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/textInputLayout2"
|
|
app:layout_constraintTop_toTopOf="@+id/textInputLayout2" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<androidx.constraintlayout.motion.widget.MotionLayout
|
|
android:id="@+id/motionLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="8dp"
|
|
android:visibility="visible"
|
|
app:layoutDescription="@xml/error_layout_xml_error_scene"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<include
|
|
android:id="@+id/errorLayout"
|
|
layout="@layout/error_layout"
|
|
tools:layout_editor_absoluteX="50dp" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/commentRecyclerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:visibility="visible"
|
|
app:layoutManager="LinearLayoutManager"
|
|
app:layout_constraintTop_toBottomOf="@id/errorLayout"
|
|
tools:listitem="@layout/comment" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/postCommentsProgressBar"
|
|
style="?android:attr/progressBarStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/errorLayout" />
|
|
|
|
</androidx.constraintlayout.motion.widget.MotionLayout>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|