mirror of https://codeberg.org/gitnex/GitNex.git
304 lines
14 KiB
XML
304 lines
14 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:background="?attr/primaryBackgroundColor">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:elevation="0dp"
|
|
android:theme="@style/Widget.AppCompat.SearchView">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/primaryBackgroundColor">
|
|
|
|
<ImageView
|
|
android:id="@+id/issuePrState"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_issue"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="8dp"
|
|
android:visibility="gone"
|
|
android:contentDescription="@string/generalImgContentText" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="center_vertical"
|
|
android:textSize="18sp"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:id="@+id/toolbar_title" />
|
|
|
|
</com.google.android.material.appbar.MaterialToolbar>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<com.google.android.material.progressindicator.LinearProgressIndicator
|
|
android:id="@+id/progressBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="56dp"
|
|
android:indeterminate="true"
|
|
style="@style/Widget.MaterialComponents.LinearProgressIndicator"
|
|
app:indicatorColor="?attr/progressIndicatorColor" />
|
|
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
android:id="@+id/addNewComment"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="16dp"
|
|
android:text="@string/commentButtonText"
|
|
android:contentDescription="@string/commentButtonText"
|
|
android:textColor="@color/colorWhite"
|
|
android:backgroundTint="?attr/fabColor"
|
|
android:layout_gravity="bottom|end"
|
|
app:iconTint="@color/colorWhite"
|
|
app:icon="@drawable/ic_reply" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/relativeMainLayoutFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_marginTop="56dp"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
android:id="@+id/pullToRefresh"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/scrollViewComments"
|
|
android:fillViewport="true">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/relativeLayoutFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/mainIssueLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="15dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/assigneeAvatar"
|
|
android:layout_width="@dimen/list_avatar_size"
|
|
android:layout_height="@dimen/list_avatar_size"
|
|
android:layout_marginEnd="10dp"
|
|
android:contentDescription="@string/generalImgContentText" />
|
|
|
|
<TextView
|
|
android:id="@+id/issueTitle"
|
|
android:layout_toEndOf="@+id/assigneeAvatar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="start"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textIsSelectable="true"
|
|
android:textSize="16sp" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/msdueFrame"
|
|
android:layout_toEndOf="@+id/assigneeAvatar"
|
|
android:layout_below="@+id/issueTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/dueDateFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="end|center_vertical"
|
|
android:orientation="horizontal"
|
|
tools:ignore="UseCompoundDrawables">
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="wrap_content"
|
|
app:srcCompat="@drawable/ic_calendar"
|
|
android:contentDescription="@string/generalImgContentText" />
|
|
|
|
<TextView
|
|
android:id="@+id/issueDueDate"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:singleLine="true"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/milestoneFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="end|center_vertical"
|
|
android:orientation="horizontal"
|
|
tools:ignore="UseCompoundDrawables">
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="wrap_content"
|
|
app:srcCompat="@drawable/ic_milestone"
|
|
android:contentDescription="@string/generalImgContentText" />
|
|
|
|
<TextView
|
|
android:id="@+id/issueMilestone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:singleLine="true"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<HorizontalScrollView
|
|
android:layout_below="@+id/msdueFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/assigneesScrollView"
|
|
android:layout_alignParentEnd="false"
|
|
android:foregroundGravity="right"
|
|
android:scrollbarThumbHorizontal="@android:color/transparent"
|
|
android:fillViewport="true">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/frameAssignees"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_gravity="end"
|
|
android:gravity="end"
|
|
android:layout_marginTop="10dp">
|
|
|
|
</LinearLayout>
|
|
</HorizontalScrollView>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/issueDescription"
|
|
android:layout_below="@+id/assigneesScrollView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="start"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:autoLink="web"
|
|
android:textColorLink="@color/lightBlue"
|
|
android:textIsSelectable="true"
|
|
android:textSize="14sp" />
|
|
|
|
<HorizontalScrollView
|
|
android:layout_below="@+id/issueDescription"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/labelsScrollView"
|
|
android:layout_alignParentEnd="false"
|
|
android:foregroundGravity="right"
|
|
android:scrollbarThumbHorizontal="@android:color/transparent"
|
|
android:fillViewport="true">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/frameLabels"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="10dp">
|
|
|
|
</LinearLayout>
|
|
</HorizontalScrollView>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/issueTimeFrame"
|
|
android:layout_below="@+id/labelsScrollView"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="10dp">
|
|
|
|
<TextView
|
|
android:id="@+id/issueCreatedTime"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="start"
|
|
android:text="@string/createdText"
|
|
android:visibility="gone"
|
|
android:textColor="?attr/hintColor"
|
|
android:textSize="12sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/issueModified"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?attr/hintColor"
|
|
android:layout_toEndOf="@+id/issueCreatedTime"
|
|
android:textSize="12sp"
|
|
android:visibility="gone"
|
|
android:text="@string/modifiedText" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/commentReactionBadges"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/issueTimeFrame"
|
|
android:visibility="gone"
|
|
android:layout_marginTop="10dp"
|
|
android:orientation="horizontal" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<View
|
|
android:layout_below="@id/mainIssueLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:id="@+id/divider"
|
|
android:visibility="gone"
|
|
android:background="?attr/dividerColor" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/divider">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recyclerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/primaryBackgroundColor"
|
|
android:paddingBottom="64dp"
|
|
android:clipToPadding="false"
|
|
android:scrollbars="vertical" />
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|