支持多屏幕的Android

支持多屏幕的Android,android,android-layout,Android,Android Layout,嗨,我创建了自己的Android应用程序。它工作得很好,但当我在多台设备上测试它时,我注意到它不支持多个屏幕,尽管我的应用程序调用来自assets目录的HTML文件 活动XML <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_cente

嗨,我创建了自己的Android应用程序。它工作得很好,但当我在多台设备上测试它时,我注意到它不支持多个屏幕,尽管我的应用程序调用来自assets目录的HTML文件

活动XML

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true"
    tools:context=".ElarabyGroup" />

 <LinearLayout 
          android:layout_width="match_parent"
          android:layout_height="match_parent">

     <WebView android:id="@+id/web_engine"
         android:layout_width="match_parent"
         android:layout_height="match_parent">
     </WebView>
 </LinearLayout>

显示

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="15" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".ElarabyGroup"
        android:label="@string/title_activity_elaraby_group" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>


您可以在单独的布局文件夹中为不同的dpi设备创建不同的布局。设计师创建的HTML文件支持多种布局,但效果不佳,这意味着我必须创建单独的布局您可以显示您在不同设备中获得的显示吗?因为如果您将webview设置为垂直和水平匹配,则会将其拉伸到全屏。我不确定您在显示html时面临什么问题