0
以下的分隔线。android SupportActionBar如何使用SupportActionBar和自定义视图删除
下面我有我的行动吧这个白线,我无法删除:
我如何删除它?
这是我动作条的风格:
<!-- menu button -->
<ImageView
android:id="@+id/actionbar_menu_imageview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:clickable="true"
android:contentDescription="@string/app_name"
android:src="@drawable/button_action_bar_menu" />
<!-- spinner -->
<ProgressBar
android:id="@+id/actionbar_spinner"
style="?android:attr/progressBarStyle"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_centerVertical="true"
android:layout_marginLeft="20dp"
android:layout_toLeftOf="@+id/actionbar_profile_picture"
android:visibility="invisible" />
<!-- title -->
<TextView
android:id="@+id/actionbar_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center_horizontal"
android:text="Title"
android:textAppearance="@android:style/TextAppearance.Large"
android:textColor="@android:color/white" />
<!-- profile picture -->
<ImageView
android:id="@+id/actionbar_profile_picture"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:background="@drawable/white_circle"
android:contentDescription="@string/app_name"
android:scaleType="fitXY"
android:src="@drawable/icon" />
检查margin top或padding是否设置为布局 –
尝试使用Jeff Gilfelt的此工具更改操作栏样式http://jgilfelt.github.io/android-actionbarstylegenerator/ –
@PankajKumar无法找到任何 - 更新与我的布局的问题 –