Skip to content

Commit

Permalink
readme + landscape layout + bottom sheet demo
Browse files Browse the repository at this point in the history
  • Loading branch information
MFlisar committed May 23, 2018
1 parent be491d2 commit 96df206
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

Simple reusable `DialogFragment`.

![GDPR Workflow](https://github.com/MFlisar/GDPRDialog/blob/master/demo/demo1.gif "demo1")
![GDPR Workflow](https://github.com/MFlisar/GDPRDialog/blob/master/demo/demo2.gif "demo2")
![GDPR Demo1](https://github.com/MFlisar/GDPRDialog/blob/master/demo/demo1.gif "demo1")
![GDPR Demo2](https://github.com/MFlisar/GDPRDialog/blob/master/demo/demo2.gif "demo2")
![GDPR Demo3](https://github.com/MFlisar/GDPRDialog/blob/master/demo/demo3.gif "demo3")

### What it offers

Expand Down
Binary file added demo/demo3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions library/src/main/res/layout-land/gdpr_dialog_bottom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">

<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">

<Button
android:id="@+id/btDisagree"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/gdpr_dialog_disagree_no_thanks"/>

</LinearLayout>

<Button
android:id="@+id/btAgree"
style="@style/Widget.AppCompat.Button.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/gdpr_dialog_agree"/>

</LinearLayout>

<Button
android:id="@+id/btNoConsentAtAll"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/gdpr_dialog_disagree_no_ads"/>

</merge>

0 comments on commit 96df206

Please sign in to comment.