[Desire HD Themes and Apps] bour:
Sorry. Limit 30,000 characters of the First post.

First Tutorial [MOD][Tutorial] 4x5 Grid Workspace with Sense Widgets.

Change LOG(28th/Feb/2011) GMT+9

Most modified HTC Sense wigets. My friend(테제군 @csm3837) helped me a lot. His work is this posted.

[Tutorial] Widget Modified(4x5 Grid, ../system/app)

1. com.htc.FMRadioWidget.apk

Browse to ../res/layout-hdpi(-v4) and edit(open) next files and change

main42.xml

<ImageView android:id="@id/Main_Background" android:background="@com.htc:drawable/common_panel" android:layout_width="450.0px" android:layout_height="232.0px" android:layout_marginLeft="15.0px" android:layout_marginTop="8.0px" />
<ImageView android:id="@id/State_Panel" android:layout_width="432.0px" android:layout_height="150.0px" android:layout_marginLeft="24.0px" android:layout_marginTop="20.0px" android:src="@drawable/panel_blue_s" android:scaleType="center" />
<ImageView android:id="@id/Btn_Prev" android:background="@drawable/fm_widget_seek_prev_button_background" android:layout_width="125.0px" android:layout_height="75.0px" android:layout_marginLeft="115.0px" android:layout_marginTop="190.0px" android:src="@drawable/fm_widget_seek_prev_button" android:scaleType="center" />
<ImageView android:id="@id/Btn_Next" android:background="@drawable/fm_widget_seek_next_button_background" android:layout_width="125.0px" android:layout_height="75.0px" android:layout_marginLeft="240.0px" android:layout_marginTop="190.0px" android:src="@drawable/fm_widget_seek_next_button" android:scaleType="center" />

main44.xml

<ImageView android:id="@id/Main_Background" android:background="@com.htc:drawable/common_panel" android:layout_width="410.0px" android:layout_height="575.0px" android:layout_marginLeft="35.0px" android:layout_marginTop="70.0px" />
<ImageView android:id="@id/State_Panel" android:layout_width="372.0px" android:layout_height="240.0px" android:layout_marginLeft="54.0px" android:layout_marginTop="89.0px" android:src="@drawable/panel_blue" android:scaleType="center" />
<ImageView android:id="@id/Btn_Power" android:background="@drawable/fm_widget_power_button" android:layout_width="62.0px" android:layout_height="51.0px" android:layout_marginLeft="363.0px" android:layout_marginTop="90.0px" android:src="@drawable/fm_radio_widget_icon_power_off" />
<TextView android:textSize="26.0px" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="top|center" android:id="@id/Content_txt" android:layout_width="220.0px" android:layout_height="wrap_content" android:layout_marginLeft="130.0px" android:layout_marginTop="117.0px" android:text="@string/default_station" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" />
<ImageView android:id="@id/tunerpanel" android:layout_width="372.0px" android:layout_height="90.0px" android:layout_marginLeft="54.0px" android:layout_marginTop="363.0px" android:src="@drawable/tuner_panel_on" />
<ImageView android:id="@id/Num_View" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="285.0px" android:layout_marginTop="190.0px" android:src="@drawable/zero" />
<ImageView android:id="@id/Point_View" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="265.0px" android:layout_marginTop="190.0px" android:src="@drawable/point" />
<ImageView android:id="@id/Num_View2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="214.0px" android:layout_marginTop="190.0px" android:src="@drawable/zero" />
<ImageView android:id="@id/Num_View3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="163.0px" android:layout_marginTop="190.0px" android:src="@drawable/zero" />
<ImageView android:id="@id/Num_View4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="112.0px" android:layout_marginTop="190.0px" android:src="@drawable/zero" />
<ImageView android:id="@id/Image_mhz" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="336.0px" android:layout_marginTop="250.0px" android:src="@drawable/mhz" />
<ImageView android:id="@id/NumMirror_View" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="285.0px" android:layout_marginTop="259.0px" android:src="@drawable/zero_reverse" />
<ImageView android:id="@id/PointMirror_View" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="265.0px" android:layout_marginTop="259.0px" android:src="@drawable/point_reverse" />
<ImageView android:id="@id/NumMirror_View2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="214.0px" android:layout_marginTop="259.0px" android:src="@drawable/zero_reverse" />
<ImageView android:id="@id/NumMirror_View3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="163.0px" android:layout_marginTop="259.0px" android:src="@drawable/zero_reverse" />
<ImageView android:id="@id/NumMirror_View4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="112.0px" android:layout_marginTop="259.0px" android:src="@drawable/zero_reverse" />
<ImageView android:id="@id/Image_reverse_mhz" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="336.0px" android:layout_marginTop="263.0px" android:src="@drawable/mhz_reverse" />
<ImageView android:id="@id/divide_line" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="36.0px" android:layout_marginTop="488.0px" android:src="@drawable/divider" />
<ImageView android:id="@id/Btn_Prev" android:background="@drawable/fm_widget_seek_prev_button_background" android:layout_width="125.0px" android:layout_height="75.0px" android:layout_marginLeft="115.0px" android:layout_marginTop="529.0px" android:src="@drawable/fm_widget_seek_prev_button" android:scaleType="center" />
<ImageView android:id="@id/Btn_Next" android:background="@drawable/fm_widget_seek_next_button_background" android:layout_width="125.0px" android:layout_height="75.0px" android:layout_marginLeft="240.0px" android:layout_marginTop="529.0px" android:src="@drawable/fm_widget_seek_next_button" android:scaleType="center" />

