<RelativeLayout
android:layout_width="match_parent"
android:layout_height="100dp" >
<com.srain.views.DotView
android:id="@+id/dot_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
srain_dotview:dot_radius="3dp"
srain_dotview:dot_selected_color="0xFF377BEE"
srain_dotview:dot_span="18dp"
srain_dotview:dot_unselected_color="0xFFC5CEDB" >
</com.srain.views.DotView>
</RelativeLayout>
Please visit the project home page for more information: http://liaohuqiu.github.io/android-dotview