title: DropDownTextView Android change color
body: <p>I using <a href="https://github.com/hakobast/DropdownTextView" rel="nofollow noreferrer">https://github.com/hakobast/DropdownTextView</a> in version 0.1.1
  version 0.3.1 is not suitable for me.
  I'm wondering if it any chance to change the frame colour when I click DropdownTextView.
  The second thing is how can I move the DropdownTextView title to the centre?
  As you can see I have all gravity in centre mode and nothing happens.</p>
  <p>My code:</p>
  <p><strong>MainActivity.kt</strong></p>
  <pre><code>package com.example.myapplication
  
  import android.content.Context
  import android.os.Build
  import android.os.Bundle
  import android.view.*
  import android.widget.*
  import androidx.annotation.RequiresApi
  import androidx.appcompat.app.AppCompatActivity
  import com.google.gson.Gson
  import hakobastvatsatryan.DropdownTextView
  
  
  class MainActivity : AppCompatActivity()
  {
      @RequiresApi(Build.VERSION_CODES.O)
      override fun onCreate(savedInstanceState: Bundle?)
      {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
  
          var zwrotkaString = &quot;&quot;&quot;{
  
  }&quot;&quot;&quot;
          var stat:Statistic = Gson().fromJson(zwrotkaString, Statistic::class.java)
  
          val d = findViewById&lt;ListView&gt;(R.id.first_dropdown_text_view_list)
  
          d.adapter = MyCustomAdapter(this@MainActivity, stat);
      }
  
      private class MyCustomAdapter(context: Context, stat: Statistic): BaseAdapter()
      {
          val statS:Statistic
  
          private val mContext: Context
          init
          {
              mContext = context
          }
  
          init
          {
              statS = stat
          }
  
          override fun getCount(): Int {
              return statS.statisticsForGroups.size;
          }
  
          override fun getItem(position: Int): Any
          {
              return statS.statisticsForGroups[position];
          }
  
          override fun getItemId(position: Int): Long
          {
              return position.toLong();
          }
  
          override fun getView(position: Int, convertView: View?, parent: ViewGroup?): View
          {
              val layoutInflater = LayoutInflater.from(mContext);
              val rowMain = layoutInflater.inflate(R.layout.rowlistviewstatistic, parent, false)
              val statDropDownText = rowMain.findViewById&lt;DropdownTextView&gt;(R.id.dropdowntextrow)
              
                  statDropDownText.setTitleText(&quot;Title&quot;)
                  statDropDownText.setContentText(&quot;Content&quot;)
  
                  return rowMain
  
          }
      }
  }
  </code></pre>
  <p><strong>activity_main.xml</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;LinearLayout
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:id=&quot;@+id/drawer_layout&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:fitsSystemWindows=&quot;true&quot;
      tools:context=&quot;.MainActivity&quot;
      tools:openDrawer=&quot;start&quot;
      android:layout_gravity=&quot;center&quot;
      android:gravity=&quot;center&quot;
      &gt;
  
  
      &lt;ListView
          android:id=&quot;@+id/first_dropdown_text_view_list&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:divider=&quot;@android:color/transparent&quot;
          android:dividerHeight=&quot;20sp&quot;
          android:scrollbarStyle=&quot;insideInset&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintHorizontal_bias=&quot;0.0&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toBottomOf=&quot;@+id/textViewMain&quot;
          app:layout_constraintVertical_bias=&quot;0.403&quot;
          tools:ignore=&quot;MissingConstraints&quot;
          android:layout_gravity=&quot;center&quot;
  
          /&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  <p><strong>rowlistviewstatistic.xml</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      android:gravity=&quot;center&quot;
      android:layout_gravity=&quot;center&quot;
      android:orientation=&quot;vertical&quot;
      &gt;
  
      &lt;TextView
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;match_parent&quot;
          android:text=&quot;qweqdasdasdasdadaq aa fadfeaeef&quot;
          /&gt;
  
      &lt;hakobastvatsatryan.DropdownTextView
          android:id=&quot;@+id/dropdowntextrow&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          app:content_text_color=&quot;@color/purple_500&quot;
          app:arrow_drawable=&quot;@drawable/ic_arrow&quot;
          app:title_text_color=&quot;@color/colorRed&quot;
          android:layout_gravity=&quot;center&quot;
          android:gravity=&quot;center&quot;
          app:title_text_size=&quot;30sp&quot;
          app:bg_drawable_expanded=&quot;@drawable/answer_drawable&quot;
          android:clickable=&quot;true&quot;
          android:focusable=&quot;true&quot;
          /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  <p><strong>answer_drawable.xml</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;shape xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:shape=&quot;rectangle&quot;&gt;
      &lt;stroke
          android:width=&quot;1dp&quot;
          android:color=&quot;@color/answer_border&quot; /&gt;
      &lt;corners android:radius=&quot;5dp&quot; /&gt;
  &lt;/shape&gt;
  </code></pre>