Created
February 21, 2019 10:13
-
-
Save alekseytimoshchenko/6f9d98fb138cd1b62bffe62159b55c92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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