Student info and Teachers screens unification (#1279)

This commit is contained in:
Damian Czupryn 2021-04-12 21:58:58 +02:00 committed by GitHub
parent 13ccfda009
commit b453225941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 30 deletions

View File

@ -11,14 +11,14 @@
<TextView
android:id="@+id/student_info_item_title"
android:layout_width="match_parent"
android:layout_height="28dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="5dp"
android:layout_marginTop="13dp"
android:layout_marginEnd="16dp"
android:gravity="bottom"
android:maxLines="1"
android:textColor="?android:textColorPrimary"
android:textSize="16sp"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
@ -27,15 +27,16 @@
<TextView
android:id="@+id/student_info_item_subtitle"
android:layout_width="match_parent"
android:layout_height="18dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:gravity="bottom"
android:maxLines="1"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
android:textColor="?android:textColorPrimary"
android:textSize="16sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/student_info_item_title"
tools:text="@tools:sample/lorem/random" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -12,14 +12,31 @@
tools:context=".ui.modules.schoolandteachers.teacher.TeacherAdapter">
<TextView
android:id="@+id/teacherItemName"
android:id="@+id/teacherItemSubject"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginStart="10dp"
android:ellipsize="end"
android:maxLines="1"
android:textSize="17sp"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
tools:text="11:11-12:00" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_below="@+id/teacherItemSubject"
android:layout_marginStart="10dp">
<TextView
android:id="@+id/teacherItemName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textSize="16sp"
tools:text="@tools:sample/full_names" />
<TextView
@ -28,21 +45,11 @@
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="40dp"
android:layout_toEndOf="@+id/teacherItemName"
android:maxLines="1"
android:textColor="?android:textColorSecondary"
android:textSize="17sp"
android:textSize="16sp"
tools:text="[LI]" />
<TextView
android:id="@+id/teacherItemSubject"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/teacherItemName"
android:layout_alignStart="@id/teacherItemName"
android:maxLines="1"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
tools:text="11:11-12:00" />
</LinearLayout>
</RelativeLayout>