Search in sources :

Example 6 with MaterialTabs

use of io.karim.MaterialTabs in project cw-omnibus by commonsguy.

the class MainActivity method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    pager = (ViewPager) findViewById(R.id.pager);
    adapter = new SampleAdapter(this, getFragmentManager());
    pager.setAdapter(adapter);
    MaterialTabs tabs = (MaterialTabs) findViewById(R.id.tabs);
    tabs.setViewPager(pager);
}
Also used : MaterialTabs(io.karim.MaterialTabs)

Example 7 with MaterialTabs

use of io.karim.MaterialTabs in project cw-omnibus by commonsguy.

the class MainActivity method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    pager = (ViewPager) findViewById(R.id.pager);
    pager.setAdapter(new SampleAdapter(this, getFragmentManager()));
    MaterialTabs tabs = (MaterialTabs) findViewById(R.id.tabs);
    tabs.setViewPager(pager);
}
Also used : MaterialTabs(io.karim.MaterialTabs)

Example 8 with MaterialTabs

use of io.karim.MaterialTabs in project cw-omnibus by commonsguy.

the class MainActivity method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    pager = (ViewPager) findViewById(R.id.pager);
    adapter = new SamplePagerAdapter(this, getFragmentManager());
    pager.setAdapter(adapter);
    MaterialTabs tabs = (MaterialTabs) findViewById(R.id.tabs);
    tabs.setViewPager(pager);
}
Also used : MaterialTabs(io.karim.MaterialTabs)

Example 9 with MaterialTabs

use of io.karim.MaterialTabs in project cw-omnibus by commonsguy.

the class EmPubLiteActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    pager = (ViewPager) findViewById(R.id.pager);
    adapter = new ContentsAdapter(this);
    pager.setAdapter(adapter);
    MaterialTabs tabs = (MaterialTabs) findViewById(R.id.tabs);
    tabs.setViewPager(pager);
}
Also used : MaterialTabs(io.karim.MaterialTabs)

Example 10 with MaterialTabs

use of io.karim.MaterialTabs in project cw-omnibus by commonsguy.

the class MainActivity method onReady.

@Override
protected void onReady(Bundle savedInstanceState) {
    setContentView(R.layout.main);
    ViewPager pager = (ViewPager) findViewById(R.id.pager);
    pager.setAdapter(new SampleAdapter(this, getFragmentManager()));
    MaterialTabs tabs = (MaterialTabs) findViewById(R.id.tabs);
    tabs.setViewPager(pager);
}
Also used : MaterialTabs(io.karim.MaterialTabs) ViewPager(android.support.v4.view.ViewPager)

Aggregations

MaterialTabs (io.karim.MaterialTabs)10 ViewPager (android.support.v4.view.ViewPager)2 SharedPreferences (android.content.SharedPreferences)1 Consumer (io.reactivex.functions.Consumer)1