-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Material 1.1.0-alphaXX.
- Loading branch information
Showing
3 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Change Log | ||
========== | ||
|
||
Version 1.0.1 *(2019-06-17)* | ||
---------------------------- | ||
|
||
* Fix: Add support for Material 1.1.0-alphaXX. | ||
|
||
|
||
Version 1.0.0 *(2019-06-13)* | ||
---------------------------- | ||
|
||
Initial release. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ import com.tiper.materialspinner.R | |
* @see [android.support.design.widget.TextInputLayout] | ||
* @author Tiago Pereira ([email protected]) | ||
*/ | ||
open class MaterialSpinner @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = android.support.design.R.attr.textInputStyle, mode: Int = Spinner.MODE_DROPDOWN) : TextInputLayout(context, attrs, defStyleAttr) { | ||
open class MaterialSpinner @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, mode: Int = Spinner.MODE_DROPDOWN) : TextInputLayout(context, attrs) { | ||
|
||
|
||
companion object { | ||
|
@@ -49,7 +49,7 @@ open class MaterialSpinner @JvmOverloads constructor(context: Context, attrs: At | |
/** | ||
* The view that will display the selected item. | ||
*/ | ||
private val editText = TextInputEditText(context, null, android.support.design.R.attr.editTextStyle) | ||
private val editText = TextInputEditText(getContext()) | ||
|
||
/** | ||
* Drawable to display when the spinner is in a open state. | ||
|
@@ -135,7 +135,7 @@ open class MaterialSpinner @JvmOverloads constructor(context: Context, attrs: At | |
DialogPopup(context, getString(R.styleable.MaterialSpinner_android_prompt)) | ||
} | ||
else -> { | ||
DropdownPopup(context, attrs, android.support.v7.appcompat.R.attr.listPopupWindowStyle) | ||
DropdownPopup(context, attrs) | ||
} | ||
} | ||
recycle() | ||
|
@@ -352,7 +352,7 @@ open class MaterialSpinner @JvmOverloads constructor(context: Context, attrs: At | |
/** | ||
* A PopupWindow that anchors itself to a host view and displays a list of choices. | ||
*/ | ||
private inner class DropdownPopup(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : ListPopupWindow(context, attrs, defStyleAttr), SpinnerPopup { | ||
private inner class DropdownPopup(context: Context, attrs: AttributeSet?) : ListPopupWindow(context, attrs), SpinnerPopup { | ||
|
||
init { | ||
inputMethodMode = INPUT_METHOD_NOT_NEEDED | ||
|