CCIPTV PRO v3.0.9.1版本的 MD5 值为:e78d4d980447be4a9f823314f45bbf03
以下内容为反编译后的 FrontView.java 源代码,内容仅作参考
package boxbr.apksrebrand.smarters.view.activity;
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.iptvsmarters.cciptv.R;
import d.a.k.c;
public class FrontView extends c {
public boolean r = false;
public class a implements View.OnClickListener {
public final View b;
public final View c;
public a(View view, View view2) {
this.b = view;
this.c = view2;
}
@Override
public void onClick(View view) {
FrontView frontView;
boolean z = false;
if (FrontView.this.r) {
this.b.setVisibility(0);
DisplayMetrics displayMetrics = new DisplayMetrics();
FrontView.this.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) this.c.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.c.setLayoutParams(layoutParams);
frontView = FrontView.this;
} else {
this.b.setVisibility(8);
DisplayMetrics displayMetrics2 = new DisplayMetrics();
FrontView.this.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics2);
FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) this.c.getLayoutParams();
layoutParams2.width = displayMetrics2.widthPixels;
layoutParams2.height = displayMetrics2.heightPixels;
layoutParams2.leftMargin = 0;
layoutParams2.topMargin = 0;
this.c.setLayoutParams(layoutParams2);
frontView = FrontView.this;
z = true;
}
frontView.r = 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));
}
}