Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Florent CHAMPIGNY
    @florent37
    you can also replace the header view (the big image) and add another view for example
    Jonathan Andersson
    @ja1984
    That's awesome man! :)
    I'm having a few issues still
    The images don't seem to load
    viewPager.setImageUrl is the equlant to setting R.id.materialviewpager_imageHeader manually right?
    Jonathan Andersson
    @ja1984
    (never mind, my own fault AGAIN)
    This message was deleted
    Florent CHAMPIGNY
    @florent37
    yes, just re-set the same id R.id.materialviewpager_imageHeader to your header
    header's imageview*
    Jonathan Andersson
    @ja1984
    Cool cool cool
    Again, you have really helped me out with this lib ;D
    I hope it's OK for me to ask some questions in here :)
    Jonathan Andersson
    @ja1984
    Just got a quick question, one last :)
    There is some padding in your example so that the card are rendered above the background image, is this possible to remove? I would like to have my content rendered below the image
    Florent CHAMPIGNY
    @florent37
    let's go private :)
    Norris Aboagye Boateng
    @laylizzlle
    Quick return on the toolbar and the pager title doesn't seem to work well for me
    Florent CHAMPIGNY
    @florent37
    I thought I fixed it, can you describe what happens please
    ans send me record / screenshot ;)
    Jonathan Andersson
    @ja1984
    Is there any way to set an background color om the view?
    Florent CHAMPIGNY
    @florent37
    which view ?
    what view ?
    Jonathan Andersson
    @ja1984
    Uhm
    I'm having problems with the listview being ontop of the background image
    It's fine in my scrollview, but it makes for some problems in my recycleview
    markuspaschi
    @markuspaschi
    Love your library so much as well.
    Im just asking for an cosmetic feature. When u scroll half way up, so the header_logo (TextView/Imageview which says "material is good") is kinda between fully expanded and only tabs visible. It stays that way when u scroll to the left or right. Is it possible to lock it in when u swipe left or right so its either fully expanded or only tabs visible.
    Just cosmetic as i said no hassle :)
    Quentin Colle
    @quentin41500
    Hi, awesome job ! Keep it up. Quick question, How can I access the color of the tabs and change it ? Thanks
    markuspaschi
    @markuspaschi
    @quentin41500 U can change the color in your MainActivity in the setPrimaryItem(...), there is your color Ressource color = getResources().getColor(R.color.blue); for example.
    Quentin Colle
    @quentin41500
    Sorry, I meant the text color of the tabs only, any idea for that ?
    I know I can change it with the theme, but it changes the color of my other textviews. So I was wondering if they were an attribute to change it especially. Maybe by creating a custom tab ?
    markuspaschi
    @markuspaschi
    own_resource_file.png

    Well, i didnt have to, but if u want to it should be possible:

    In your main_activity.xml look for app:viewpager_pagerTitleStrip="@layout/material_view_pager_pagertitlestrip_standard"

    create your own layout: and like it :

    app:viewpager_pagerTitleStrip="@layout/your_resource file"
    There might be a more clean way. Just my idea :)

    (app:pstsTextStyle="your_style")
    markuspaschi
    @markuspaschi
    Its to late to edit my message before, but just found this Method
    mViewPager.getPagerTitleStrip().setTextColor(Color.CYAN); working great and clean!
    Quentin Colle
    @quentin41500
    That works great indeed
    I just have the selected tab in another color (unselected in white, selected in black), do you know why ? I'm only added this line materialViewPager.getPagerTitleStrip().setTextColor(Color.WHITE); from the tutorial
    I'm only adding
    Quentin Colle
    @quentin41500
    Ok I found a solution: I'm using getPagerTitleStrip().setTextColor(Color.WHITE); and app:pstsTextColorSelected="@color/white" with a custom PagerSlidingTabStrip
    Quentin Colle
    @quentin41500
    Using a custom tab layout, I used android:textColor="#80FFFFFF" for the unselected tab and app:pstsTextColorSelected="@color/white" for the selected tab
    markuspaschi
    @markuspaschi
    @florent37 is it possible to dynamically (de)&collapse the viewpager header? I have a fragment to be shown full size and I want to show the Toolbar+Tabs only :)
    Florent CHAMPIGNY
    @florent37
    Hi
    thanks @quentin41500 :)
    @markuspaschi it's not possible without scrolling for now
    don't know how I can implement it :/
    Quentin Colle
    @quentin41500
    Hi @florent37, I would like to add onclick events to the buttons I added to the header. Therefor, is there a way to get the header view from MaterialViewPager in Java ? What's your advice ?
    Florent CHAMPIGNY
    @florent37
    you just replaced the header view ?
    if yes, just perform a findViewById should work :)
    Quentin Colle
    @quentin41500
    Thank you very much, I tried this before with a mistake of my own
    I might have an issue for you, I'm trying to see where and why it happens and then I'll get back to you.
    Yogesh Ojha
    @yogeshojha

    Hello
    Where to edit this line?

    <com.github.florent37.materialviewpager.MaterialViewPager` ... app:hideToolbarAndTitle="false" ... />