『Nexus™』
13.10.10
조회 수 5479
추천 수 5
댓글 12

안녕하세요 저는 넥서스입니다. 요즘 밝기 슬라이더를 어떻게하면 줄일까..? 하고 프웤,싯유를 뜯어봐도 답이 나오지 않아 맛클에 2번씩이나 질문글을 올렸었죠... 하지만 아는분은 보이지도 않고.....; 저 혼자 머리를 쓰다가 그냥 잔머리 식으로 해봤습니다.

자 이제 시작합니다.

 

1.SystemUI.apk를 디컴파일 해줍시다.

 

2. SystemUI/res/layout/tw_status_bar_toggle_slider.xml을 메모장이나 노트패드 등으로 열어줍시다.

   그러면

 

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <LinearLayout android:orientation="horizontal" android:id="@id/auto_brightness_group" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true">
 <CheckBox android:id="@id/toggle" android:clickable="false" android:layout_width="30.0dip" android:layout_height="fill_parent" android:layout_centerVertical="true" android:contentDescription="@string/status_bar_settings_auto_brightness_label" />
        <TextView android:textSize="15.0dip" android:textColor="#ffd7d7d7" android:gravity="center" android:id="@id/label" android:layout_width="46.0dip" android:layout_height="fill_parent" android:layout_marginLeft="0.0dip" android:layout_marginRight="2.0dip" android:singleLine="false" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
    </LinearLayout>
    <SeekBar android:id="@id/slider" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toLeftOf="@id/auto_brightness_group" android:layout_alignParentLeft="true" android:layout_centerVertical="true" />
</RelativeLayout>

이런 식으로 되어 있을텐데 여기에 텍스트 뷰어만 넣어주시면 끝납니다.! 쉽죠~? 어떤 구문을 추가하냐면

TextView android:textSize="15.0dip" android:textColor="#00000000" android:gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="+10" />

#00000000은 투명색 +10은 글짜 채우기 위한 용도....(저는 2글자~3글자 추천드립니다. 보기 좋습니다.)

 

이 구문을  <CheckBox android:id="@id/toggle" android:clickable="false" android:layout_width="30.0dip" android:layout_height="fill_parent" android:layout_centerVertical="true" 위에 추가 해 주세요

 

이러고 컴파일한 후 system/app에 644퍼미션 후 재부팅 하시면 끝입니다.

적용 샷:http://www.matcl.com/?m=bbs&bid=usermoim&uid=200345 

댓글 12
댓글 쓰기 권한이 없습니다.
강좌 정렬 목록 검색 쓰기
등록된 글이 없습니다.
1 -