###何がしたいか。
TextViewを並べて描画したくてPercentFrameLayoutを使って画面サイズが変わってもちゃんと表示できるようにしたいのですが実行時エラーが解消できずに困っています。
解決方法やアドバイスよろしくおねがいします。
###発生している問題・エラーメッセージ
Information:Gradle tasks [:app:incrementalDebugSupportDex] :app:buildInfoDebugLoader :app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE :app:mergeDebugResources :app:processDebugResources /Users/user.mini.33/pg-education/2048/2048_Android/app/src/main/res/layout/activity_naitive.xml Error:(7) No resource identifier found for attribute 'layout_widthPercent' in package 'com.a2048example.a2048' Error:(7) No resource identifier found for attribute 'layout_heightPercent' in package 'com.a2048example.a2048' Error:(7) No resource identifier found for attribute 'layout_marginTopPercent' in package 'com.a2048example.a2048' Error:(7) No resource identifier found for attribute 'layout_marginLeftPercent' in package 'com.a2048example.a2048' Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/user.mini.33/Library/Android/sdk/build-tools/23.0.3/aapt'' finished with non-zero exit value 1 Information:BUILD FAILED Information:Total time: 12.934 secs Information:5 errors Information:0 warnings Information:See complete output in console
###該当のソースコード
<android.support.percent.PercentFrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <ImageView app:layout_widthPercent="50%" app:layout_heightPercent="50%" app:layout_marginTopPercent="25%" app:layout_marginLeftPercent="25%"/> </android.support.percent.PercentFrameLayout>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/10/05 11:04 編集
2016/10/05 11:07