Skip to content

Commit

Permalink
Added method to remove the single line property of the view.
Browse files Browse the repository at this point in the history
  • Loading branch information
jguerinet committed Apr 9, 2016
1 parent ca71ac5 commit 78a0eac
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ To get the associated view, simple call `view()` at the end of your customizatio
* Setting an `OnCheckedChangeListener` for `Switch`es
* Setting an `OnClickListener` for all form items except the spaces and lines
* Setting the input type on the `EditText`s (default is capitalized sentences)
* Setting if the `EditText` should be single line or not (default is true)
* Setting if the `EditText` should be multi line (default is single line)
* Setting icons on all form items except the spaces and lines

IMPORTANT: All views need to be built by calling `build()` after adding it except for spaces and lines. If you do not call `build()` they will not be added to the container.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,13 @@ public ButtonFormItem gravity(int gravity) {
}

/**
* Sets the {@link TextView} to be single line
* Sets the {@link TextView} to be multi line
*
* @return The {@link ButtonFormItem} instance
*/
@Override
public ButtonFormItem singleLine() {
return (ButtonFormItem) super.singleLine();
public ButtonFormItem removeSingleLine() {
return (ButtonFormItem) super.removeSingleLine();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,13 @@ public EditTextFormItem onClick(OnClickListener listener) {
}

/**
* Sets the {@link TextView} to be single line
* Sets the {@link TextView} to be multi line
*
* @return The {@link EditTextFormItem} instance
*/
@Override
public EditTextFormItem singleLine() {
return (EditTextFormItem) super.singleLine();
public EditTextFormItem removeSingleLine() {
return (EditTextFormItem) super.removeSingleLine();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,13 +401,13 @@ public SwitchFormItem gravity(int gravity) {
}

/**
* Sets the {@link TextView} to be single line
* Sets the {@link TextView} to be multi line
*
* @return The {@link SwitchFormItem} instance
*/
@Override
public SwitchFormItem singleLine() {
return (SwitchFormItem) super.singleLine();
public SwitchFormItem removeSingleLine() {
return (SwitchFormItem) super.removeSingleLine();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,12 @@ public TextViewFormItem gravity(int gravity) {
}

/**
* Sets the {@link TextView} to be single line
* Sets the {@link TextView} to be multi line
*
* @return The {@link TextViewFormItem} instance
*/
public TextViewFormItem singleLine() {
textView.setSingleLine();
public TextViewFormItem removeSingleLine() {
textView.setSingleLine(false);
return this;
}

Expand Down

0 comments on commit 78a0eac

Please sign in to comment.