2. com.htc.FriendStreamWidget.apk

Browse to ../res/values-port-hdpi(-v4) and edit(open) integers.xml and change

<integer name="friendstream_widget_height">500</integer>
<integer name="friendstream_widget_small_height">240</integer>
<integer name="small_EditMaxHeight">148</integer>

3. com.htc.MusicWidget.apk

Browse to ../res/values-port-hdpi(-v4) and edit(open) dimens.xml and change

<dimen name="buttons_for_mmc_diff">0.0px</dimen>
<dimen name="buttons_for_mmc_diff_4x4">0.0px</dimen>
<dimen name="mmc_button_layout_margin_left">0.0px</dimen>
<dimen name="mmc_button_4x4_layout_margin_left">0.0px</dimen>
<dimen name="panel_layout_height">252.0px</dimen>
<dimen name="panel_layout_margin_top">15.0px</dimen>
<dimen name="no_music_layout_height">136.0px</dimen>
<dimen name="rl_playback_margin_top">188.0px</dimen>
<dimen name="l_divider_layout_margin_left">142.0px</dimen>
<dimen name="panel_layout_height_4x4">473.0px</dimen>
<dimen name="panel_layout_margin_top_4x4">40.0px</dimen>
<dimen name="shuffle_icon_margin_top_4x4">23.0px</dimen>
<dimen name="album_switcher_margin_top_4x4">15.0px</dimen>
<dimen name="no_music_margin_top_4x4">50.0px</dimen>
<dimen name="song_title_margin_top_4x4">304.0px</dimen>
<dimen name="ll_seekbar_layout_margin_top_4x4">345.0px</dimen>
<dimen name="artist_name_layout_margin_top_4x4">370.0px</dimen>

4. com.htc.StockWidget.apk

Browse to ../res/layout-hdpi(-v4) and edit(open) extra.xml and change

<ImageView android:id="@id/stock_panel" android:background="@com.htc:drawable/common_panel_gradient" android:layout_width="450.0px" android:layout_height="463.0px" android:layout_marginLeft="15.0px" android:layout_marginTop="58.0px" />
<RelativeLayout android:id="@id/rllv1" android:layout_width="450.0px" android:layout_height="428.0px" android:layout_marginLeft="16.0px" android:layout_marginTop="70.0px" android:layout_alignParentTop="true" />
<TextView android:textSize="@com.htc:dimen/darklist_primary_m" android:textColor="#ffffffff" android:gravity="center" android:id="@id/emptystock" android:visibility="gone" android:layout_width="330.0px" android:layout_height="537.0px" android:text="@string/small_emptystock" android:layout_centerHorizontal="true" />
<TextView android:textSize="@com.htc:dimen/darklist_primary_m" android:textColor="#ffffffff" android:gravity="center" android:id="@id/loadstock" android:visibility="gone" android:layout_width="330.0px" android:layout_height="537.0px" android:text="@string/load_stock" android:layout_centerHorizontal="true" />
<TextView android:textSize="@com.htc:dimen/darklist_primary_m" android:textColor="#ffffffff" android:gravity="center" android:id="@id/roamAlertExtra" android:visibility="gone" android:layout_width="330.0px" android:layout_height="537.0px" android:text="@string/alert_roaming_content" android:layout_centerHorizontal="true" />
<TextView android:textSize="@com.htc:dimen/darklist_primary_m" android:textColor="#ffffffff" android:gravity="center" android:id="@id/connectionAlertExtra" android:visibility="gone" android:layout_width="330.0px" android:layout_height="537.0px" android:text="@string/alert_connection_fail" android:layout_centerHorizontal="true" />
<ImageView android:id="@id/stock_footer" android:layout_width="450.0px" android:layout_height="wrap_content" android:layout_marginLeft="15.0px" android:layout_marginTop="496.0px" />
<ImageView android:id="@id/pressUpdate" android:layout_width="360.0px" android:layout_height="30.0px" android:layout_marginTop="496.0px" android:src="@drawable/update_selector" android:layout_centerHorizontal="true" />
<TextView android:textSize="18.0px" android:textColor="@color/white" android:id="@id/updTime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="498.0px" android:layout_centerHorizontal="true" />
<TextView android:textSize="18.0px" android:textColor="@color/white" android:id="@id/updEffect" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="498.0px" android:layout_toRightOf="@id/updTime" />
<ImageView android:id="@id/refresh_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="500.0px" android:src="@drawable/stock_icon_refresh" android:layout_toLeftOf="@id/updTime" />
<RelativeLayout android:gravity="center" android:layout_gravity="center" android:id="@id/yahooQuoteDelay" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="52.0px" android:layout_marginTop="480.0px" android:layout_centerHorizontal="true">
<TextView android:textSize="16.5px" android:textStyle="bold" android:textColor="@color/black" android:gravity="center" android:layout_gravity="center" android:id="@id/tvQuoteDelay_shadow" android:layout_width="wrap_content" android:layout_height="52.0px" android:layout_marginLeft="1.0px" android:layout_marginTop="484.0px" android:text="@string/quote_delay_small" android:singleLine="true" android:layout_centerHorizontal="true" />
<TextView android:textSize="16.5px" android:textStyle="bold" android:textColor="@color/white" android:gravity="center" android:layout_gravity="center" android:id="@id/tvQuoteDelay" android:layout_width="wrap_content" android:layout_height="52.0px" android:layout_marginTop="485.0px" android:text="@string/quote_delay_small" android:singleLine="true" android:layout_centerHorizontal="true" />

