Skip to content

Instantly share code, notes, and snippets.

@naijab
Created March 4, 2017 06:20
Show Gist options
  • Save naijab/da71adc5974b86a50ace96d234fe07af to your computer and use it in GitHub Desktop.
Save naijab/da71adc5974b86a50ace96d234fe07af to your computer and use it in GitHub Desktop.
ลองเล่น ButtomBar Lib Android: activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.naijab.buttombarlibtest.MainActivity">
<com.roughike.bottombar.BottomBar
android:id="@+id/bottomBar"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_gravity="bottom"
android:layout_alignParentBottom="true"
app:bb_tabXmlResource="@xml/buttom_menu"
app:bb_inActiveTabAlpha="0.7"
app:bb_activeTabAlpha="1"
app:bb_inActiveTabColor="#d9d9d9"
app:bb_activeTabColor="@color/colorWhite" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment