Answers for "setting toolbar android kotlin"

3

toolbar in fragment android kotlin

((ActionBarActivity)getActivity()).setSupportActionBar(mToolbar);
if you are using AppCompatActivity 
 ((AppCompatActivity)getActivity()).setSupportActionBar(mToolbar);
Posted by: Guest on September-03-2021
0

kotlin custom toolbar

<resources>
    <!-- Base application theme. -->
    <!-- 변경된 소스 -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
    </style>
</resources>
Posted by: Guest on June-13-2021

Browse Popular Code Answers by Language