5. com.htc.TwitterWidget.apk

Browse to ../res/values-port-hdpi(-v4) and edit(open) integers.xml and change

<integer name="tweet_widget_height">490</integer>
<integer name="tweet_widget_small_height">238</integer>
<integer name="small_EditMaxHeight">108</integer>
<integer name="edit_max_line">6</integer>
<integer name="edit_max_line_small">5</integer>

6. com.htc.WeatherWidget.apk

Browse to ../res/values-hdpi(-v4) and edit(open) dimens.xml and change

<dimen name="large_widget_footbar_text_size">18.0px</dimen> <!-- line 62, change all -->
<dimen name="med_widget_image_margin_top">-28.0px</dimen>
<dimen name="med_widget_today_view_margin_top">86.0px</dimen>
<dimen name="med_widget_today_view_high_low_temp_margin_top">0.0px</dimen>
<dimen name="med_widget_todayinfo_margin_top">161.0px</dimen>
<dimen name="med_widget_condition_info_margin_top">30.0px</dimen>
<dimen name="med_widget_todayinfo_divider_margin_top">26.0px</dimen>
<dimen name="no_weather_data_view_margin_top">-20.0px</dimen>
<dimen name="weather_icon_margin_top">-20.0px</dimen>

7. EReaderWidget.apk

Browse to ../res/layout edit(open) main.xml and change

<RelativeLayout android:id="@id/widget_frame" android:clickable="true" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:id="@id/rl_all_pannel" android:background="@com.htc:drawable/common_panel_gradient" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="15.0px" android:layout_marginTop="36.0px" android:layout_marginRight="15.0px" android:layout_marginBottom="36.0px">
<ImageView android:id="@id/header" android:background="?com.htc:attr_common_header" android:layout_width="fill_parent" android:layout_height="80.0px" />
<ImageView android:id="@id/open_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="25.0px" android:layout_marginTop="10.0px" android:src="@drawable/icon_ereader" />
<TextView android:textSize="@dimen/title_primary_m" android:textColor="#ffffffff" android:id="@id/title" android:layout_width="wrap_content" android:layout_height="68.0px" android:layout_marginLeft="150.0px" android:layout_marginTop="50.0px" android:text="@string/add_widget" android:shadowColor="#ff111111" android:shadowRadius="1.0" />

8. HtcCalculatorWidget.apk only 4x5 mod

Browse to ../smali/com/htc/android/calculator/widget/ edit(open) CalculatorWidgetView.smali and change(Find 'SpanY') 0x5

.method public getSpanY()I
.locals 1

.prologue
.line 57
const/4 v0, 0x5 <!-- original 0x4 -->

9. htccalendarwidgets.apk (month view 4x5, agenda 4x4)

Browse to ../res/layout-nomal-hdpi edit(open) calendar_agenda.xml and change

<RelativeLayout android:id="@id/agenda_frame" android:layout_width="450.0px" android:layout_height="500.0px" android:layout_marginLeft="15.0px" android:layout_marginTop="36.0px">
<View android:id="@id/agenda_panel" android:background="@com.htc:drawable/common_panel_gradient" android:layout_width="450.0px" android:layout_height="490.0px" android:layout_marginTop="10.0px" />
<ImageView android:id="@id/footer" android:background="?com.htc:attr_common_footer" android:layout_width="450.0px" android:layout_height="16.0px" android:layout_marginLeft="0.0px" android:layout_marginTop="-10.0px" android:layout_below="@id/agenda_view" />

Browse to ../smali/com/htc/htccalendarwidgets/ edit(open) MonthViewWidgetView.smali and change(Find 'SpanY') 0x5

.method public getSpanY()I
.locals 1

.prologue
.line 129
const/4 v0, 0x5

next post...