Advertisement
Guest User

Untitled

a guest
Feb 24th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. package ui.fragments.base;
  2.  
  3. import android.os.Bundle;
  4. import android.support.annotation.Nullable;
  5. import android.widget.ImageView;
  6. import android.widget.TextView;
  7.  
  8. import butterknife.BindView;
  9. import il.co.ewave.elal.R;
  10.  
  11. /**
  12. * Created by Avishay.Peretz on 24/01/2019.
  13. */
  14. public abstract class BaseTitleFragment extends BaseButterKnifeFragment
  15. {
  16. @BindView(R.id.tv_name_screen_title)
  17. protected TextView mTvTitle;
  18.  
  19. protected ImageView mIvBackArrow;
  20.  
  21. @Override
  22. public void onActivityCreated(@Nullable final Bundle savedInstanceState)
  23. {
  24. super.onActivityCreated(savedInstanceState);
  25. setScreenTitle();
  26. setBackBtn();
  27. }
  28.  
  29. protected abstract void setScreenTitle();
  30.  
  31. protected abstract void setBackBtn();
  32.  
  33. protected abstract void doOnBack();
  34.  
  35. // protected void enableBackButton(final boolean iIsEnabled)
  36. // {
  37. // mIvBackArrow.setVisibility(iIsEnabled ? View.VISIBLE : View.INVISIBLE);
  38. // mIvBackArrow.setEnabled(iIsEnabled);
  39. //// mIvBackArrow.setClickable(iIsEnabled);
  40. //// mIvBackArrow.setBackground(null);
  41. //
  42. // }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement