0
我正在为我的应用程序的ActionBar创建样式的视图,而它在纵向上完美地工作,在横向上它剪裁了一条锚定在底部的线?是因为ActionBar被分配了一定的高度,我的自定义视图比这个大吗?这里是我的自定义视图的XML:在actionBar中设置customView条
<?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="wrap_content"
android:orientation="vertical"
android:background="#252525" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:src="@drawable/ac_logo" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/imageView1" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="2dp"
android:layout_weight="1"
android:background="#F0C46C" >
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="2dp"
android:layout_weight="1"
android:background="#FFFFFF" >
</LinearLayout>
</LinearLayout>
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:scaleType="fitXY"
android:src="@drawable/ac_text" />