Separated attrs
This commit is contained in:
parent
fac9d00f47
commit
ccad96dd41
12 changed files with 137 additions and 85 deletions
|
@ -5,73 +5,14 @@
|
|||
<attr name="rectSelector" format="reference" />
|
||||
<attr name="defaultFooterColor" format="color" />
|
||||
<attr name="toolbarPopupTheme" format="reference" />
|
||||
<attr name="dividerColor" format="color" />
|
||||
|
||||
<declare-styleable name="BlurLayout">
|
||||
<attr name="blk_downscaleFactor" format="float" />
|
||||
<attr name="blk_blurRadius" format="integer" />
|
||||
<attr name="blk_fps" format="integer" />
|
||||
<attr name="blk_cornerRadius" format="dimension" />
|
||||
</declare-styleable>
|
||||
<attr name="lineHeightHint" format="dimension" />
|
||||
|
||||
<declare-styleable name="NetworkImageView">
|
||||
<attr name="url_link" format="string" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="ContributorsView">
|
||||
<attr name="profile_url" format="string" />
|
||||
<attr name="profile_name" format="string" />
|
||||
<attr name="profile_summary" format="string" />
|
||||
<attr name="profile_link" format="string" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="InsettableFrameLayout_Layout">
|
||||
<attr name="layout_ignoreInsets" format="boolean" />
|
||||
</declare-styleable>
|
||||
<declare-styleable name="ColorIconsImageView">
|
||||
<attr name="iconBackgroundColor" format="color" />
|
||||
<attr name="colorIconColor" format="color" />
|
||||
<attr name="icon" format="reference" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="OptionMenuItemView">
|
||||
<attr name="optionTitle" format="reference" />
|
||||
<attr name="optionIcon" format="reference" />
|
||||
</declare-styleable>
|
||||
|
||||
|
||||
<declare-styleable name="LrcView">
|
||||
<attr name="lrcTextSize" format="dimension" />
|
||||
<attr name="lrcLineSpaceSize" format="dimension" />
|
||||
<attr name="lrcNormalTextColor" format="reference|color" />
|
||||
<attr name="lrcCurrentTextColor" format="reference|color" />
|
||||
<attr name="lrcTouchDelay" format="integer" />
|
||||
<attr name="noLrcTextSize" format="dimension" />
|
||||
<attr name="noLrcTextColor" format="reference|color" />
|
||||
<attr name="indicatorLineHeight" format="dimension" />
|
||||
<attr name="indicatorTextSize" format="dimension" />
|
||||
<attr name="indicatorTextColor" format="reference|color" />
|
||||
<attr name="currentIndicateLrcColor" format="reference|color" />
|
||||
<attr name="indicatorTouchDelay" format="integer" />
|
||||
<attr name="indicatorLineColor" format="reference|color" />
|
||||
<attr name="indicatorStartEndMargin" format="dimension" />
|
||||
<attr name="iconLineGap" format="dimension" />
|
||||
<attr name="playIconWidth" format="dimension" />
|
||||
<attr name="playIconHeight" format="dimension" />
|
||||
<attr name="playIcon" format="reference" />
|
||||
</declare-styleable>
|
||||
|
||||
<attr name="lineHeightHint" format="dimension" />
|
||||
|
||||
<declare-styleable name="BaselineGridTextView">
|
||||
<attr name="lineHeightMultiplierHint" format="float" />
|
||||
<attr name="lineHeightHint" />
|
||||
<attr name="maxLinesByHeight" format="boolean" />
|
||||
<attr name="android:textAppearance" />
|
||||
<attr name="android:fontFamily" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="CircleRectView">
|
||||
<attr name="circleRadius" format="dimension" />
|
||||
</declare-styleable>
|
||||
</resources>
|
23
app/src/main/res/values/baseline_textview_attrs.xml
Normal file
23
app/src/main/res/values/baseline_textview_attrs.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) 2019 Hemanth Savarala.
|
||||
~
|
||||
~ Licensed under the GNU General Public License v3
|
||||
~
|
||||
~ This is free software: you can redistribute it and/or modify it under
|
||||
~ the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation either version 3 of the License, or (at your option) any later version.
|
||||
~
|
||||
~ This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
~ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
~ See the GNU General Public License for more details.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<declare-styleable name="BaselineGridTextView">
|
||||
<attr name="lineHeightMultiplierHint" format="float" />
|
||||
<attr name="lineHeightHint" />
|
||||
<attr name="maxLinesByHeight" format="boolean" />
|
||||
<attr name="android:textAppearance" />
|
||||
<attr name="android:fontFamily" />
|
||||
</declare-styleable>
|
||||
</resources>
|
21
app/src/main/res/values/color_icon_view_attrs.xml
Normal file
21
app/src/main/res/values/color_icon_view_attrs.xml
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) 2019 Hemanth Savarala.
|
||||
~
|
||||
~ Licensed under the GNU General Public License v3
|
||||
~
|
||||
~ This is free software: you can redistribute it and/or modify it under
|
||||
~ the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation either version 3 of the License, or (at your option) any later version.
|
||||
~
|
||||
~ This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
~ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
~ See the GNU General Public License for more details.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<declare-styleable name="ColorIconsImageView">
|
||||
<attr name="iconBackgroundColor" format="color" />
|
||||
<attr name="colorIconColor" format="color" />
|
||||
<attr name="icon" format="reference" />
|
||||
</declare-styleable>
|
||||
</resources>
|
23
app/src/main/res/values/contributor_attrs.xml
Normal file
23
app/src/main/res/values/contributor_attrs.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (c) 2019 Hemanth Savarala.
|
||||
~
|
||||
~ Licensed under the GNU General Public License v3
|
||||
~
|
||||
~ This is free software: you can redistribute it and/or modify it under
|
||||
~ the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation either version 3 of the License, or (at your option) any later version.
|
||||
~
|
||||
~ This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
~ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
~ See the GNU General Public License for more details.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<declare-styleable name="ContributorsView">
|
||||
<attr name="profile_url" format="string" />
|
||||
<attr name="profile_name" format="string" />
|
||||
<attr name="profile_summary" format="string" />
|
||||
<attr name="profile_link" format="string" />
|
||||
</declare-styleable>
|
||||
</resources>
|
37
app/src/main/res/values/lrc_view_attrs.xml
Normal file
37
app/src/main/res/values/lrc_view_attrs.xml
Normal file
|
@ -0,0 +1,37 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (c) 2019 Hemanth Savarala.
|
||||
~
|
||||
~ Licensed under the GNU General Public License v3
|
||||
~
|
||||
~ This is free software: you can redistribute it and/or modify it under
|
||||
~ the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation either version 3 of the License, or (at your option) any later version.
|
||||
~
|
||||
~ This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
~ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
~ See the GNU General Public License for more details.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<declare-styleable name="LrcView">
|
||||
<attr name="lrcTextSize" format="dimension" />
|
||||
<attr name="lrcLineSpaceSize" format="dimension" />
|
||||
<attr name="lrcNormalTextColor" format="reference|color" />
|
||||
<attr name="lrcCurrentTextColor" format="reference|color" />
|
||||
<attr name="lrcTouchDelay" format="integer" />
|
||||
<attr name="noLrcTextSize" format="dimension" />
|
||||
<attr name="noLrcTextColor" format="reference|color" />
|
||||
<attr name="indicatorLineHeight" format="dimension" />
|
||||
<attr name="indicatorTextSize" format="dimension" />
|
||||
<attr name="indicatorTextColor" format="reference|color" />
|
||||
<attr name="currentIndicateLrcColor" format="reference|color" />
|
||||
<attr name="indicatorTouchDelay" format="integer" />
|
||||
<attr name="indicatorLineColor" format="reference|color" />
|
||||
<attr name="indicatorStartEndMargin" format="dimension" />
|
||||
<attr name="iconLineGap" format="dimension" />
|
||||
<attr name="playIconWidth" format="dimension" />
|
||||
<attr name="playIconHeight" format="dimension" />
|
||||
<attr name="playIcon" format="reference" />
|
||||
</declare-styleable>
|
||||
</resources>
|
Loading…
Add table
Add a link
Reference in a new issue