<RelativeLayout
  android:layout_width="fill_parent"
  android:layout_height="wrap_content">
  <View
     android:
    android:layout_width="0dp"
    android:layout_height="0dp"
    android:layout_centerHorizontal="true"/>
  <Button
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_alignRight="@id/placeholder"
    android:layout_alignParentLeft="true"
    android:text="Left"/>
  <Button
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_alignLeft="@id/placeholder"
    android:layout_alignParentRight="true"
    android:text="Right"/>
</RelativeLayout>

  

相关文章:

  • 2021-04-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2022-01-18
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案