show the widget resolution under the title

This commit is contained in:
tibbi
2022-09-16 10:20:32 +02:00
parent 08de22c3c9
commit 3e79d22fbb
2 changed files with 19 additions and 1 deletions

View File

@ -81,6 +81,11 @@ class WidgetsAdapter(
setTextColor(textColor)
}
widgetPreview.widget_size.apply {
text = "${widget.widthTiles} x ${widget.heightTiles}"
setTextColor(textColor)
}
(widgetPreview.widget_image.layoutParams as RelativeLayout.LayoutParams).apply {
marginStart = activity.resources.getDimension(R.dimen.activity_margin).toInt()
marginEnd = endMargin