diff --git a/doric-android/doric/src/main/java/pub/doric/navbar/BaseDoricNavBar.java b/doric-android/doric/src/main/java/pub/doric/navbar/BaseDoricNavBar.java index ceb03377..addc469e 100644 --- a/doric-android/doric/src/main/java/pub/doric/navbar/BaseDoricNavBar.java +++ b/doric-android/doric/src/main/java/pub/doric/navbar/BaseDoricNavBar.java @@ -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 public boolean isHidden() { return getVisibility() != VISIBLE;