title: Trying to add "-" minus & "+" plus buttons next to the TextView but it automatically puts it below the TextView?
body: <p>This is the code that I have written so far for each card that I am doing for a carousel. Also, not sure whether to use ImageButton or Button as I am trying to do a '-'/'+' button for users to press on.</p>
  <pre><code>&lt;androidx.appcompat.widget.LinearLayoutCompat xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
          android:gravity=&quot;center&quot;
          android:orientation=&quot;vertical&quot;&gt;
      
          &lt;androidx.cardview.widget.CardView
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_margin=&quot;10dp&quot;
              app:cardCornerRadius=&quot;22dp&quot;&gt;
      
      
              &lt;LinearLayout
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:orientation=&quot;vertical&quot;&gt;
      &lt;!-- ImageView for images placed above the text--&gt;
                  &lt;ImageView
                      android:id=&quot;@+id/imageIv&quot;
                      android:layout_width=&quot;match_parent&quot;
                      android:layout_height=&quot;150dp&quot;
                      android:scaleType=&quot;centerCrop&quot; /&gt;
      &lt;!-- TextView is right below the image--&gt;
                  &lt;TextView
                      android:id=&quot;@+id/flavorTv&quot;
                      android:layout_width=&quot;match_parent&quot;
                      android:layout_height=&quot;wrap_content&quot;
                      android:padding=&quot;8dp&quot;
                      android:text=&quot;Flavor 1&quot;
                      android:textSize=&quot;15sp&quot; /&gt;
      &lt;!-- Trying to place the button on the same row as the TextView--&gt;
                  &lt;ImageButton
                      android:layout_width=&quot;20dp&quot;
                      android:layout_height=&quot;20dp&quot;/&gt;
  
              &lt;/LinearLayout&gt;
      
      
          &lt;/androidx.cardview.widget.CardView&gt;
      
      &lt;/androidx.appcompat.widget.LinearLayoutCompat&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/tqOGE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tqOGE.png" alt="" /></a></p>