안녕하세요. Dainty™입니다.
이번 게시물은 갤투 디제스터롬의 퀵패널 헤더부분에 날짜색상을 변경하는 위치에 대해 알려드리겠습니다.
사실 퀵패널 헤더에 있는 날짜색상은 res-layout-tw_status_bar_expanded_header.xml에서
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginTop="3.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
빨간색 부분을 수정하시면 되는데요 디제스터는 저걸 수정해도 바뀌지 않더군요...
그래서 res-values-styles.xml에서
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:textAllCaps">true</item>
</style>
이 부분을 수정해봤지만 역시나 바뀌지 않았습니다.
그러던 중 제 눈에 values-sw320dp 이 폴더가 들어옵니다.
혹시나 했던 저는 폴더를 열어봤더니 역시나 styles.xml한개가 더 있더군요...
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:textAllCaps">true</item>
</style>
심지어 위에 구문들밖에 없는....
저 빨간색 부분을 수정해서 컴파일하고 적용하니 밑에 사진처럼 적용됐네요.(설정버튼은 어디로 사라졌는가!!)
이 부분 수정하시려는 분들이 보여서 강좌를 써봤습니다.
디제스터 퀵패널 헤더 날짜색상수정은 res-values-sw320dp-styles.xml이라는것을 기억해주세요^^