如何更改Android加载图标的位置?

如何更改Android加载图标的位置?,android,android-layout,Android,Android Layout,第一张图片: 第二幅图像: 第一个XML: 第二个XML: <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" android:padding="10dp" > <Button android:id="@+id/list_view_upcom

第一张图片:

第二幅图像:

第一个XML:


第二个XML:

<LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:padding="10dp" >

    <Button
        android:id="@+id/list_view_upcoming"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:text="@string/label_upcoming"
        android:layout_weight="1" />

    <Button
        android:id="@+id/list_view_completed"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="@string/label_completed" />
</LinearLayout>

<View
    android:layout_width="fill_parent"
    android:layout_height="1dp"
    android:background="#dddddd" />

<FrameLayout
    android:id="@+id/fragment_content"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >
</FrameLayout>



请任何人帮助我更改第一次加载,使其像第二次加载一样处于中间位置?

尝试在Manifest.xml中使用以下活动属性

android:windowSoftInputMode="adjustPan" or "adjustResize"

尝试在Manifest.xml中使用activity的以下属性

android:windowSoftInputMode="adjustPan" or "adjustResize"

我已经解决了

我将第二个xml上的布局高度更改为:

 <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center"
    android:padding="10dp" >

    <Button
        android:id="@+id/list_view_upcoming"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:text="@string/label_upcoming"
        android:layout_weight="1" />

    <Button
        android:id="@+id/list_view_completed"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="@string/label_completed" />

</LinearLayout>

<View
    android:layout_width="fill_parent"
    android:layout_height="1dp"
    android:background="#dddddd" />

<FrameLayout
    android:id="@+id/fragment_content"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >
</FrameLayout>

我已经解决了这个问题

我将第二个xml上的布局高度更改为:

 <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center"
    android:padding="10dp" >

    <Button
        android:id="@+id/list_view_upcoming"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:text="@string/label_upcoming"
        android:layout_weight="1" />

    <Button
        android:id="@+id/list_view_completed"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="@string/label_completed" />

</LinearLayout>

<View
    android:layout_width="fill_parent"
    android:layout_height="1dp"
    android:background="#dddddd" />

<FrameLayout
    android:id="@+id/fragment_content"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >
</FrameLayout>


Magic。。。!!如何显示加载条?XML中没有。我使用的是Android Loader,我认为它没有编码问题,所以我不会发布一些java代码并给出更多描述。神奇。。。!!如何显示加载条?XML中没有。我使用的是Android Loader,我认为它没有编码问题,所以我不会发布一些java代码并给出更多描述。如果您以前没有添加软键盘,您可能会在很久以前得到这个答案。;-)如果您以前没有添加软键盘,您可能会在很久以前得到这个答案