1

我从https://github.com/pakerfeldt/android-viewflow下载了一个名为 viewflow 的视图,我只想使用其中的 CircleFlowIndicator 将它与我的 RealViewSwitcher 连接,所以我想修改代码但是当我尝试使用我发现的类 CircleFlowIndicator

int activeType = a.getInt(R.styleable.CircleFlowIndicator_activeType,
                STYLE_FILL);

导致错误 Resource not found 我的意思是 R.styleable 导致错误我想知道如何解决问题,我尝试复制 \res\values\attrs.xml 但我没有从中受益,我看到了文件\bin\R.txt

int attr activeColor 0x7f010001
int attr activeType 0x7f010007
int attr centered 0x7f010004
int attr clipPadding 0x7f010009
int attr customTypeface 0x7f010012
int attr fadeOut 0x7f010005
int attr footerColor 0x7f010010
int attr footerLineHeight 0x7f01000f
int attr footerTriangleHeight 0x7f010011
int attr inactiveColor 0x7f010002
int attr inactiveType 0x7f010006
int attr radius 0x7f010003
int attr selectedBold 0x7f01000b
int attr selectedColor 0x7f01000a
int attr selectedSize 0x7f01000c
int attr sidebuffer 0x7f010000
int attr textColor 0x7f01000d
int attr textSize 0x7f01000e
int attr titlePadding 0x7f010008
int drawable icon 0x7f020000
int id fill 0x7f030001
int id stroke 0x7f030000
int string app_name 0x7f040001
int string hello 0x7f040000
int[] styleable CircleFlowIndicator { 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007 }
int styleable CircleFlowIndicator_activeColor 0
int styleable CircleFlowIndicator_activeType 6
int styleable CircleFlowIndicator_centered 3
int styleable CircleFlowIndicator_fadeOut 4
int styleable CircleFlowIndicator_inactiveColor 1
int styleable CircleFlowIndicator_inactiveType 5
int styleable CircleFlowIndicator_radius 2
int[] styleable TitleFlowIndicator { 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012 }
int styleable TitleFlowIndicator_clipPadding 1
int styleable TitleFlowIndicator_customTypeface 10
int styleable TitleFlowIndicator_footerColor 8
int styleable TitleFlowIndicator_footerLineHeight 7
int styleable TitleFlowIndicator_footerTriangleHeight 9
int styleable TitleFlowIndicator_selectedBold 3
int styleable TitleFlowIndicator_selectedColor 2
int styleable TitleFlowIndicator_selectedSize 4
int styleable TitleFlowIndicator_textColor 5
int styleable TitleFlowIndicator_textSize 6
int styleable TitleFlowIndicator_titlePadding 0
int[] styleable ViewFlow { 0x7f010000 }
int styleable ViewFlow_sidebuffer 0

我认为这可能有用但我不明白,任何人都可以帮助我将 CircleFlowIndicator 与我的 RealViewSwitcher 一起使用

4

0 回答 0