Android标题栏TitleBar全攻略
2010-08-20 01:57:00 来源:WEB开发网核心提示:android:textColor="@color/black"android:gravity="center_vertical"android:singleLine="true"android:ellipsize="end"/>&l
android:textColor="@color/black"
android:gravity="center_vertical"
android:singleLine="true"
android:ellipsize="end"
/>
< /LinearLayout>
< ImageView
android:id="@+id/rt_btn"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_marginLeft="6dip"
android:scaleType="center"
android:layout_marginBottom="4dip"
android:background="@drawable/btn_bookmark"
android:src="@drawable/ic_btn_bookmarks"
/>
< /LinearLayout>
< /LinearLayout>
以下为 title_context.xml,里面仅有两条一个为分享该页和复制本页的URL
< menu xmlns:android="http://schemas.android.com/apk/res/android">
< item android:id="@+id/title_bar_share_page_url"
android:title="@string/share_page"/>
< item android:id="@+id/title_bar_copy_page_url"
android:title="@string/copy_page_url"/>
< /menu>
[]
赞助商链接