android:add setBackIconVisible for BaseTitleBar

This commit is contained in:
pengfei.zhou 2020-02-13 15:37:08 +08:00 committed by osborn
parent 565998c763
commit 81cbc27c5a

View File

@ -57,6 +57,10 @@ public class BaseDoricNavBar extends FrameLayout implements IDoricNavBar {
}); });
} }
public void setBackIconVisible(boolean visible) {
findViewById(R.id.tv_back).setVisibility(visible ? View.VISIBLE : View.GONE);
}
@Override @Override
public boolean isHidden() { public boolean isHidden() {
return getVisibility() != VISIBLE; return getVisibility() != VISIBLE;