小时候我们曾今特别钟爱笔记本,尤其是那种带有标签的。现在我给出一种实现效果。如果有更好更炫的请多多指教。
先上效果图:
其实这个效果主要在布局和美工上,左边标签使用的图标而非Tab。
1 布局
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
>
<RelativeLayout
android:id="@+id/rlyout_left"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:background="@drawable/bg_sidebar"
>
<ListView
android:id="@+id/lv_sms_head"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignParentRight="true"
android:cacheColorHint="#00000000"
android:divider="#00000000"
android:fadeScrollbars="true"
android:scrollbars="none" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/rlyout_right"
android:layout_weight="3"
android:layout_width="0dp"
android:layout_height="fill_parent"
>
<ListView
android:id="@+id/lv_sms_content"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
and