Created
May 29, 2025 11:48
-
-
Save yongjhih/f3cc5e7c973af27c752afcb8d069c984 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class EmptyAttributeSet : AttributeSet { | |
override fun getAttributeCount(): Int = 0 | |
override fun getAttributeName(index: Int): String? = null | |
override fun getAttributeValue(index: Int): String? = null | |
override fun getAttributeValue(namespace: String?, name: String?): String? = null | |
override fun getPositionDescription(): String? = null | |
override fun getAttributeNameResource(index: Int): Int = 0 | |
override fun getAttributeListValue( | |
namespace: String?, | |
attribute: String?, | |
options: Array<out String>?, | |
defaultValue: Int, | |
): Int = 0 | |
override fun getAttributeListValue( | |
index: Int, | |
options: Array<out String>?, | |
defaultValue: Int, | |
): Int = 0 | |
override fun getAttributeBooleanValue( | |
namespace: String?, | |
attribute: String?, | |
defaultValue: Boolean, | |
): Boolean = false | |
override fun getAttributeBooleanValue(index: Int, defaultValue: Boolean): Boolean = false | |
override fun getAttributeResourceValue( | |
namespace: String?, | |
attribute: String?, | |
defaultValue: Int, | |
): Int = 0 | |
override fun getAttributeResourceValue(index: Int, defaultValue: Int): Int = 0 | |
override fun getAttributeIntValue( | |
namespace: String?, | |
attribute: String?, | |
defaultValue: Int, | |
): Int = 0 | |
override fun getAttributeIntValue(index: Int, defaultValue: Int): Int = 0 | |
override fun getAttributeUnsignedIntValue( | |
namespace: String?, | |
attribute: String?, | |
defaultValue: Int, | |
): Int = 0 | |
override fun getAttributeUnsignedIntValue(index: Int, defaultValue: Int): Int = 0 | |
override fun getAttributeFloatValue( | |
namespace: String?, | |
attribute: String?, | |
defaultValue: Float, | |
): Float = 0f | |
override fun getAttributeFloatValue(index: Int, defaultValue: Float): Float = 0f | |
override fun getIdAttribute(): String? = null | |
override fun getClassAttribute(): String? = null | |
override fun getIdAttributeResourceValue(defaultValue: Int): Int = 0 | |
override fun getStyleAttribute(): Int = 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment