I'm trying to put those two buttons in the bottom of my layer. But when I put the gravity of them to "bottom" nothing happens. Please help me. I have tried to put the gravity of my second linearLayout "bottom" too with wrap_content as height but still not working.
[![<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
    android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    tools:context="com.emmanuilvaresis.oldiefinder.AppSettings"
    android:orientation="vertical"
    android:background="@drawable/background_img">
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textStyle="italic"
        android:textSize="22sp"
        android:text="@string/keyword"
        android:id="@+id/lblKeyword"
        android:textColor="#ffffff" />
    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/txtKeyword"
        android:textSize="20sp"
        android:textColor="#cacaca" />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textStyle="italic"
        android:textSize="22sp"
        android:text="@string/number"
        android:id="@+id/lblNumber"
        android:textColor="#ffffff" />
    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/txtNumber"
        android:textSize="20sp"
        android:textColor="#cacaca" />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textStyle="italic"
        android:textSize="22sp"
        android:text="@string/address"
        android:id="@+id/lblAddress"
        android:textColor="#ffffff" />
    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/txtAddress"
        android:textSize="20sp"
        android:textColor="#cacaca"
        android:hint="@string/addresshint"
        android:textColorHint="#cacaca" />
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">
        <Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/btnOK"
        android:text="@string/btnOK"
            android:layout_gravity="bottom" />
        <Button
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/btnCancel"
            android:text="@string/btncancel"
            android:layout_gravity="bottom|center" />
    </LinearLayout>
</LinearLayout>][1]][1]
 
     
    