Skip to content

Instantly share code, notes, and snippets.

@AmaldevTA
Created September 23, 2020 04:43
Show Gist options
  • Save AmaldevTA/f70ac358a50142baa45db6ab91533e5b to your computer and use it in GitHub Desktop.
Save AmaldevTA/f70ac358a50142baa45db6ab91533e5b to your computer and use it in GitHub Desktop.
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0-alpha02'
<style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar"/>
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/buttonTwo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="BUTTON 2"
android:textColor="#FFFFFF"
app:backgroundTint="#6200EE" />
<com.google.android.material.button.MaterialButton
android:id="@+id/buttonOne"
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="BUTTON 1"
android:textColor="#FFFFFF"
app:backgroundTint="#6200EE" />
<com.google.android.material.button.MaterialButton
android:id="@+id/buttonThree"
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="BUTTON 3"
android:textColor="#6200EE"
app:backgroundTint="#00FFFFFF"
app:cornerRadius="0dp"
app:rippleColor="#616161"
app:strokeColor="#6200EE"
app:strokeWidth="2dp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/buttonFour"
style="@style/Widget.MaterialComponents.Button.UnelevatedButton.Icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:insetLeft="0dp"
android:insetTop="0dp"
android:insetRight="0dp"
android:insetBottom="0dp"
android:padding="10dp"
android:text="Button 4"
app:backgroundTint="#9EA1BC"
app:cornerRadius="10dp"
app:icon="@android:drawable/ic_dialog_info"
app:iconGravity="textStart"
app:iconPadding="10dp"
app:iconTint="#FFFFFF" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment