adding content descriptions to some views
This commit is contained in:
parent
c402a68100
commit
72dc83ba1c
|
@ -408,6 +408,7 @@ fun Context.addDayEvents(day: DayMonthly, linearLayout: LinearLayout, res: Resou
|
||||||
text = it.title.replace(" ", "\u00A0") // allow word break by char
|
text = it.title.replace(" ", "\u00A0") // allow word break by char
|
||||||
background = backgroundDrawable
|
background = backgroundDrawable
|
||||||
layoutParams = eventLayoutParams
|
layoutParams = eventLayoutParams
|
||||||
|
contentDescription = it.title
|
||||||
linearLayout.addView(this)
|
linearLayout.addView(this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,7 @@ class DayFragment : Fragment() {
|
||||||
val day = Formatter.getDayTitle(context!!, mDayCode)
|
val day = Formatter.getDayTitle(context!!, mDayCode)
|
||||||
mHolder.top_value.apply {
|
mHolder.top_value.apply {
|
||||||
text = day
|
text = day
|
||||||
|
contentDescription = text
|
||||||
setOnClickListener { pickDay() }
|
setOnClickListener { pickDay() }
|
||||||
setTextColor(context.config.textColor)
|
setTextColor(context.config.textColor)
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,6 +100,7 @@ class MonthFragment : Fragment(), MonthlyCalendar {
|
||||||
activity?.runOnUiThread {
|
activity?.runOnUiThread {
|
||||||
mHolder.top_value.apply {
|
mHolder.top_value.apply {
|
||||||
text = month
|
text = month
|
||||||
|
contentDescription = text
|
||||||
setTextColor(mConfig.textColor)
|
setTextColor(mConfig.textColor)
|
||||||
}
|
}
|
||||||
updateDays(days)
|
updateDays(days)
|
||||||
|
|
|
@ -322,6 +322,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
||||||
background = ColorDrawable(backgroundColor)
|
background = ColorDrawable(backgroundColor)
|
||||||
setTextColor(textColor)
|
setTextColor(textColor)
|
||||||
text = event.title
|
text = event.title
|
||||||
|
contentDescription = text
|
||||||
layout.addView(this)
|
layout.addView(this)
|
||||||
y = startMinutes * minuteHeight
|
y = startMinutes * minuteHeight
|
||||||
(layoutParams as RelativeLayout.LayoutParams).apply {
|
(layoutParams as RelativeLayout.LayoutParams).apply {
|
||||||
|
@ -406,6 +407,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
||||||
|
|
||||||
setTextColor(textColor)
|
setTextColor(textColor)
|
||||||
text = event.title
|
text = event.title
|
||||||
|
contentDescription = text
|
||||||
|
|
||||||
val startDateTime = Formatter.getDateTimeFromTS(event.startTS)
|
val startDateTime = Formatter.getDateTimeFromTS(event.startTS)
|
||||||
val endDateTime = Formatter.getDateTimeFromTS(event.endTS)
|
val endDateTime = Formatter.getDateTimeFromTS(event.endTS)
|
||||||
|
|
Loading…
Reference in New Issue