WizarDroid icon indicating copy to clipboard operation
WizarDroid copied to clipboard

Material Compatibility

Open lucasreiners opened this issue 10 years ago • 2 comments

Hi, first of all thanks for the great library.

I would like to see support for material design button bar. I am currently using the following layout xml. Maybe we can add a "MaterialWizardLayout" that uses the xml below.

`<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent">

<!-- Layout for wizard controls -->
<LinearLayout
    android:id="@+id/wizard_button_bar"
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    style="?android:attr/buttonBarStyle">

    <Button
        android:id="@+id/wizard_previous_button"
        android:text="@string/action_previous"
        android:enabled="false"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        style="?android:attr/buttonBarButtonStyle"/>

    <Button
        android:id="@+id/wizard_next_button"
        android:text="@string/action_next"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        style="?android:attr/buttonBarButtonStyle"/>

</LinearLayout>

<!--
        **********************************************************************
        **You MUST have this ViewPager as the container for wizard's steps  **
        **********************************************************************
-->
<android.support.v4.view.ViewPager
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@id/step_container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_above="@id/wizard_button_bar"/>
`

lucasreiners avatar Jan 17 '15 16:01 lucasreiners

sure we can add that. feel free to make a pull request with your changes ;)

Nimrodda avatar Jan 17 '15 22:01 Nimrodda

I think that a material version of this library would more likely use dots on the bottom instead of back and next buttons

Fleker avatar May 18 '15 20:05 Fleker