ogaclejapan / SmartTabLayout

A custom ViewPager title strip which gives continuous feedback to the user when scrolling
Apache License 2.0
7.09k stars 1.34k forks source link

Problem with smarttab? #147

Closed zonorion closed 8 years ago

zonorion commented 8 years ago

Hi all, I used smarttablayout in my app. http://i.stack.imgur.com/BTtfx.png When i run app, Fragment TIN TUC and XEM DIEM be created. Now i want when i run app, only Fragment TIN TUC be created.

Could you tell me how can i custom it? Thanks so much.

ogaclejapan commented 8 years ago

Hi, @zonorion

The link is not found. Can you upload again?

zonorion commented 8 years ago

Sr, you can copy my link and paste to browser, don't click .

ogaclejapan commented 8 years ago

Hi, @zonorion Oh.. sorry I saw it now.

Set the ViewPager#setAdapter(...) only in Fragment of TIN TUC And, set to SmartTabLayout#setViewPager(...)

Set the adapter again by the addition of XEM DIEM when the XEM DIEM is needed. Set the ViewPager#setAdapter(...) in Fragment TIN TUC and XEM DIEM And, set to SmartTabLayout#setViewPager(...)

How about this?