forked from github/szkolny
[UI/Grades] Change some fonts.
This commit is contained in:
parent
054a233ad6
commit
70c307b796
@ -6,7 +6,6 @@ package pl.szczodrzynski.edziennik.ui.modules.grades
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import android.graphics.Typeface
|
||||
import android.text.TextUtils
|
||||
import android.util.AttributeSet
|
||||
import android.util.TypedValue.COMPLEX_UNIT_SP
|
||||
@ -83,7 +82,7 @@ class GradeView : AppCompatTextView {
|
||||
0x99ffffff.toInt()
|
||||
})
|
||||
|
||||
typeface = Typeface.create("serif-monospace", Typeface.BOLD)
|
||||
//typeface = Typeface.create("sans-serif-light", Typeface.NORMAL)
|
||||
setBackgroundResource(when (grade.type) {
|
||||
TYPE_SEMESTER1_PROPOSED,
|
||||
TYPE_SEMESTER2_PROPOSED,
|
||||
@ -104,7 +103,7 @@ class GradeView : AppCompatTextView {
|
||||
setPadding(2.dp, 2.dp, 2.dp, 2.dp)
|
||||
}
|
||||
else {
|
||||
setTextSize(COMPLEX_UNIT_SP, 16f)
|
||||
setTextSize(COMPLEX_UNIT_SP, 14f)
|
||||
setPadding(5.dp, 0, 5.dp, 0)
|
||||
layoutParams = LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT).apply {
|
||||
setMargins(0, 0, 5.dp, 0)
|
||||
|
@ -81,6 +81,7 @@
|
||||
android:ellipsize="end"
|
||||
android:maxWidth="200dp"
|
||||
android:maxLines="1"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
tools:text="Kartkówki - K1 123456789 12345678" />
|
||||
|
||||
<TextView
|
||||
|
@ -29,7 +29,7 @@
|
||||
android:layout_margin="8dp"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:fontFamily="sans-serif"
|
||||
android:maxLines="2"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
android:textSize="20sp"
|
||||
|
Loading…
Reference in New Issue
Block a user