diff options
author | David Luhmer <david-dev@live.de> | 2019-09-26 22:55:06 +0300 |
---|---|---|
committer | David Luhmer <david-dev@live.de> | 2019-09-26 22:55:06 +0300 |
commit | 227b149ff48062dae784f8613ad23a3dc0734b65 (patch) | |
tree | 1ef3d43059f9516228d57459ef48955c600384a6 /News-Android-App/src/main/res/layout | |
parent | 09550b253246e3ddf1055e7b69e1e06b2556df15 (diff) |
first working implementation of incognito mode
Diffstat (limited to 'News-Android-App/src/main/res/layout')
-rw-r--r-- | News-Android-App/src/main/res/layout/activity_news_detail.xml | 21 | ||||
-rw-r--r-- | News-Android-App/src/main/res/layout/fragment_news_detail.xml | 10 |
2 files changed, 19 insertions, 12 deletions
diff --git a/News-Android-App/src/main/res/layout/activity_news_detail.xml b/News-Android-App/src/main/res/layout/activity_news_detail.xml index be0c5eaa..1d5eb534 100644 --- a/News-Android-App/src/main/res/layout/activity_news_detail.xml +++ b/News-Android-App/src/main/res/layout/activity_news_detail.xml @@ -1,8 +1,8 @@ -<androidx.coordinatorlayout.widget.CoordinatorLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_height="match_parent" - android:layout_width="match_parent"> + android:layout_width="match_parent" + xmlns:app="http://schemas.android.com/apk/res-auto"> <!-- SlidingUpPanelLayout doesn't work with layout_behavior, use marginTop --> <de.luhmer.owncloudnewsreader.view.PodcastSlidingUpPanelLayout @@ -48,6 +48,21 @@ </de.luhmer.owncloudnewsreader.view.PodcastSlidingUpPanelLayout> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom|center" + android:layout_marginBottom="16dp"> + + <ImageButton + android:id="@+id/btn_disable_incognito" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + app:srcCompat="@drawable/incognito"/> + + </LinearLayout> + + <include android:id="@+id/toolbar_layout" layout="@layout/toolbar_layout" /> diff --git a/News-Android-App/src/main/res/layout/fragment_news_detail.xml b/News-Android-App/src/main/res/layout/fragment_news_detail.xml index 9aa5407e..5d609ab8 100644 --- a/News-Android-App/src/main/res/layout/fragment_news_detail.xml +++ b/News-Android-App/src/main/res/layout/fragment_news_detail.xml @@ -1,10 +1,10 @@ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".NewsDetailFragment" > - <WebView android:id="@+id/webview" android:layout_width="match_parent" @@ -42,12 +42,4 @@ android:background="@color/material_red_600" android:visibility="gone" /> - <Button - android:id="@+id/btn_disable_incognito" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="Disable Incognito" - android:layout_alignParentBottom="true" /> - - </RelativeLayout>
\ No newline at end of file |