mirror of https://codeberg.org/gitnex/GitNex.git
86 lines
3.1 KiB
XML
86 lines
3.1 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:background="?attr/primaryBackgroundColor"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/avatar"
|
|
android:layout_width="@dimen/list_avatar_size"
|
|
android:layout_height="@dimen/list_avatar_size"
|
|
android:layout_weight="0"
|
|
android:contentDescription="@string/generalImgContentText"
|
|
tools:srcCompat="@tools:sample/avatars" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginRight="15dp"
|
|
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="14sp"
|
|
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="12sp" />
|
|
</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:contentDescription="@string/menuContentDesc"
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
app:srcCompat="@drawable/ic_dotted_menu_horizontal" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/comment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textIsSelectable="true"
|
|
android:autoLink="web"
|
|
android:textColorLink="@color/lightBlue"
|
|
android:textSize="14sp" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/commentReactionBadges"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:layout_marginTop="16dp"
|
|
android:orientation="horizontal" />
|
|
|
|
</LinearLayout>
|