title: How to change the shape of Chips component in android?
body: <p>When I added <code>ChipGroup</code> and Chips to XML, first it gave me rendering issue which caused activity crash.
  I solved it by changing the support library version in the gradle.app from <code>implementation 'com.google.android.material:material:1.2.0-alpha05'</code> to alpha02 &amp; changed AppTheme to <code>&quot;Theme.MaterialComponents.Light.DarkActionBar&quot;</code>.</p>
  <p>**Now the issue is that in the design section of androidStudio shape of the chip is default i.e. rounded but on emulator &amp; actual device it is diamond shaped.
  I tried the <code>app:chipCornerRadius=&quot;5dp&quot;</code> property but it did not gave the desired result.</p>
  <p>How to change the shape of the chip to rounded/default?**</p>
  <pre><code>&lt;androidx.constraintlayout.widget.ConstraintLayout 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:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      tools:context=&quot;.ui.our_team.OurTeamActivity&quot;&gt;
  
      &lt;HorizontalScrollView
          android:id=&quot;@+id/horizontalScrollView&quot;
          android:layout_width=&quot;0dp&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:scrollbars=&quot;none&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot;&gt;
  
          &lt;com.google.android.material.chip.ChipGroup
              android:id=&quot;@+id/chipGroup&quot;
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_marginTop=&quot;36dp&quot;
              app:singleLine=&quot;true&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_toTopOf=&quot;parent&quot;&gt;
  
  
              &lt;com.google.android.material.chip.Chip
                  android:id=&quot;@+id/chip4&quot;
                  style=&quot;@style/Widget.MaterialComponents.Chip.Choice&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  app:chipCornerRadius=&quot;5dp&quot;
                  android:layout_marginStart=&quot;5dp&quot;
                  android:layout_marginEnd=&quot;5dp&quot;
                  android:text=&quot;One Choice&quot;
                  android:textAppearance=&quot;@style/TextAppearance.AppCompat.Caption&quot; /&gt;
  
              &lt;com.google.android.material.chip.Chip
                  android:id=&quot;@+id/chip5&quot;
                  style=&quot;@style/Widget.MaterialComponents.Chip.Action&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_marginStart=&quot;5dp&quot;
                  android:layout_marginEnd=&quot;5dp&quot;
                  android:text=&quot;Two Action&quot;
                  android:textAppearance=&quot;@style/TextAppearance.AppCompat.Caption&quot; /&gt;
  
              &lt;com.google.android.material.chip.Chip
                  android:id=&quot;@+id/chip6&quot;
                  style=&quot;@style/Widget.MaterialComponents.Chip.Entry&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_marginStart=&quot;5dp&quot;
                  android:layout_marginEnd=&quot;5dp&quot;
                  android:text=&quot;Three Entry&quot;
                  android:textAppearance=&quot;@style/TextAppearance.AppCompat.Caption&quot; /&gt;
  
              &lt;com.google.android.material.chip.Chip
                  android:id=&quot;@+id/chip7&quot;
                  style=&quot;@style/Widget.MaterialComponents.Chip.Filter&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_marginStart=&quot;5dp&quot;
                  android:layout_marginEnd=&quot;5dp&quot;
                  android:text=&quot;Four Filter&quot;
                  android:textAppearance=&quot;@style/TextAppearance.AppCompat.Caption&quot; /&gt;
          &lt;/com.google.android.material.chip.ChipGroup&gt;
  
      &lt;/HorizontalScrollView&gt;
  
  </code></pre>