///build.gradle(Module:app)> add next line.
compile 'com.beardedhen:androidbootstrap:2.3.0'
///MainActivity
package jp.co.wata.myapplication;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.beardedhen.androidbootstrap.TypefaceProvider;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TypefaceProvider.registerDefaultIconSets();
setContentView(R.layout.activity_main);
}
}
///activity_main
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.beardedhen.androidbootstrap.BootstrapButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="BootstrapButton"
app:bootstrapBrand="success"
app:bootstrapSize="lg"
app:buttonMode="regular"
app:showOutline="false"
app:roundedCorners="true"
tools:layout_editor_absoluteY="41dp"
tools:layout_editor_absoluteX="89dp" />
</LinearLayout>