G
G
Grigory Kalyashov2015-11-02 20:02:31
Java
Grigory Kalyashov, 2015-11-02 20:02:31

How to get and manage toolbar from Fragment?

Fragment should contain toolbar, tabview and viewpager.
toolbar from the android.support.v7.widget.Toolbar library.
The Activity in which the fragment is loaded contains only a FrameLayout.
Can you tell me how to get the toolbar correctly and set it up in the fragment class?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Copperfield, 2015-11-02
@Copperfield

getActivity() . getActionBar() ;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question