Я занимаюсь разработкой как на 7-дюймовом экране, так и на htc m8. У меня много файлов xml-файлов, которые работают нормально. У меня есть один фрагмент, который создает проблему. Я запускаю его на своем 7-дюймовом экране Samsung в режиме ландшафтного режима в манифесте.Ошибка при раздувании моего файла макета
Моя таблетка работает как шарм. Затем я копирую свой файл большой земли в макете и пытаюсь запустить свой код на htc. Я делал этот метод много раз.
Но здесь я получаю сбой при запуске inflater.inflate.
что-то должно быть неправильным в xml? трассировка стека и мой XML-файл макета. Я застрял. есть идеи? Я не вижу в подсказке никаких подсказок, которые указывают на проблему.
Я добавляю стек как jpg, потому что что-то не нравится в моем формате с помощью stackoverflow.
расположение файл:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/LightSkyBlue"
tools:context="com.example.bernard.speechparole.Cards">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Large Text"
android:id="@+id/title_cards_ex"
android:layout_centerHorizontal="true"/>
<ImageView
android:id="@+id/image"
android:layout_height="190dp"
android:layout_width="350dp"
android:layout_marginTop="30dp"
android:layout_below="@id/title_cards_ex"
android:layout_toRightOf="@+id/help"
android:layout_marginLeft="40dp"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/work_validation"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/pro_validation"
android:layout_below="@+id/title_cards_ex"
android:layout_marginTop="65dp"
android:layout_marginLeft="20dp"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/next"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/next"
android:layout_marginLeft="10dp"
android:layout_toRightOf="@id/work_validation"
android:layout_alignBottom="@id/work_validation"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/help"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/help"
android:layout_marginLeft="10dp"
android:layout_toRightOf="@id/next"
android:layout_alignBottom="@id/next"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/done"
android:textSize="40dp"
android:visibility="invisible"
android:text="@string/done"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"/>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/work_answer"
android:layout_below="@+id/work_validation"
android:textSize="30dp"
android:background="@drawable/round_corner"
android:layout_alignLeft="@+id/work_validation"
android:ems="7"
android:layout_marginTop="15dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/resp_card"
android:textSize="29dp"
android:textColor="@color/DarkBlue"
android:textStyle="bold"
android:id="@+id/resp_card"
android:layout_marginTop="40dp"
android:layout_alignLeft="@id/work_validation"
android:visibility="invisible"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/mem_report"
android:id="@+id/report_card"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_below="@id/work_answer"
android:layout_alignLeft="@id/work_validation"
android:layout_marginTop="25dp"/>
</RelativeLayout>
Удостоверьтесь, что вы можете ссылаться на выталкиваемую папку. В зависимости от того, какое устройство вы используете, оно не может найти его. – ono
это может быть версия для Android. пожалуйста, напишите журналы аварии здесь. –