亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

當我按下開始按鈕時,它應該進入下一個活動,但它會進入主屏幕

當我按下開始按鈕時,它應該進入下一個活動,但它會進入主屏幕

呼啦一陣風 2022-06-15 17:53:47
當我按下開始按鈕時,它應該進入下一個活動,但它會進入主屏幕。我在添加橫幅廣告代碼時遇到了這個問題。Button 在 XML 代碼中命名為 startbtn,在 Java 代碼中命名為 btnclk1。我在 Android Studio 中做這個項目。XML 代碼:    <?xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:ads="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:background="@drawable/splashscr"    tools:context=".SplashScreen">    <Button        android:id="@+id/startbtn2"        android:layout_width="85dp"        android:layout_height="32dp"        android:layout_marginBottom="8dp"        android:layout_marginEnd="8dp"        android:layout_marginLeft="8dp"        android:layout_marginRight="8dp"        android:layout_marginStart="8dp"        android:layout_marginTop="8dp"        android:background="@android:color/black"        android:text="Show Ad"        android:textColor="@android:color/white"        android:textSize="18sp"        app:layout_constraintBottom_toBottomOf="parent"        app:layout_constraintEnd_toEndOf="parent"        app:layout_constraintStart_toStartOf="parent"        app:layout_constraintTop_toTopOf="parent"        app:layout_constraintVertical_bias="0.625" />
查看完整描述

1 回答

?
MYYA

TA貢獻1868條經驗 獲得超4個贊

http://img1.sycdn.imooc.com//62a9ac5a00013b7114380903.jpg這是 logcat 所在的位置。請在此處發布可能在 logcat 中彈出的錯誤。

查看完整回答
反對 回復 2022-06-15
  • 1 回答
  • 0 關注
  • 108 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號