라크루샤
15.08.13
조회 수 4459
추천 수 5
댓글 19

기존 젤리빵님의 추가방법과 제 갤포아에 포팅롬 올려놓은것과 비교하면서 구문을 추가한 방법입니다.
기본적인 추가방법은 유저 포럼의 젤리빵님 추가방법을 참고하시고 아래 코드들과 비교후 적용하시면 됩니다.
이글을 작성하는건 아래 어떤 게시물에서 CRDi님과 다른 한분이 오전/오후 글씨 크기를 작게 표시하고 싶으셔서 물어보셨을때 쪽지로만 알려주신다는 분이 계신거 같아서 그냥 제 갤포아의 구문과 비교해서 적용해보고 아래 스샷처럼 표시가 되길래 간단한 코드라 공유하고자 올리는 글입니다.



오전/오후 글씨를 작게 표시하실 경우




    <RelativeLayout android:id="@id/date_timeView" android:background="@drawable/ripple_drawable" android:focusable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip">
        <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:gravity="bottom" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="6.0dip" android:singleLine="true" android:layout_marginStart="@dimen/clock_expanded_margin_start" systemui:ampmSmall="true" />
        <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:id="@id/date_collapsed" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/notification_panel_header_date_margin_top" android:singleLine="true" android:layout_marginStart="@dimen/notification_panel_header_date_margin_left" android:layout_toEndOf="@id/clock" />
        <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:id="@id/date_expanded" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/notification_panel_header_date_expanded_margin_top" android:singleLine="true" android:layout_alignParentLeft="true" android:layout_marginStart="@dimen/clock_expanded_margin_start" systemui:datePattern="@string/abbrev_wday_month_day_no_year_alarm" />
    </RelativeLayout>

오전/오후 글씨가 크게 표시하실 경우




    <RelativeLayout android:id="@id/date_timeView" android:background="@drawable/ripple_drawable" android:focusable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip">
        <com.android.systemui.statusbar.policy.DateView android:textSize="0.0dip" android:id="@id/date_collapsed_only_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/notification_panel_header_date_margin_top_only_date" android:singleLine="true" android:layout_marginStart="@dimen/clock_expanded_margin_start" />
        <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:id="@id/date_collapsed" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/notification_panel_header_date_margin_top" android:singleLine="true" android:layout_marginStart="@dimen/notification_panel_header_date_margin_left" android:layout_toEndOf="@id/clock" />
        <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:id="@id/date_expanded" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/clock_expanded_margin_start" android:layout_marginTop="@dimen/notification_panel_header_date_expanded_margin_top" android:singleLine="true" android:layout_alignParentLeft="true" systemui:datePattern="@string/abbrev_wday_month_day_no_year_alarm" />
        <include android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/notification_panel_header_time_margin_top" android:layout_marginStart="@dimen/clock_expanded_margin_start" layout="@layout/split_clock_view" />
    </RelativeLayout>

Extra Form
첨부
KakaoTalk_20150813_223529955.png  [File Size:1.59MB/Download:1]
댓글을 남겨야 다운로드가 가능합니다. 감사의 댓글을 달고 오른쪽 확인버튼을 눌러주세요.
다운로드시 일주일에 한개 이상의 게시물 작성이 필요합니다. 지금 자유게시판에 회원님의 하루를 남겨보세요.
추천♡버튼을 잊지 마세요. 추천인과 회원님 모두 포인트가 적립됩니다.

라크루샤 님의 SIGNATURE

profile

테마 제작 초보입니다...요즘은 앱 포팅방법을 공부중입니다.

댓글 19
  • ?
    우오오와 감사해요 ㅠㅠㅠ 저를 위해 해주시다니 진짜 감사합니다 ㅠㅠ
  • profile
    도움이 되셨다면 다행이고요 ㅎㅎ;;
  • ?
    CRDi
    15.08.13
    라크루샤님 오전/오후 작게가 header.xml에 systemui:ampmSmall="true" /> 구문 추가하는거로 활성화 하는거죠?
  • ?
    엇 지금 쭉 봤는데 저거 statusbar expanded header 맞나요?
  • ?
    저도 지금 헤메는데 expanded 라고 하시더라고요 single 님이... 그리고 위치는 어디가 맞는지 아시나요?
  • ?
    CRDi
    15.08.13
    저도 잘 모릅니다. header에는 예전에 해봤는데 그대로더라구요
  • profile
    이글은 status_bar_expanded_header.xml 파일에서 해당 구문을 통째로 교체하시면 됩니다. 분명 명령어 자체는 CRDi님이 말씀하신 그대로가 맞지만...그냥 통째로 바꾸세요 ㅎㅎ 딱 RelativeLayout 시작과 끝 부분 전체를 전부 가져온거니까요 ㅎㅎ
  • ?
    CRDi
    15.08.13
    아하 감사합니다, 드디어 되겠네요. 역시 라크루샤님 제 이식에 너무 많은 도움을 주십니다 ㅎㅎ
  • profile
    CRDi님과 혜리남친힐님 두분...status_bar_expanded_header.xml 에서 바꾸시면 됩니다. 그리고 이 글은 기본적으로 젤리빵님의 퀵패널 시계 추가방법을 적용하신 상태에서 교체하시는걸 기준으로 구문을 복사해온 거에요.
  • profile
    네 맞습니다.
  • ?
    이제 잘 될것 같네요 relative layout 시작하는 부분부터 끝까지를 저거로 바꾼다는 말씀이시죠?
  • profile
    네 전체를 교체하시면 됩니다 ㅎㅎ
  • ?
    라크루샤님 제가 지금 제꺼 순정 갤포아 싯유에 relative layout 마지막에 systemui:ampmSmall:"true" /를 넣고 컴파일을 했는데 그대로네요... 어떡하나요 저는 젤리빵님 퀵패널 시계추가를 쓰지 않아서 라크루샤님의 갤포아랑 살짝 구문이 달라요
  • ?
    ZELTA
    15.08.14
    저도 시계를 넣고싶은데 이런거에 초보라서 그러는데 저구문을 feature 에 복붙하면 되는건가요? 그리고 다른글에 안겹치게 아무데나 복붙하면 되죠?
  • ?
    지금은 상단바 수정이라 features.xml과는 관계가 없습니다..
  • profile
    저는 노트4에 적용한 겁니다. 일단 젤리빵님이 작성하신 강좌와 혜리님 기기의 스크립트를 비교해보시고 그 구문들을 일단 젤리빵님이 올리신 구문들과 비교하셔서 교체해보세요.
  • ?
    CRDi
    15.08.16
    성공하셨나요?
  • ?
    CRDi
    15.08.17
    header.xml에 "@style/TextAppearance.StatusBar.Expanded.Clock" 이 구문 자체가 없어도 Relative layout 부분 안의 내용 그대로 붙여넣기 해도 작동 될까요?
  • ?
    실패네요..
댓글 쓰기 권한이 없습니다.
정렬 목록 검색 쓰기
등록된 글이 없습니다.
1 - 2