Open Xy-joe opened 7 years ago
Just a question, for the tabs array you're using what value are you using, are you using the resource Id for each or the tab position.
yes I'm. The id correspond to the one in the XML resource file.
On Mar 15, 2017 11:55 AM, "malodita" notifications@github.com wrote:
Just a question, for the tabs array you're using what value are you using, are you using the resource Id for each or the tab position.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/roughike/BottomBar/issues/681#issuecomment-286707797, or mute the thread https://github.com/notifications/unsubscribe-auth/AMQJGodvjPqM-6DFkQ-vKWaeGJpg4BDaks5rl8OFgaJpZM4MaDBx .
I have about 5 different icons(tabs) on my bottom bar. On clicking, they only change colors which i decleared in the xml file but when i try to load a fragment on the different icon(tabs), nothing works. Why is this ? Besides her's my code XML ` <com.roughike.bottombar.BottomBar android:id="@+id/bottomBar" android:layout_width="match_parent" android:layout_height="60dp" android:layout_alignParentBottom="true" app:bb_tabXmlResource="@xml/xml" app:bb_activeTabColor="@color/colorAccent" app:bb_inActiveTabAlpha="0.6"
and here's the xmlresours for the tab `
`
My Activity for implementing this is this
` protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_home_screen); setToolbar(); mbottombar = (BottomBar) findViewById(R.id.bottomBar); mbottombar.onSaveInstanceState();