title: Logcat error when dynamically add custom views to RelativeLayout
body: <p>I'm receiving such error in logcat when adding custom TextViews to RelativeLayout:</p>
  <blockquote>
  <p>&quot;E/ThemeUtils: View class
  TableCircleCustomView is
  an AppCompat widget that can only be used with a Theme.AppCompat theme
  (or descendant).&quot;</p>
  </blockquote>
  <p>My app theme is &quot;Theme.AppCompat.Light.NoActionBar&quot;</p>
  <p>Here is my custom view class:</p>
  <pre><code>class TableCircleCustomView @JvmOverloads constructor(
      context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
  ) : AppCompatTextView(context, attrs, defStyleAttr) {
      ....
  }
  </code></pre>
  <p>Then in Fragment i'm adding this object to RelativeLayout like so</p>
  <pre><code>val viewItem = TableCircleCustomView(context)     
  with(RelativeLayout.LayoutParams(objectWidth, objectHeight)) {
    leftMargin = objectPosX
    topMargin = objectPosY
      
    binding.restaurantMap.addView(viewItem, this);
  }
  </code></pre>
  <p>It's clear that i should set theme for some element, but i have no idea for which.
  Can somebody help?</p>