`About Permissions` Spanish translation.
[PrivacyBrowser.git] / app / src / free / res / layout / main_webview.xml
index 1c05c00f6f19bf1f14c9c295819e4d57cdcf2fb2..5aa146aebaf4e64b6822f640719e45d2e34aafb1 100644 (file)
   You should have received a copy of the GNU General Public License
   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
 
-<!-- android:layout_martinTop="?attr/actionBarSize" moves adRelativeLayout below the appBarLayout, which otherwise would cover the top of mainWebView. -->
+<!-- android:layout_martinTop="?attr/actionBarSize" moves adRelativeLayout below the appBarLayout, which otherwise would cover the top of mainWebView.
+  android:layout_weight="1" sets the RelativeLayout to fill the rest of the screen because it is encapsulated in a LinearLayout with android:orientation="vertical"-->
 <RelativeLayout
-    android:id="@+id/adRelativeLayout"
+    android:id="@+id/main_webview_relativelayout"
     xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     xmlns:ads="http://schemas.android.com/apk/res-auto"
     android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:layout_marginTop="?attr/actionBarSize"
-    tools:context="com.stoutner.privacybrowser.MainWebViewActivity"
-    tools:showIn="@layout/coordinator_layout">
+    android:layout_height="0dp"
+    android:layout_weight="1"
+    tools:context="com.stoutner.privacybrowser.activities.MainWebView"
+    tools:showIn="@layout/drawerlayout">
 
     <com.google.android.gms.ads.AdView
         android:id="@+id/adView"
@@ -52,6 +53,6 @@
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:focusable="true"
-            android:focusableInTouchMode="true"/>
+            android:focusableInTouchMode="true" />
     </android.support.v4.widget.SwipeRefreshLayout>
 </RelativeLayout>
\ No newline at end of file