android设备中显示的应用程序名称

android设备中显示的应用程序名称,android,android-layout,Android,Android Layout,嗨,我是一个新的开发人员,我只是想创建一些自己的应用程序。 在我的应用程序中,我在底部放置了两个按钮,问题是我的应用程序名称显示在页面顶部,主页不完全可见,因此底部的按钮不可见。如何解决此问题……顶部栏使用活动主题进行控制,您可以阅读更多有关活动主题的信息 最重要的是,您应该使用一种更灵活的布局,如RelativeLayout或LinearLayout,它将在可用空间内自动调整屏幕上项目的位置。您可以阅读有关这些的更多信息您可以使用以下方法使标题栏(应用程序名称出现的位置)消失: 在调用supe

嗨,我是一个新的开发人员,我只是想创建一些自己的应用程序。
在我的应用程序中,我在底部放置了两个按钮,问题是我的应用程序名称显示在页面顶部,主页不完全可见,因此底部的按钮不可见。如何解决此问题……

顶部栏使用活动主题进行控制,您可以阅读更多有关活动主题的信息


最重要的是,您应该使用一种更灵活的布局,如RelativeLayout或LinearLayout,它将在可用空间内自动调整屏幕上项目的位置。您可以阅读有关这些的更多信息

您可以使用以下方法使标题栏(应用程序名称出现的位置)消失:

在调用
super.onCreate()
之后,在
onCreate()内部调用它

避免使用
AbsoluteLayout
,并尝试以以下方式使用
RelativeLayout
,以实现您的目标:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/mother_container"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <Button android:id="@+id/btn_left"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:text="Button Left" />

    <Button android:id="@+id/btn_right"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:text="Button Rigth" />
</RelativeLayout>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/mother_container"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <Button android:id="@+id/btn_left"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:text="Button Left" />

    <Button android:id="@+id/btn_right"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:text="Button Rigth" />
</RelativeLayout>