| | |
| | | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| | | android:orientation="vertical" |
| | | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent"> |
| | | |
| | | <WebView |
| | | android:id="@+id/webView" |
| | | <LinearLayout |
| | | android:orientation="vertical" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" /> |
| | | </LinearLayout> |
| | | android:layout_height="wrap_content" |
| | | android:padding="16dp"> |
| | | |
| | | <TextView |
| | | android:id="@+id/androidIdText" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:textSize="18sp" |
| | | android:layout_marginBottom="16dp" /> |
| | | |
| | | <ImageView |
| | | android:id="@+id/imageView" |
| | | android:layout_width="300dp" |
| | | android:layout_height="300dp" |
| | | android:scaleType="centerCrop" |
| | | android:layout_marginBottom="16dp" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/descriptionText" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:textSize="18sp" |
| | | android:gravity="center" |
| | | android:layout_marginBottom="16dp" /> |
| | | |
| | | <!-- 使用固定高度代替 wrap_content --> |
| | | <FrameLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent"> |
| | | |
| | | <WebView |
| | | android:id="@+id/webView" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" /> |
| | | </FrameLayout> |
| | | </LinearLayout> |
| | | </ScrollView> |