관리 메뉴

moozi

ActionBar Title 색상변경 본문

TIS_2017/응용sw_1기

ActionBar Title 색상변경

moozi 2017. 4. 25. 17:50

style.xml

 

<resources>

    <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
    </style>

    <style name="AppTheme" parent="AppBaseTheme">
        <item name="android:actionBarStyle">@style/MyActionBar</item>
    </style>

    <style name="MyActionBar" parent="android:Widget.Holo.Light.ActionBar.Solid.Inverse">
        <item name="android:background">#800000</item>
        <item name="android:titleTextStyle">@style/TitleColor</item>
    </style>

    <style name="TitleColor" parent="android:TextAppearance.Holo.Widget.ActionBar.Title">
        <item name="android:textColor">#000099</item>
    </style>
</resources>

 

 

 

또는

 

ActionBar actionbar = getSupportActionBar();
actionbar.setTitle(Html.fromHtml("<font color='#ff0000'>ActionBarTitle </font>"));

'TIS_2017 > 응용sw_1기' 카테고리의 다른 글

ckeditor활용하기  (0) 2017.04.26
네이밍룰  (0) 2017.04.26
전자정부프레임워크 관련 자료  (0) 2017.04.21
4/20 BoardExample01 Final  (0) 2017.04.21
4/21 boardExample01  (0) 2017.04.21
0 Comments
댓글쓰기 폼