12345678910111213141516171819202122232425262728293031323334 |
- package com.ynstkz.shitu.android.base;
- import android.content.Context;
- import android.graphics.Color;
- import android.os.Bundle;
- import android.support.annotation.Nullable;
- import android.support.v4.app.Fragment;
- import android.view.LayoutInflater;
- import android.view.View;
- import android.view.ViewGroup;
- import com.muddzdev.styleabletoastlibrary.StyleableToast;
- /**
- * 作者:fuchangle on 2018/1/29 11:38
- */
- public class BaseFragment extends Fragment{
- @Nullable
- @Override
- public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
- return super.onCreateView(inflater, container, savedInstanceState);
- }
- protected void showToast(Context context, String content){
- new StyleableToast
- .Builder(context)
- .text(content)
- .textColor(Color.WHITE)
- .backgroundColor(Color.BLACK)
- .show();
- }
- }
|