.

Hướng dẫn add Scroll TextView lên StatusBarExpanded



1.Decom SystemUI
2.Mở SystemUI-src/res/layouts/status_bar_expanded.xml (gemini_stt3_expanded.xml/tw_stt3_expanded.xml/asus_stt3_expanded.xml... tùy máy nhé) tìm code này

   <ScrollView android:id="@id/scroll" ...>

và đặt code này ngay trên nó :

    <TextView android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="center" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingLeft="70.0dip" android:paddingRight="70.0dip" android:layout_marginTop="2.0dip" android:text="@string/kotext_cocanh" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" />

3.Mở SystemUI-src/res/values/strings.xml thêm code này xuống dưới cùng

    <string name="kotext_cocanh">Shit</string>

  Thay Shit bằng dòng chữ bạn muốn

4.Recom SystemUI-src
  Chép đè Meta-inf và AndroidManifest từ SystemUI.apk sang SystemUI-src.apk
  Đổi tên SystemUI-src.apk thành SystemUI.apk, đưa vào system, set 644, đưa vào app, reboot


  Lưu ý : Dòng chữ trong <string name="kotext_cocanh"> ...</string> nếu ngắn quá thì sẽ không cuộn ngang, mà nó sẽ nằm yên
...
 * share từ Trần Đức Tịnh *