早前利用hosts把 cnbeta音速閱讀 的廣告過濾掉了,但是在閱讀文章時,底部還是有一塊空白,令人非常不爽.用 DOAPK 工具包解包apk文件.進入
eslayout裡面,找要修改的xml文件,打開幾個看了看,就是news_single.xml了.
<?xml version="1.0" encoding="UTF-8"?> <linearlayout android:orientation="vertical" android:background="@drawable/white" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"> <relativelayout android:background="@drawable/menu_bg" android:layout_width="fill_parent" android:layout_height="40.0dip"> <imagebutton android:id="@id/buttonHome" android:background="@drawable/btn_home" android:clickable="true" android:layout_width="40.0dip" android:layout_height="40.0dip" android:layout_alignParentLeft="true" /> <view android:background="@drawable/menu_divider" android:layout_width="1.0px" android:layout_height="fill_parent" android:layout_marginLeft="40.0dip" android:layout_alignParentLeft="true" /> <textview android:textAppearance="?android:textAppearanceMedium" android:id="@id/textTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="50.0dip" android:text="@string/app_name" android:layout_alignParentLeft="true" android:layout_centerVertical="true" /> <view android:background="@drawable/menu_divider" android:layout_width="1.0px" android:layout_height="fill_parent" android:layout_marginRight="40.0dip" android:layout_alignParentRight="true" /> <imagebutton android:id="@id/buttonStar" android:background="@drawable/btn_star_off" android:clickable="true" android:layout_width="40.0dip" android:layout_height="40.0dip" android:layout_alignParentRight="true" /> </relativelayout> <view android:background="@drawable/menu_bottom_line" android:layout_width="fill_parent" android:layout_height="5.0px" /> <scrollview android:id="@id/ScrollView" android:background="@drawable/white" android:scrollbars="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="5.0dip"> <linearlayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <webview android:textColor="@drawable/black" android:id="@id/news_content" android:scrollbars="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" /> <webview android:textColor="@drawable/black" android:id="@id/news_comment" android:layout_width="fill_parent" android:layout_height="wrap_content" /> </linearlayout> </scrollview> </linearlayout>
由第15行的@id/news_comment,就應該去掉@id/news_comment下面的空白,但是沒看到有啊!!! @#$%$%^@#$#@#@^&&**^ 再看看,發現了,把12行的android:layout_marginBottom的值改成0.0dip.就是不留白了. 修改後再重新打包,搞定!