jjobes / SlideDateTimePicker

A combined DatePicker and TimePicker in a DialogFragment for Android
Apache License 2.0
836 stars 235 forks source link

how to hide a tab, keep one tab date or time ?? #20

Open buffol opened 8 years ago

buffol commented 8 years ago

i want hide time tab,keep date tab, how i do?

azizimusa commented 8 years ago

same question. But how to only enable date picker? I want to disable time picker.

mag2007 commented 8 years ago

Not possible, see Issue #9

fparkar commented 7 years ago

Below is how I made

In private void setupViews(View v), I added a line as below.

mSlidingTabLayout.setVisibility(View.INVISIBLE);

This way I just see date picker and time picker get hided...

patrickmuhi commented 7 years ago

@fparkar @buffol came across this but as you swipe left you will still see the time tab.

So i edited the ViewerPageAdapter on the getCount method and make it return 1 instead or 2