首页 > 应用开发 > > 发布到模拟器上就闪退
android.support.v4.view.ViewPager
<br>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
tools:ignore="MissingConstraints,Suspicious0dp">
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
tools:ignore="MissingConstraints,Suspicious0dp">
<android.support.v4.view.ViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
tools:ignore="MissingConstraints,Suspicious0dp"></LinearLayout>
</LinearLayout>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4759/viewspace-3153348/ ,如需转载,请注明出处,否则将追究法律责任。