227 lines
9.2 KiB
XML
227 lines
9.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout 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:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/timeline_divider_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="@dimen/dimen12dp"
|
|
android:paddingEnd="@dimen/dimen0dp"
|
|
android:orientation="vertical">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/timeline_line"
|
|
android:layout_width="@dimen/dimen2dp"
|
|
android:layout_height="wrap_content"
|
|
android:padding="@dimen/dimen8dp"
|
|
android:background="?attr/colorPrimary" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/comment_view"
|
|
style="?attr/materialCardViewElevatedStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:cardElevation="@dimen/dimen0dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/materialCardBackgroundColor"
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/materialCardBackgroundColor"
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/dimen12dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
style="?attr/materialCardViewElevatedStyle"
|
|
android:layout_width="@dimen/dimen24dp"
|
|
android:layout_height="@dimen/dimen24dp"
|
|
app:cardCornerRadius="@dimen/dimen12dp"
|
|
app:cardElevation="@dimen/dimen0dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/avatar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0"
|
|
android:contentDescription="@string/generalImgContentText"
|
|
tools:srcCompat="@tools:sample/avatars" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dimen16dp"
|
|
android:layout_marginRight="@dimen/dimen16dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/author"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="middle"
|
|
android:singleLine="true"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen14sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/information"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:textColor="?attr/hintColor"
|
|
android:textSize="@dimen/dimen12sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/menu"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top"
|
|
android:layout_weight="0"
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/menuContentDesc"
|
|
app:srcCompat="@drawable/ic_dotted_menu_horizontal" />
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/comment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:autoLink="web"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textColorLink="@color/lightBlue"
|
|
android:textIsSelectable="true"
|
|
android:textSize="@dimen/dimen14sp" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/commentReactionBadges"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dimen16dp"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/attachmentFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/materialCardBackgroundColor"
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
android:visibility="gone"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.divider.MaterialDivider
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dimen4dp" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/attachmentsView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="@dimen/dimen12dp"
|
|
android:orientation="horizontal">
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/timeline_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/timeline_divider_view_2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:paddingStart="@dimen/dimen12dp"
|
|
android:paddingEnd="@dimen/dimen0dp"
|
|
android:orientation="horizontal">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/timeline_line_2"
|
|
android:layout_width="@dimen/dimen2dp"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/colorPrimary" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/timeline_data"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:paddingStart="@dimen/dimen16dp"
|
|
android:paddingEnd="@dimen/dimen0dp"
|
|
android:layout_marginStart="@dimen/dimen6dp"
|
|
android:layout_marginEnd="@dimen/dimen4dp"
|
|
android:orientation="horizontal" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
style="?attr/materialCardViewElevatedStyle"
|
|
android:layout_width="@dimen/dimen28dp"
|
|
android:layout_height="@dimen/dimen28dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:backgroundTint="?attr/materialCardBackgroundColor"
|
|
app:cardCornerRadius="@dimen/dimen6dp"
|
|
app:cardElevation="@dimen/dimen0dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/timeline_icon"
|
|
android:layout_width="@dimen/dimen16dp"
|
|
android:layout_height="@dimen/dimen16dp"
|
|
android:layout_gravity="center"
|
|
android:contentDescription="@string/generalImgContentText"
|
|
android:src="@drawable/ic_history"
|
|
tools:srcCompat="@drawable/ic_history" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|