Thứ Ba, 21 tháng 8, 2018

Tut Mod Nhảy Hiphop 2 Bên Đồng Hồ

Tut Mod Nhảy Hiphop 2 Bên Đồng Hồ


2 file layout là hiphop và hiphop2 đều dùng chung 149 ảnh để tạo nên anim nên nếu bạn ko dùng đến 2  thằng nhảy hiphop 2 bên đhồ analog thì chỉ cần copy 1 file hiphop.xml hoặc hiphop2.xml vào res/layout
sau đây là các bước thực hiện (ví dụ như trong ảnh) scr shot kèm theo:

b1: mở status_bar.xml(đồng hồ analog ở giữa)
đồng hồ analog có cấu trúc như sau:
    <LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0dip" android:layout_marginTop="0.0dip">
        <AnalogClock android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="50.0dip" android:layout_marginTop="0.0dip" android:dial="@drawable/dongho" android:hand_hour="@drawable/gio" android:hand_minute="@drawable/phut" android:layout_centerVertical="true" />
    </LinearLayout>
đặt code này ở dưới code đồng hồ:
    <LinearLayout android:gravity="right" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="50.0dip" android:layout_marginTop="0.0dip" android:layout_marginRight="90.0dip">
        <include layout="@layout/hiphop" />
    </LinearLayout>
    <LinearLayout android:gravity="left" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="50.0dip" android:layout_marginLeft="95.0dip" android:layout_marginTop="0.0dip">
        <include layout="@layout/hiphop2" />
    </LinearLayout>

save lại


b2: mở res/values/ids.xml đặt code này xuống dưới cùng, trên </resource> :
    <item type="id" name="hiphop">false</item>
    <item type="id" name="hiphop2">false</item>

save lại


ném 149 icon vào res/drawable-xhdpi (hoặc xxhdpi tùy máy)
đóng gói và thưởng thức

tut mod nhảy hiphop 2 bên đhồ.zip
Đàm Minh Giang File Size 2 MB
Cộng Đồng Mod Android Trên Facebook
tut được làm dựa theo icon của #LeeShin, tut mod sét đọng notification bar của #ĐứcHợp và được sáng tạo dựa trên 2 điều trên bởi #HyVọng vì vậy nếu có sau chép nhớ ghi rõ nguồn Cộng đồng mod andoid trên facebook