Skip to content

Instantly share code, notes, and snippets.

@alekseytimoshchenko
Created February 21, 2019 10:13
Show Gist options
  • Save alekseytimoshchenko/6f9d98fb138cd1b62bffe62159b55c92 to your computer and use it in GitHub Desktop.
Save alekseytimoshchenko/6f9d98fb138cd1b62bffe62159b55c92 to your computer and use it in GitHub Desktop.
package ui.fragments.base;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import il.co.ewave.elal.R;
/**
* Created by Avishay.Peretz on 24/01/2019.
*/
public abstract class BaseTitleFragment extends BaseButterKnifeFragment
{
@BindView(R.id.tv_name_screen_title)
protected TextView mTvTitle;
protected ImageView mIvBackArrow;
@Override
public void onActivityCreated(@Nullable final Bundle savedInstanceState)
{
super.onActivityCreated(savedInstanceState);
setScreenTitle();
setBackBtn();
}
protected abstract void setScreenTitle();
protected abstract void setBackBtn();
protected abstract void doOnBack();
// protected void enableBackButton(final boolean iIsEnabled)
// {
// mIvBackArrow.setVisibility(iIsEnabled ? View.VISIBLE : View.INVISIBLE);
// mIvBackArrow.setEnabled(iIsEnabled);
//// mIvBackArrow.setClickable(iIsEnabled);
//// mIvBackArrow.setBackground(null);
//
// }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment