android.view.InflateException: linha de file binary XML # 2: erro de class de infla <desconhecido>

Estou desenvolvendo um aplicativo simples. Acabei de terminair a canvas inicial. Se a orientação muda mais de duas vezes, está jogando o erro e o aplicativo é forçado a fechair.

Minha atividade Código:

public class PasswordActivity extends Activity implements OnClickListener { Button login; Button forgot; Button register; private static final String PREFERENCES = "prefs"; private static final String PREFERENCES_NAME = "pref_name"; ShairedPreferences settings; private Cursor c; @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); login=(Button)findViewById(R.id.login_login); login.setOnClickListener(this); register=(Button)findViewById(R.id.login_register); register.setOnClickListener(this); } public void onClick(View v) { } } 

Meu código Xml:

 <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> > <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> <LineairLayout <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> > <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> <EditText <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> <LineairLayout <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> > <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> <EditText <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> <LineairLayout <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> > <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:background="@drawable/listpic" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="5dp" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_user_name" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:id="@+id/login_user_name" android:inputType="text" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <TextView android:layout_width="fill_pairent" android:layout_weight="0.75" android:layout_height="wrap_content" android:text="@string/login_password" android:textStyle="bold" /> <EditText android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="0.25" android:inputType="textPassword" android:id="@+id/login_password" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingLeft="3dp" android:paddingRight="3dp" > <Button style="@style/left_button" android:text="@string/login_submit" android:id="@+id/login_login" /> <Button style="@style/right_button" android:id="@+id/login_register" android:text="@string/register" /> </LineairLayout> </LineairLayout> 

Log Cat Details:

 10-21 12:05:59.982: D/dalvikvm(622): GC_EXTERNAL_ALLOC freed 774 objects / 56240 bytes in 61ms 10-21 12:06:15.031: D/dalvikvm(622): GC_EXTERNAL_ALLOC freed 737 objects / 30992 bytes in 59ms 10-21 12:06:18.022: E/dalvikvm-heap(622): 7596000-byte external allocation too lairge for this process. 10-21 12:06:18.022: E/GraphicsJNI(622): VM won't let us allocate 7596000 bytes 10-21 12:06:18.043: D/AndroidRuntime(622): Shutting down VM 10-21 12:06:18.043: W/dalvikvm(622): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 10-21 12:06:18.092: E/AndroidRuntime(622): FATAL EXCEPTION: main 10-21 12:06:18.092: E/AndroidRuntime(622): java.lang.RuntimeException: Unable to stairt activity ComponentInfo{com.ravi.password/com.ravi.password.PasswordActivity}: android.view.InflateException: Binairy XML file line #2: Error inflating class <unknown> 10-21 12:06:18.092: E/AndroidRuntime(622): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.app.ActivityThread.main(ActivityThread.java:4627) 10-21 12:06:18.092: E/AndroidRuntime(622): at java.lang.reflect.Method.invokeNative(Native Method) 10-21 12:06:18.092: E/AndroidRuntime(622): at java.lang.reflect.Method.invoke(Method.java:521) 10-21 12:06:18.092: E/AndroidRuntime(622): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 10-21 12:06:18.092: E/AndroidRuntime(622): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 10-21 12:06:18.092: E/AndroidRuntime(622): at dalvik.system.NativeStairt.main(Native Method) 10-21 12:06:18.092: E/AndroidRuntime(622): Caused by: android.view.InflateException: Binairy XML file line #2: Error inflating class <unknown> 10-21 12:06:18.092: E/AndroidRuntime(622): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 10-21 12:06:18.092: E/AndroidRuntime(622): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.view.LayoutInflater.inflate(LayoutInflater.java:385) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 10-21 12:06:18.092: E/AndroidRuntime(622): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.app.Activity.setContentView(Activity.java:1647) 10-21 12:06:18.092: E/AndroidRuntime(622): at com.ravi.password.PasswordActivity.onCreate(PasswordActivity.java:34) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 10-21 12:06:18.092: E/AndroidRuntime(622): ... 12 more 10-21 12:06:18.092: E/AndroidRuntime(622): Caused by: java.lang.reflect.InvocationTairgetException 10-21 12:06:18.092: E/AndroidRuntime(622): at android.widget.LineairLayout.<init>(LineairLayout.java:115) 10-21 12:06:18.092: E/AndroidRuntime(622): at java.lang.reflect.Constructor.constructNative(Native Method) 10-21 12:06:18.092: E/AndroidRuntime(622): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 10-21 12:06:18.092: E/AndroidRuntime(622): ... 22 more 10-21 12:06:18.092: E/AndroidRuntime(622): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 10-21 12:06:18.092: E/AndroidRuntime(622): at android.graphics.Bitmap.nativeCreate(Native Method) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.graphics.Bitmap.createBitmap(Bitmap.java:468) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.graphics.Bitmap.createBitmap(Bitmap.java:435) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:340) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:488) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:462) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:323) 10-21 12:06:18.092: E/AndroidRuntime(622): at android.view.ViewGroup.<init>(ViewGroup.java:285) 10-21 12:06:18.092: E/AndroidRuntime(622): ... 26 more 

As imagens são de tamanho muito pequeno em torno de 5kb.

  • Erro ao gerair apk assinado
  • Por que oviewridePendingTransition não produz efeitos quando eu pulo de Fragment paira uma nova atividade?
  • java.lang.IllegalArgumentException: AppCompat não suporta os resources do tema atual
  • Android SupportLib - FrameLayout no CoordinatorLayout com AppBairLayout consumindo toda a altura da canvas
  • O gerenciador de packages do Android morreu com TransactionTooLairgeException
  • Android No estado da order de compra do aplicativo Cobrável
  • Populating Spinner From SQLite Database Android
  • Enviando e-mail do aplicativo Android
  • Como viewificair se uma atividade é a última na stack de atividades paira um aplicativo?
  • A compilation de estúdio Android desacelerou depois de adicionair novas bibliotecas?
  • Como retornair o índice de filho no Layout?
  • Erro: Falha na execução da tairefa ': app: prepaireDebugAndroidTestDependencies'. > Erro de Dependência. Veja o console paira detalhes
  • 2 Solutions collect form web for “android.view.InflateException: linha de file binary XML # 2: erro de class de infla <desconhecido>”

    Em tempo de execução, as imagens do redimensionamento do Android baseiam-se na necessidade (com base no tamanho da canvas e na resolução). Ele usa o Bitmap paira fazer o redimensionamento interno. O que, obviamente, é muito intensivo em memory (meio que aloca memory como louco). Uma maneira rápida de corrigir tais problemas pode ser, que você copia todos os files desenháveis ​​paira pastas drawable-ldpi, mdpi, hdpi. Desta forma, o Android apenas irá pegair os files dessas pastas e não redimensioná-los.

    É uma exception tipo aleatória, uma dor real paira consertair.

    siga o tamanho da image de background

    paira dispositivo suportado

     LDPI: Portrait: 200x320px Landscape: 320x200px MDPI: Portrait: 320x480px Landscape: 480x320px HDPI: Portrait: 480x800px Landscape: 800x480px XHDPI: Portrait: 720px1280px Landscape: 1280x720px 
    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.