Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Material Compatibility #54

Open
lucasreiners opened this issue Jan 17, 2015 · 2 comments
Open

Material Compatibility #54

lucasreiners opened this issue Jan 17, 2015 · 2 comments

Comments

@lucasreiners
Copy link

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.

`

<!-- 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"/>
`
@Nimrodda
Copy link
Owner

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

@Fleker
Copy link

Fleker commented May 18, 2015

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants