no message

This commit is contained in:
liujing
2021-08-04 17:20:25 +08:00
parent dcc65fb74b
commit ea5df5b17b
2 changed files with 11 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ import android.content.pm.PackageManager;
import android.os.Bundle;
import android.util.Log;
import android.widget.Button;
import android.widget.ImageView;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
@@ -34,7 +35,7 @@ public class CheckActivity extends AppCompatActivity {
private CheckItemInfo mCheckItemInfo = new CheckItemInfo();
private Context context;
private static String mSignalStrength;
private Button mButton;
private ImageView mImageView;
private String packageName = "com.mogo.launcher.f";
@Override
@@ -48,10 +49,10 @@ public class CheckActivity extends AppCompatActivity {
* 列表View初始化
*/
public void initView() {
mButton = findViewById(R.id.btnBack);
context = mButton.getContext();
mImageView = findViewById(R.id.btnBack);
context = mImageView.getContext();
packageName = getPackageName(context);
mButton.setOnClickListener(v -> {
mImageView.setOnClickListener(v -> {
finish();
});
//版本号

View File

@@ -11,18 +11,18 @@
android:id="@+id/check_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="检测页面"
android:textSize="28dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Button
<ImageView
android:id="@+id/btnBack"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="返回"
android:layout_width="@dimen/dp_106"
android:layout_height="@dimen/dp_106"
android:layout_marginLeft="@dimen/dp_50"
android:layout_marginTop="@dimen/dp_50"
android:src="@drawable/module_common_icon_close"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent" />