작성
·
403
0
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="60dp"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/settingIcon"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_margin="3dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:contentDescription="프로필사진"
android:src="@drawable/profile_img"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<com.yuyakaido.android.cardstackview.CardStackView
android:id="@+id/cardStackView"
android:contentDescription="cardstackview"
android:layout_marginTop="60dp"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
코드와 에러부분 캡쳐해서 올립니다 ㅠㅠ
답변 1
0
원래 처음에 실행이 되었나요?
android:theme="@style/Theme.AppCompat.Light"
를 모두 빼먹으셨는데
AndroidManifest.xml을 아래와 같이 변경해보세요.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.YOUR_PERMISSION" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
tools:targetApi="31">
<activity
android:name=".message.MyLikeListActivity"
android:theme="@style/Theme.AppCompat.Light"
android:exported="false" />
<activity
android:name=".message.ListViewAdapter"
android:theme="@style/Theme.AppCompat.Light"
android:exported="false" />
<activity
android:name=".setting.SettingActivity"
android:theme="@style/Theme.AppCompat.Light"
android:exported="false" />
<activity
android:name=".setting.MyPageActivity"
android:theme="@style/Theme.AppCompat.Light"
android:exported="false" />
<activity
android:name=".SplashActivity"
android:theme="@style/Theme.AppCompat.Light"
android:exported="false" />
<activity
android:name=".auth.LoginActivity"
android:theme="@style/Theme.AppCompat.Light"
android:exported="false" />
<activity
android:name=".auth.JoinActivity"
android:theme="@style/Theme.AppCompat.Light"
android:exported="false" />
<activity
android:name=".auth.IntroActivity"
android:theme="@style/Theme.AppCompat.Light"
android:exported="false" />
<activity
android:name=".slider.CardStackAdapter"
android:theme="@style/Theme.AppCompat.Light"
android:exported="false" />
<activity
android:name=".MainActivity"
android:exported="true"
android:theme="@style/Theme.AppCompat.Light">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
https://github.com/alsxm4625/sogating4/tree/main/app/src/main/res/layout
깃허브에 올렸습니다 확인 부탁드려요!