开发工具:
文件大小: 3mb
下载次数: 0
上传时间: 2016-10-11
详细说明: USAGE 1.Currently supported Activity, Fragment, DialogFragment,Dilaog and View. 2.By following simple operation, it may have a sliding function. by SliderUtils.attach* public class SampleActivity extends Activity { @Override protected void onCreate(B undle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_slider); SliderUtils.attachActivity(this, mConfig); } } or by extends: public class ExtendsActivity extends SliderActivity { } or by xml: Note: activity of manifest need to override the configured theme: android: windowIsTranslucent, otherwise slide open the background is black. If the device is greater than the version of android L, you can use the following method instead: SliderUtils.attachUi(this, null); Utils.convertActivityToTranslucent activity) If extends SliderFragment, you need to pay attention to is: SliderFragment onCreateView function have been final overwritten, so another abstract methods to achieve creatingView and returns the layout of inflate objects. public class ExtendsFragment extends SliderFragment { @Override public View creatingView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_entends, container, false); } } or by SliderUtils public class SampleFragment extends Fragment { private ISlider iSlider; private View rootView; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { rootView = inflater.inflate(R.layout.fragment_sample, container, false); SliderUtils.attachFragment(this, rootView,null) return iSlider.getSliderView(); } } DialogFragment: extends SliderDialogFragment or like this: public class SlidabelDialogFragment extends DialogFragment { protected ISlider iSlider; @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); iSlider = SliderUtils.attachDialog(getActivity(),getDialog(),mConfig); } } For more details, please refer to the code DEPENDENCIES dependencies{ compile 'com.komi.slider:slider:0.4.0' } ISSUES 1.Welcome to the Issues and refine the project, if you like, please click on the star, later will expand more useful features! 2.This project extends from SwipeBackLayout and Slidr AUTHOR KobeKomi ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.