Skip to content

Commit

Permalink
改为1像素,完全透明 Update TermuxActivity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ewt45 authored Mar 27, 2024
1 parent 8a89d80 commit b0f9939
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/termux/app/TermuxActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1035,8 +1035,9 @@ private void createOverlayView() {
android.widget.TextView textView = new android.widget.TextView(this);
textView.setText("测试Overlay");
textView.setBackgroundColor( android.graphics.Color.RED);
android.view.WindowManager.LayoutParams rootParams = new android.view.WindowManager.LayoutParams(-2, -2, 2038, 32 | 8, 1);//TYPE_APPLICATION_OVERLAY, FLAG_NOT_TOUCH_MODAL | FLAG_NOT_FOCUSABLE, RGBA_8888);
android.view.WindowManager.LayoutParams rootParams = new android.view.WindowManager.LayoutParams(1, 1, 2038, 32 | 8, 1);//TYPE_APPLICATION_OVERLAY, FLAG_NOT_TOUCH_MODAL | FLAG_NOT_FOCUSABLE, RGBA_8888);
rootParams.gravity = android.view.Gravity.START | android.view.Gravity.TOP;
rootParams.alpha = 0;
windowManager.addView(textView, rootParams);
}

Expand Down

0 comments on commit b0f9939

Please sign in to comment.