1、主播中心回复原样子,不修改

2、消息中心增加返回键
This commit is contained in:
老皮 2024-09-13 10:06:41 +08:00
parent d181e0e743
commit bfb172c1e8
3 changed files with 15 additions and 10 deletions

View File

@ -11,6 +11,7 @@ import android.os.Build;
import android.os.Handler;
import android.provider.MediaStore;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
@ -94,14 +95,6 @@ public class WebViewActivity extends AbsActivity {
// getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
}
@Override
public void backClick(View v) {
if (mWebView.canGoBack()){
mWebView.goBack();
}else {
finish();
}
}
@Override
protected void main() {

View File

@ -71,7 +71,7 @@ public class MainMessageViewHolderForActivity extends AbsMainViewHolder {
private String type = null;
private List<ImUserBean> listUserBean = new ArrayList<>();
private LinearLayout topLayout, ltNodataMsg;
private ImageView imgNewsNotice, imgNewsInteraction, imgNewsOnline, imgSystemMessages;
private ImageView imgNewsNotice, imgNewsInteraction, imgNewsOnline, imgSystemMessages,btn_back;
private Handler netHandler;
private Activity mContext;
@ -119,6 +119,7 @@ public class MainMessageViewHolderForActivity extends AbsMainViewHolder {
imgNewsInteraction = (ImageView) findViewById(R.id.img_news_interaction);
imgSystemMessages = (ImageView) findViewById(R.id.img_system_messages);
imgNewsOnline = (ImageView) findViewById(R.id.img_news_online);
btn_back = (ImageView) findViewById(R.id.btn_back);
netHandler = new Handler();
}

View File

@ -9,11 +9,22 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/btn_back"
android:layout_width="40dp"
android:layout_height="40dp"
android:onClick="backClick"
android:layout_gravity="start|center_vertical"
android:padding="9dp"
android:src="@mipmap/icon_back"
android:tint="@color/textColor" />
<TextView
android:id="@+id/top_noback"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="18dp"
android:layout_marginStart="50dp"
android:layout_gravity="start|center_vertical"
android:text="@string/message"
android:textColor="#ff161616"
android:textSize="24sp"