2017-01-21 8 views
0

私はuriが私のコードに登録されていません。uriは登録されていませんhttp://schemas.android.com/apk/res/android

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="vertical" > 
    <ProgressBar 
     android:layout_height="wrap_content" 
     android:layout_width="wrap_content" 
     android:layout_gravity="center" 
     android:id="@+id/progressBar1"/> 

    <WebView 
     android:id="@+id/webview01" 
     android:layout_height="wrap_content" 
     android:layout_width="fill_parent" 
     android:layout_weight="1"> 
    </WebView> 
</LinearLayout> 

私はメイン/ RES /レイアウトの下にディレクトリtabdirを作成しました。とtabdirにxmlファイルを作成したい。

答えて

0

サブディレクトリを作成した場合、アンドロイドスタジオはこれを標準リソースディレクトリとして認識しません。 Android Studioでは、プロジェクトエクスプローラモードを「プロジェクト」から「Android」に変更することで効果を確認できます。

enter image description here

enter image description here

さてあなたは、サブディレクトリを作成する必要がある場合は、this SOスレッドに従ってください。 また、レイアウトファイルをmain/res/layoutディレクトリに移動するのがクイックエラーです。

関連する問題