Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Quentin Colle
    @quentin41500
    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" ... />

    Jan Frederick Eick
    @jfeick
    my RecyclerView is somehow rendered behind the Header :(
    Yogesh Ojha
    @yogeshojha
    can any one tell me what wrong I did here? http://m.ctrlv.in/580509
    Dominik
    @taar1
    there is a bug in the tutorial. you write "mViewPager.setAdapter() ....." which is wrong. Correctly it should be: "mViewPager.getViewPager().setAdapter()".
    jaqquery
    @jaqquery
    Hi, seriously I'm a noon, I tried to compile this library on my Android Studio, and I can't see any preview, which API should I begin with? Sorry for my noobness.
    Noob*
    Arnav Gupta
    @championswimmer
    Is there any way where I can hide the toolbar but the tabs remain visible ?
    (When I scroll up)
    willysharp5
    @willysharp5
    Florent Love your tool. How can i use it with a navigation drawer and also filling the cards with data from a remote sever using recyclview with pull to refresh as well as endless scroll. Am a noob so if you show some sample code or point me to article. Thanks
    TresorDeKelloggS
    @TresorDeKelloggS
    This message was deleted
    Is it normal that I can not compile : Failed to resolve: com.github.florent37:materialviewpager:1.0.5.2
    Yogesh Ojha
    @yogeshojha
    @willysharp5 found the tutorial? Even I am noob, help me plz :smile:
    lokeshsuhas
    @lokeshsuhas
    How to handle the back button from the view pager fragment
    thatisazam
    @thatisazam
    @lokeshsuhas just override the activity's onBackPressed and notify the fragment via an interface and perform fragment specific task. this is not library-related question fyi
    thatisazam
    @thatisazam
    @willysharp5 @yogeshojha the library is compatible with any material drawer library...recycler view remote loading can be done similarly like list view and grid view by renotifying the adapter with notifydatachanged() after repopulating the adapter's data after the server call. As for endless scroll you can read by googling recyclerview endless scrolling. your side questions did not meet the purpose of this channel fyi
    Haemin-Jung
    @JungHaeMin
    This message was deleted
    Ankita Singh
    @Ankita1405
    hey can any1 plz help me out
    everythng is working fine bt on clcik of sidedrawer icon my sidedrawer doesnt open
    plzzz hellppppp me its urgent
    hongzhou85
    @hongzhou85
    @quentin41500 Hi I added buttons in the header too. However, there is one issue, the button is clickable (at the same location) even after the header is gone after scrolling. Do you encounter the same issue?
    Ghost
    @ghost~5551f9d215522ed4b3e04581
    hello guys! So here is a list of found bugs in the demo application:
    1. On orientation change, the logo dissapear
    2. On RecyclerViewFragment scroll if you scroll down and swipe a little to the right, the tabs titles appear only as text, no background
    3. All placed buttons in the header as clickable even if you scroll down (invisible, but if you click on same location ... the buttons are active)
    4. The navigation drawer is not working on home button click. It works only if you drag it from left to right.
    Florent CHAMPIGNY
    @florent37
    Oh thanks fort that list, I didn't saw them. I'll try to fix them quickly ;)
    Ghost
    @ghost~5551f9d215522ed4b3e04581
    Thank you! I wish I was able to help you, but I'm a beginner :| but time passes quick and knowledge comes fast :)
    Ghost
    @ghost~5551f9d215522ed4b3e04581
    any idea how to display multiple cardviews on screen? For example if I'm in landscape, I have enough space for 2. For tablets ... even more
    Quentin Colle
    @quentin41500
    @hongzhou85 no I don't !
    Ghost
    @ghost~5551f9d215522ed4b3e04581
    @florent37 thanks for demo app update. One more thing, for sliding menu the title is still clickable :)
    Ghost
    @ghost~5551f9d215522ed4b3e04581
    also @florent37 please tell me what is the best way to implement multiple cardviews on landscape for bigger screens or any orientation on tablets. Should I use a gridview? I don't want you to make the example for me, I want to make it myself :) I need just an advice. thanks again
    Florent CHAMPIGNY
    @florent37

    hi for the sliding menu, just have to set the drawer layout an onClickListener, and it's done :)

    You can use recyclerView with a GridLayoutManager to display multiple cardsview on landcape :)