Android layout 将屏幕上的文本位置更改为左下角

Android layout 将屏幕上的文本位置更改为左下角,android-layout,android-ui,Android Layout,Android Ui,我必须在屏幕左下角显示一个文本(下面代码中的id-text\u view)。在下面找到文本的代码段 <?xml version="1.0" encoding="utf-8"?><merge xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:layout

我必须在屏幕左下角显示一个文本(下面代码中的id-text\u view)。在下面找到文本的代码段

<?xml version="1.0" encoding="utf-8"?><merge xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center" >

<FrameLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="center_vertical|center_horizontal" >

    <TextView
        android:id="@+id/text_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="left|bottom"
        android:text="SampleText"
        android:textColor="@android:color/darker_gray" />
</FrameLayout>

<RelativeLayout
    android:id="@+id/linear"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <ProgressBar
        android:id="@+id/progress"
        style="?android:attr/progressBarStyleHorizontal"
        android:layout_width="200dip"
        android:layout_height="wrap_content"
        android:layout_marginBottom="14dip"
        android:layout_marginLeft="30dip"
        android:layout_marginRight="30dip"
        android:layout_marginTop="14dip"
        android:orientation="vertical" />
</RelativeLayout>

它位于左下角,但仅用于纵向模式。当我将屏幕旋转到横向模式时,文本仍保留在那里,它也应该旋转到屏幕的左下角


请帮助我如何实现屏幕上的这种旋转

1:-首先将FrameLayout更改为RelativeLayout


2:-将文本视图的布局设置为左下。

发布完整布局code@Boopathi我已经更新了我检查了代码,它在两种模式下都工作正常问题是文本应该总是在左下角。这是发生在肖像,但不是在风景。在旋转到横向模式时,文本保留在右下角,这是为纵向模式绘制的,但它没有帮助