为什么ListPopupWindow
和Dialog
不具有物质形态,即使我有这个在我的成绩文件:API 19(KitKat)中的材料设计?
android {
compileSdkVersion 24
buildToolsVersion "24"
defaultConfig {
applicationId "com.example.test"
minSdkVersion 19
targetSdkVersion 24
versionCode 1
versionName "1c"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:support-v4:24.0.0'
我试着用不同版本的编译工具和等,但都没有成功。 这是一个AlertDialog
的样子:
那么你的代码在哪里创建'AlertDialog'? AlertDialog是什么导入? – ianhanniballake
@ianhanniballake'AlertDialog'我使用'import android.app.AlertDialog' – Chunrand
@ianhanniballake我发现我的错误在哪里..谢谢你兄弟你帮了我很多。 – Chunrand