TopTV v3.0.1版本的 MD5 值为:0fc1b9ce94885bc92edd11a6ee3e5932
以下内容为反编译后的 FrontView.java 源代码,内容仅作参考
package com.toptvone.toptviptvbox.view.activity;
import a.b.k.c;
import android.net.Uri;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.VideoView;
import com.toptvone.toptviptvbox.R;
public class FrontView extends c {
public boolean f25073d = false;
public class a implements View.OnClickListener {
public final View f25074b;
public final View f25075c;
public a(View view, View view2) {
this.f25074b = view;
this.f25075c = view2;
}
@Override
public void onClick(View view) {
FrontView frontView;
boolean z = false;
if (FrontView.this.f25073d) {
this.f25074b.setVisibility(0);
DisplayMetrics displayMetrics = new DisplayMetrics();
FrontView.this.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) this.f25075c.getLayoutParams();
float f2 = displayMetrics.density;
layoutParams.width = (int) (200.0f * f2);
layoutParams.height = (int) (150.0f * f2);
layoutParams.leftMargin = (int) (20.0f * f2);
layoutParams.topMargin = (int) (f2 * 50.0f);
this.f25075c.setLayoutParams(layoutParams);
frontView = FrontView.this;
} else {
this.f25074b.setVisibility(8);
DisplayMetrics displayMetrics2 = new DisplayMetrics();
FrontView.this.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics2);
FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) this.f25075c.getLayoutParams();
layoutParams2.width = displayMetrics2.widthPixels;
layoutParams2.height = displayMetrics2.heightPixels;
layoutParams2.leftMargin = 0;
layoutParams2.topMargin = 0;
this.f25075c.setLayoutParams(layoutParams2);
frontView = FrontView.this;
z = true;
}
frontView.f25073d = z;
}
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.activity_front_view);
View findViewById = findViewById(R.id.imageview_image);
View findViewById2 = findViewById(R.id.layout_to_hide);
VideoView videoView = (VideoView) findViewById(R.id.video_view);
videoView.setVideoURI(Uri.parse("https://videocdn.bodybuilding.com/video/mp4/62000/62792m.mp4"));
videoView.start();
findViewById.setOnClickListener(new a(findViewById2, findViewById));
}
}