mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2023-12-13 20:50:18 +01:00
9d3cd49d23
clean up Another round of ui improvements and some refactors Minor improvements. Hide user accounts frame while list is loading Remove unnecessary attribute Minor improvements. Define avatar size in lists globally. Improvemnts to some ui elements Improve layout of organizations and repositories. Update the UI across most of the screens Refactor org UI clean up repo layout Add archived msg instead of label Redesign repos UI Move archived to repo detail screen Co-authored-by: M M Arif <mmarif@swatian.com> Co-authored-by: opyale <opyale@noreply.codeberg.org> Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/894 Reviewed-by: opyale <opyale@noreply.codeberg.org> Co-Authored-By: M M Arif <mmarif@noreply.codeberg.org> Co-Committed-By: M M Arif <mmarif@noreply.codeberg.org>
132 lines
4.7 KiB
XML
132 lines
4.7 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="?android:attr/selectableItemBackground"
|
|
android:focusable="true"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<CheckBox
|
|
android:id="@+id/repoIsAdmin"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:buttonTint="#FFFFFF"
|
|
android:checked="false"
|
|
android:visibility="gone" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/orgInfoFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
tools:ignore="UseCompoundDrawables">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageAvatar"
|
|
android:layout_width="@dimen/list_avatar_size"
|
|
android:layout_height="@dimen/list_avatar_size"
|
|
android:layout_marginStart="0dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:contentDescription="@string/repoContentAvatar"
|
|
android:src="@drawable/ic_android" />
|
|
|
|
<TextView
|
|
android:id="@+id/orgName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="14sp"
|
|
tools:text="@string/orgName" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/repoName"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/repoName"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/repoDescription"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="15sp"
|
|
android:text="@string/noDataDescription" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/repoInfoFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/repoLastUpdated"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?attr/hintColor"
|
|
android:textSize="13sp"
|
|
tools:text="@string/lastUpdatedAt" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/repoInfoStarsFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
android:gravity="center_vertical|end"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="5dp"
|
|
android:paddingRight="5dp">
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:layout_marginStart="3dp"
|
|
android:layout_marginEnd="5dp"
|
|
android:contentDescription="@string/generalImgContentText"
|
|
app:srcCompat="@drawable/ic_star"
|
|
app:tint="?attr/iconsColor" />
|
|
|
|
<TextView
|
|
android:id="@+id/repoStars"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="14sp"
|
|
tools:text="@string/repoStars" />
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="5dp"
|
|
android:contentDescription="@string/generalImgContentText"
|
|
android:visibility="gone"
|
|
app:srcCompat="@drawable/ic_star"
|
|
app:tint="?attr/iconsColor" />
|
|
|
|
<TextView
|
|
android:id="@+id/repoStars2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="14sp"
|
|
android:visibility="gone"
|
|
tools:text="Java" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|