From 3d8c08a4a148d2824899d3a64defab37d18d378c Mon Sep 17 00:00:00 2001 From: zengfantian Date: Thu, 29 Oct 2015 21:52:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=B9=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E6=A0=8F=E5=8F=B3=E4=BE=A7=E6=8C=89=E9=92=AE=E7=9A=84=E6=98=BE?= =?UTF-8?q?=E7=A4=BA/=E5=8D=A0=E4=BD=8D=E7=8A=B6=E6=80=81=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../android/library/base/BaseActivity.java | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/com/zftlive/android/library/base/BaseActivity.java b/src/com/zftlive/android/library/base/BaseActivity.java index a642831..dafb1d9 100644 --- a/src/com/zftlive/android/library/base/BaseActivity.java +++ b/src/com/zftlive/android/library/base/BaseActivity.java @@ -1,5 +1,9 @@ package com.zftlive.android.library.base; +import java.lang.ref.WeakReference; +import java.lang.reflect.Field; +import java.lang.reflect.Method; + import android.app.Activity; import android.content.Context; import android.graphics.Color; @@ -18,11 +22,9 @@ import android.view.Window; import android.view.WindowManager; import android.widget.Button; import android.widget.TextView; + import com.zftlive.android.library.MApplication; import com.zftlive.android.library.widget.SwipeBackLayout; -import java.lang.ref.WeakReference; -import java.lang.reflect.Field; -import java.lang.reflect.Method; /** * android 系统中的四大组件之一Activity基类 @@ -381,9 +383,17 @@ public abstract class BaseActivity extends FragmentActivity implements IBaseActi * 隐藏标题栏右侧[完成/提交]按钮 */ public void hiddenRightDoneBtn() { + hiddenRightDoneBtn(View.GONE); + } + + /** + * 隐藏标题栏右侧[完成/提交]按钮 + * @param mViewStatus 按钮的状态 View.GONE/View.INVISIBLE + */ + public void hiddenRightDoneBtn(int mViewStatus) { Button mDoneBtn = (Button) findViewById(BaseView.gainResId(mApplication, BaseView.ID, "btn_done")); - mDoneBtn.setVisibility(View.GONE); + mDoneBtn.setVisibility(mViewStatus); } /**