Android添加书签(二)(25)
}
}
bookmark_item.xml:
Java代码
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:paddingLeft="10dip" android:paddingTop="5dip"
android:paddingBottom="5dip" android:id="@+id/bookmarkitem">
<ImageView android:id="@+id/favicon" android:layout_width="20dip"
android:layout_height="20dip" android:focusable="false"
android:padding="2dip" android:layout_marginTop="4dip"
android:layout_marginRight="6dip" android:layout_alignParentTop="true"
android:background="@drawable/fav_icn_background" android:src="@drawable/app_web_browser_sm"
android:layout_alignParentLeft="true" />
<TextView android:id="@+id/title" android:textAppearance="?android:attr/textAppearanceMedium"
android:maxLines="1" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_toRightOf="@+id/favicon"
android:ellipsize="end" />
<TextView android:id="@+id/url" android:textAppearance="?android:attr/textAppearanceSmall"
android:maxLines="1" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_below="@+id/title"
android:layout_toRightOf="@+id/favicon" android:ellipsize="end" />
</RelativeLayout>
main.xml:
Java代码
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView android:id="@+id/mylistview" android:layout_width="fill_parent"
相关新闻>>
- 发表评论
-
- 最新评论 更多>>