question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello 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!!

screenshot_2014-08-22-07-27-29

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
benoffi7commented, Aug 25, 2014

Ahhhhhh, sorry for that. Thanks for the help again

1reaction
benoffi7commented, Aug 24, 2014

@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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found