Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ANDROID
- ===================================================================================================================================
- setSupportActionBar(tbDocumento);
- ActionBar actBar = getSupportActionBar();
- if (actBar != null) {
- actBar.setDisplayHomeAsUpEnabled(true);
- actBar.setIcon(R.drawable.ic_shopping_cart);
- actBar.setHomeAsUpIndicator(R.drawable.ic_arrow_back);
- actBar.setTitle("Editar Documento");
- actBar.setDisplayShowTitleEnabled(true);
- }
- ==================================================================================================================================
- xml
- ==================================================================================================================================
- <android.support.v7.widget.Toolbar
- android:id="@+id/tbDocumento"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/color_primary"
- app:titleMarginStart="@dimen/margin_large"
- style="@style/TitleStyle"
- app:titleTextColor="@color/color_white"/>
Add Comment
Please, Sign In to add comment