119 lines
5.4 KiB
XML
119 lines
5.4 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:paddingTop="@dimen/dimen4dp"
|
|
android:paddingBottom="@dimen/dimen4dp"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="?attr/materialCardViewElevatedStyle"
|
|
app:cardElevation="@dimen/dimen0dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linearLayoutFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
android:background="?attr/materialCardBackgroundColor"
|
|
android:padding="@dimen/dimen12dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/commitSubject"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dimen8dp"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen18sp"
|
|
tools:text="This is a test"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dimen6dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
tools:ignore="UseCompoundDrawables">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/commitAuthorAvatarFrame"
|
|
android:layout_width="@dimen/dimen24dp"
|
|
android:layout_height="@dimen/dimen24dp"
|
|
style="?attr/materialCardViewElevatedStyle"
|
|
app:cardElevation="@dimen/dimen0dp"
|
|
android:layout_marginEnd="@dimen/dimen6dp"
|
|
app:cardCornerRadius="@dimen/dimen12dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/commitAuthorAvatar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:contentDescription="@string/generalImgContentText"
|
|
tools:srcCompat="@tools:sample/avatars" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/commitCommitterAvatarFrame"
|
|
android:layout_width="@dimen/dimen24dp"
|
|
android:layout_height="@dimen/dimen24dp"
|
|
style="?attr/materialCardViewElevatedStyle"
|
|
app:cardElevation="@dimen/dimen0dp"
|
|
android:layout_marginEnd="@dimen/dimen6dp"
|
|
app:cardCornerRadius="@dimen/dimen12dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/commitCommitterAvatar"
|
|
android:layout_width="@dimen/dimen24dp"
|
|
android:layout_height="@dimen/dimen24dp"
|
|
android:layout_marginEnd="5dp"
|
|
android:contentDescription="@string/generalImgContentText"
|
|
tools:srcCompat="@tools:sample/avatars" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<TextView
|
|
android:id="@+id/commitAuthorAndCommitter"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/dimen10dp"
|
|
android:textSize="@dimen/dimen12sp"
|
|
android:textColor="?attr/primaryTextColor"
|
|
tools:text="opyale authored and opyale committed"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/commitSha"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:layout_marginStart="@dimen/dimen10dp"
|
|
android:alpha=".8"
|
|
android:drawablePadding="@dimen/dimen10dp"
|
|
android:gravity="center_vertical"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen12sp"
|
|
app:drawableLeftCompat="@drawable/ic_commit"
|
|
tools:text="357f3qd5s"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
</LinearLayout>
|