在android上分离无边界按钮

在android上分离无边界按钮,android,button,Android,Button,我正在android项目中工作,我在屏幕底部对齐两个按钮。我使用的是无边界主题,但我想在两个按钮之间设置一个分割,这两个按钮可以区分它们 下面是我目前拥有的屏幕截图 在像默认对话框这样的东西上,它会显示一个浅灰色的边框,如下面的屏幕截图所示,在两个按钮上方和它们之间,这是一个特定的主题还是我必须做些什么才能获得这个外观 感谢您提供的任何帮助试试这样的方法 <LinearLayout android:layout_width="match_parent" andr

我正在android项目中工作,我在屏幕底部对齐两个按钮。我使用的是无边界主题,但我想在两个按钮之间设置一个分割,这两个按钮可以区分它们

下面是我目前拥有的屏幕截图

在像默认对话框这样的东西上,它会显示一个浅灰色的边框,如下面的屏幕截图所示,在两个按钮上方和它们之间,这是一个特定的主题还是我必须做些什么才能获得这个外观


感谢您提供的任何帮助

试试这样的方法

    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="@dimen/button_height"
    android:orientation="horizontal" >

    <Button />

    <View
        android:layout_width="1dp"
        android:layout_height="@dimen/button_height"
        android:background="@color/seperator" />

    <Button />
</LinearLayout>

尝试在两个按钮之间使用宽度为1IP的视图

<Button 
        android:layout_width="wrap_content"
        android:layout_height="60dip"
        android:id="@+id/play"
        android:text="PLAY"
        />
    <View 
        android:id="@+id/vw"
         android:layout_width="1dip"
         android:layout_toRightOf="@+id/play"
         android:background="#000000"
        android:layout_height="60dip"/>
    <Button 
        android:layout_width="wrap_content"
        android:layout_height="60dip"
        android:layout_toRightOf="@+id/vw"
        android:text="PLAY"
        />