expand_button/src/main/res/values/attrs.xml
@@ -18,4 +18,17 @@ <!-- 新增展开后的字体大小属性 --> <attr name="expandedTextSize" format="dimension"/> </declare-styleable> <declare-styleable name="CustomSearchBar"> <!-- 使用android:background属性 --> <attr name="android:background"/> <!-- 搜索图标大小 --> <attr name="searchIconSize" format="dimension"/> <!-- 搜索按钮文字 --> <attr name="searchButtonText" format="string"/> <!-- 提示文字 --> <attr name="searchHint" format="string"/> <!-- 动画时长 --> <attr name="searchAnimDuration" format="integer"/> </declare-styleable> </resources>