No style applied
See original GitHub issueHello there! I’m using the library and it works perfect. The only problem I have is that you can not apply styles
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:id="@+id/viewFlipper"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:addStatesFromChildren="true"
android:background="@color/azul_us"
android:orientation="vertical" >
<com.daimajia.slider.library.SliderLayout
android:id="@+id/slider"
android:layout_width="match_parent"
android:layout_height="200dp" />
<com.daimajia.slider.library.Indicators.PagerIndicator
android:id="@+id/custom_indicator"
style="@style/AndroidImageSlider_Magnifier_Oval_Black" />
</LinearLayout>
<style name="AndroidImageSlider_Magnifier_Oval_Black">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:gravity">right</item>
<item name="android:paddingLeft">2dp</item>
<item name="android:paddingRight">2dp</item>
<item name="shape">rect</item>
<item name="padding_left">3dp</item>
<item name="padding_right">3dp</item>
<item name="padding_top">4dp</item>
<item name="padding_bottom">4dp</item>
<item name="selected_color">#7ac943</item>
<item name="unselected_color">#33000000</item>
<item name="selected_width">8dp</item>
<item name="selected_height">8dp</item>
<item name="unselected_width">6dp</item>
<item name="unselected_height">6dp</item>
</style>
Thanks!!
Issue Analytics
- State:
- Created 9 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Why is my CSS style not being applied? - Stack Overflow
I moved the reference to Site.css below the bootstrap.css file, which does indeed change the appearance of that text, but still not italicized, ......
Read more >CSS Style Not Being Applied (Example) | Treehouse Community
CSS Style Not Being Applied. After following along with the video and making changes to my css the h1 and h2 tags don't...
Read more >How to fix CSS not linking to your HTML document
How to fix CSS not linking to your HTML document ... omit the rel attribute from the <link> tag then the style won't...
Read more >not() - CSS: Cascading Style Sheets - MDN Web Docs
The :not() CSS pseudo-class represents elements that do not match a list of selectors. Since it prevents specific items from being selected, ...
Read more >HTML Styles CSS - W3Schools
Tip: The word cascading means that a style applied to a parent element ... The file must not contain any HTML code, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ahhhhhh, sorry for that. Thanks for the help again
@daimajia the attributes does not work if I put in the XML element 😦
<com.daimajia.slider.library.Indicators.PagerIndicator android:id=“@+id/custom_indicator” android:layout_width=“wrap_content” android:layout_height=“wrap_content” android:gravity=“center” custom:selected_color=“@color/verde_us” custom:unselected_color=“#55555555” custom:shape=“rect” custom:selected_padding_left=“3dp” custom:selected_padding_right=“3dp” custom:unselected_padding_left=“3dp” custom:unselected_padding_right=“3dp” custom:selected_width=“8dp” custom:selected_height=“8dp” custom:unselected_width=“4dp” custom:unselected_height=“4dp” />
In my phone the apk looks greats with the custom indicator (the bird)
I’m using eclipse…