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