parse-community / ParseUI-Android

ParseUI contains user interface libraries for building apps with the Parse Android SDK.
Other
592 stars 323 forks source link

How to disable signup button? #85

Closed cshlxm closed 8 years ago

cshlxm commented 8 years ago

I configured my login layout from com_parse_ui-parse_fragment.xml, when I delete the signup button,the login will not work,and debug log will display Layout missing signup button Disabled username/password login and signup because of missing layout elements.

ralphilius commented 8 years ago

Use View.GONE instead?

wangmengyan95 commented 8 years ago

You can just add android:visibility="gone" to the button like this

<Button
    android:id="@+id/parse_signup_button"
    style="@style/ParseLoginUI.Button"
    android:layout_marginLeft="@dimen/com_parse_ui_small_horizontal_spacing"
    android:layout_weight="0.5"
    android:text="@string/com_parse_ui_parse_signup_button_label"
    android:visibility="gone"/>