- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我是 Android 新手。每当我在模拟器上运行应用程序时,当我运行并检查它说的 ADT 日志时,它会说“不幸停止”
05-01 15:43:26.597: E/dalvikvm-heap(1022): Out of memory on a 36864016-byte allocation.
05-01 15:43:26.687: W/dalvikvm(1022): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
05-01 15:43:26.817: E/AndroidRuntime(1022): FATAL EXCEPTION: main
05-01 15:43:26.817: E/AndroidRuntime(1022): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jaisri.myapp/com.jaisri.myapp.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.app.ActivityThread.access$600(ActivityThread.java:141)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.os.Handler.dispatchMessage(Handler.java:99)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.os.Looper.loop(Looper.java:137)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.app.ActivityThread.main(ActivityThread.java:5041)
05-01 15:43:26.817: E/AndroidRuntime(1022): at java.lang.reflect.Method.invokeNative(Native Method)
05-01 15:43:26.817: E/AndroidRuntime(1022): at java.lang.reflect.Method.invoke(Method.java:511)
05-01 15:43:26.817: E/AndroidRuntime(1022): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-01 15:43:26.817: E/AndroidRuntime(1022): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-01 15:43:26.817: E/AndroidRuntime(1022): at dalvik.system.NativeStart.main(Native Method)
05-01 15:43:26.817: E/AndroidRuntime(1022): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
05-01 15:43:26.817: E/AndroidRuntime(1022): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:807)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.view.LayoutInflater.rInflate(LayoutInflater.java:736)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
05-01 15:43:26.817: E/AndroidRuntime(1022): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.app.Activity.setContentView(Activity.java:1881)
05-01 15:43:26.817: E/AndroidRuntime(1022): at com.jaisri.myapp.MainActivity.onCreate(MainActivity.java:78)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.app.Activity.performCreate(Activity.java:5104)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
05-01 15:43:26.817: E/AndroidRuntime(1022): ... 11 more
05-01 15:43:26.817: E/AndroidRuntime(1022): Caused by: java.lang.reflect.InvocationTargetException
05-01 15:43:26.817: E/AndroidRuntime(1022): at java.lang.reflect.Constructor.constructNative(Native Method)
05-01 15:43:26.817: E/AndroidRuntime(1022): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
05-01 15:43:26.817: E/AndroidRuntime(1022): ... 26 more
05-01 15:43:26.817: E/AndroidRuntime(1022): Caused by: java.lang.OutOfMemoryError
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:502)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:355)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:785)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.content.res.Resources.loadDrawable(Resources.java:1965)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.view.View.<init>(View.java:3330)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.view.ViewGroup.<init>(ViewGroup.java:431)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.widget.LinearLayout.<init>(LinearLayout.java:176)
05-01 15:43:26.817: E/AndroidRuntime(1022): at android.widget.LinearLayout.<init>(LinearLayout.java:172)
05-01 15:43:26.817: E/AndroidRuntime(1022): ... 29 more
05-01 15:45:58.767: W/lenght(1085): 1
05-01 15:46:03.977: E/dalvikvm-heap(1085): Out of memory on a 36864016-byte allocation.
05-01 15:46:04.237: W/dalvikvm(1085): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
05-01 15:46:04.548: E/AndroidRuntime(1085): FATAL EXCEPTION: main
05-01 15:46:04.548: E/AndroidRuntime(1085): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jaisri.myapp/com.jaisri.myapp.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.app.ActivityThread.access$600(ActivityThread.java:141)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.os.Handler.dispatchMessage(Handler.java:99)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.os.Looper.loop(Looper.java:137)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.app.ActivityThread.main(ActivityThread.java:5041)
05-01 15:46:04.548: E/AndroidRuntime(1085): at java.lang.reflect.Method.invokeNative(Native Method)
05-01 15:46:04.548: E/AndroidRuntime(1085): at java.lang.reflect.Method.invoke(Method.java:511)
05-01 15:46:04.548: E/AndroidRuntime(1085): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-01 15:46:04.548: E/AndroidRuntime(1085): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-01 15:46:04.548: E/AndroidRuntime(1085): at dalvik.system.NativeStart.main(Native Method)
05-01 15:46:04.548: E/AndroidRuntime(1085): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
05-01 15:46:04.548: E/AndroidRuntime(1085): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:807)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.view.LayoutInflater.rInflate(LayoutInflater.java:736)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
05-01 15:46:04.548: E/AndroidRuntime(1085): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.app.Activity.setContentView(Activity.java:1881)
05-01 15:46:04.548: E/AndroidRuntime(1085): at com.jaisri.myapp.MainActivity.onCreate(MainActivity.java:78)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.app.Activity.performCreate(Activity.java:5104)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
05-01 15:46:04.548: E/AndroidRuntime(1085): ... 11 more
05-01 15:46:04.548: E/AndroidRuntime(1085): Caused by: java.lang.reflect.InvocationTargetException
05-01 15:46:04.548: E/AndroidRuntime(1085): at java.lang.reflect.Constructor.constructNative(Native Method)
05-01 15:46:04.548: E/AndroidRuntime(1085): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
05-01 15:46:04.548: E/AndroidRuntime(1085): ... 26 more
05-01 15:46:04.548: E/AndroidRuntime(1085): Caused by: java.lang.OutOfMemoryError
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:502)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:355)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:785)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.content.res.Resources.loadDrawable(Resources.java:1965)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.view.View.<init>(View.java:3330)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.view.ViewGroup.<init>(ViewGroup.java:431)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.widget.LinearLayout.<init>(LinearLayout.java:176)
05-01 15:46:04.548: E/AndroidRuntime(1085): at android.widget.LinearLayout.<init>(LinearLayout.java:172)
05-01 15:46:04.548: E/AndroidRuntime(1085): ... 29 more
05-01 15:46:21.367: E/Trace(1130): error opening trace file: No such file or directory
请帮帮我。我应该在哪里检查问题。我不明白。
这是xml布局
<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="#FF5D00" >
<RelativeLayout
android:id="@+id/jkheading"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_alignParentTop="true"
android:background="@drawable/jkhead" >
<ImageView
android:id="@+id/jkheadingtext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_toLeftOf="@+id/search"
android:src="@drawable/header" />
<ImageButton
android:id="@+id/search"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="5dp"
android:background="@android:color/transparent"
android:src="@android:drawable/ic_menu_search" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/jksearch"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_alignParentTop="true"
android:background="@drawable/jkhead" >
<EditText
android:id="@+id/jkedit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="5dp"
android:layout_toLeftOf="@+id/search1"
android:hint="Search"
android:textColor="@android:color/black" />
<ImageButton
android:id="@+id/search1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="5dp"
android:background="@android:color/transparent"
android:src="@drawable/jksearch" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/jkrunn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/jkheading"
android:layout_marginTop="3dp"
android:background="#FFAF00" >
<TextView
android:id="@+id/jkruntext"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:text="Welcome"
android:textColor="@android:color/white" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/jkrunn1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/jkrunn"
android:layout_marginTop="3dp"
android:background="#FFAF00" >
<com.jaisri.jklinks.Scrolltext
android:id="@+id/jkruntext1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Welcome"
android:textColor="@android:color/white" >
</com.jaisri.jklinks.Scrolltext>
</RelativeLayout>
<ViewFlipper
android:id="@+id/viewFlipper1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/jkheading"
android:layout_centerHorizontal="true" >
<include
android:id="@+id/firstlayout"
layout="@layout/flip9" />
<include
android:id="@+id/listlayout"
layout="@layout/flip8" />
<include
android:id="@+id/listlayout1"
layout="@layout/flip7" />
<include
android:id="@+id/listlayout2"
layout="@layout/flip6" />
</ViewFlipper>
<RelativeLayout
android:id="@+id/slider"
android:layout_width="60dp"
android:layout_height="match_parent"
android:layout_above="@+id/jkfooter"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/jkrunn1"
android:layout_centerHorizontal="true"
android:background="@drawable/glasseffect" >
<ImageButton
android:id="@+id/button2"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@android:color/transparent"
android:src="@drawable/face" />
<ImageButton
android:id="@+id/jklike"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/button2"
android:layout_centerHorizontal="true"
android:background="@android:color/transparent"
android:src="@drawable/like" />
<ImageButton
android:id="@+id/register"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp"
android:background="@android:color/transparent"
android:src="@drawable/login2" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/register1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/jkheading"
android:background="@drawable/jklogin" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:text="Login"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/textView1"
android:layout_marginLeft="18dp"
android:layout_marginTop="15dp"
android:text="Username" />
<EditText
android:id="@+id/signinusername"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView2"
android:layout_centerHorizontal="true"
android:layout_marginTop="5dp"
android:ems="10" >
<requestFocus />
</EditText>
<EditText
android:id="@+id/signinpassword"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/signinusername"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:ems="10"
android:inputType="textPassword" />
<Button
android:id="@+id/jksignin"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignRight="@+id/textView2"
android:layout_below="@+id/signinpassword"
android:layout_marginTop="15dp"
android:background="@drawable/iconback"
android:text="Enter"
android:textColor="@android:color/white" />
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView2"
android:layout_below="@+id/signinusername"
android:text="Password" />
<Button
android:id="@+id/signup"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/jksignin"
android:layout_alignBottom="@+id/jksignin"
android:layout_alignRight="@+id/textView1"
android:background="@drawable/iconback"
android:text=" Signup "
android:textColor="@android:color/white" />
<Button
android:id="@+id/close"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/signup"
android:layout_alignBottom="@+id/signup"
android:layout_alignParentRight="true"
android:layout_marginRight="38dp"
android:background="@drawable/iconback"
android:text="Exit"
android:textColor="@android:color/white" />
/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/register2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/jkheading"
android:background="@drawable/jklogin" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:text="Register"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/textView1"
android:layout_marginLeft="18dp"
android:layout_marginTop="0dp"
android:text="Email-id" />
<EditText
android:id="@+id/signupemail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView2"
android:layout_centerHorizontal="true"
android:layout_marginTop="5dp"
android:ems="10" >
<requestFocus />
</EditText>
<EditText
android:id="@+id/signupusername"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/signupemail"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:ems="10" />
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView2"
android:layout_below="@+id/signupemail"
android:text="Username" />
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView2"
android:layout_below="@+id/signupusername"
android:text="Password" />
<EditText
android:id="@+id/signuppassword"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/signupusername"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:ems="10"
android:inputType="textPassword" />
<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView2"
android:layout_below="@+id/signuppassword"
android:text="Confirm Password" />
<EditText
android:id="@+id/signuppassword2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/signuppassword"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:ems="10"
android:inputType="textPassword" />
<Button
android:id="@+id/Jksignup"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/signuppassword2"
android:layout_marginTop="15dp"
android:layout_toLeftOf="@+id/textView1"
android:background="@drawable/iconback"
android:text=" Sign Up "
android:textColor="@android:color/white" />
<Button
android:id="@+id/close1"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/signuppassword2"
android:layout_marginLeft="22dp"
android:layout_marginTop="15dp"
android:layout_toRightOf="@+id/textView1"
android:background="@drawable/iconback"
android:text="Exit"
android:textColor="@android:color/white" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/jkfooter"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_alignParentBottom="true"
android:background="@drawable/jkfoot" >
<TextView
android:id="@+id/jkadv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="Your Ad Image Here "
android:textColor="@android:color/white" />
</RelativeLayout>
<ImageButton
android:id="@+id/slide"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerInParent="true"
android:layout_marginRight="-8dp"
android:background="@android:color/transparent"
android:src="@drawable/sideopen" />
<ImageButton
android:id="@+id/slide1"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginRight="-8dp"
android:layout_toLeftOf="@+id/slider"
android:background="@android:color/transparent"
android:src="@drawable/sideclose" />
</RelativeLayout>
非常感谢
最佳答案
如果您检查 Caused by:
行,看起来根本原因是 BitmapFactory.nativeDecodeAsset()
中发生的 OutOfMemoryError
. (另请注意对“36864016 字节分配内存不足”的引用)。
您是否尝试在布局中的某处包含非常大的图像文件?
关于android - 二进制 XML 文件行 #2 : Error inflating class <unknown>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16321632/
这是我的代码 14 20 {"Confirm Email"} 21 在第 17 行我得到错误 Type '{ pathname: string; user: { em
这是我的代码 14 20 {"Confirm Email"} 21 在第 17 行我得到错误 Type '{ pathname: string; user: { em
这个问题已经有答案了: How do I compare strings in Java? (23 个回答) 已关闭 8 年前。 为什么 KeyEvent.getKeyText(0).substrin
我正在尝试 Rust 的新 wasm32-unknown-unknown 目标,我在调用数学函数(例如 sin、cos、exp、atan2)时遇到问题。 cargo .toml: [package]
当我为 spring-boot 创建启动项目时,我在 pom 文件中收到此错误。这只是为了创建一个基本的 Spring Boot 项目 Project build error: Invalid pac
我已经订阅了我想要传输的数据。但不知何故它不起作用。我收到此错误: The property pipe is not available for type "OperatorFunction" 这是我
运行以下查询时。select * from surgerys where to_char(dt_surgery ,'DD-MM-YYYY' ) = to_char('12-02-2012','DD-M
我在运行存储过程时遇到以下异常: com.microsoft.sqlserver.jdbc.SQLServerException:不支持从 UNKNOWN 到 UNKNOWN 的转换。 过程定义如下:
我尝试运行以下代码。顺便说一句,我对 python 和 sklearn 都是新手。 import pandas as pd import numpy as np from sklearn.linear
我已经阅读了关于未知类型的官方文档,但我很难真正理解它是如何工作的。 人们可以在文档中读到:“在没有首先断言或缩小到更具体的类型之前,不允许对未知进行任何操作。” 但如果我有这个功能: const f
我正在尝试在Mac OS中设置Hadoop 2.6.0 我正在关注这篇文章: http://hadoop.apache.org/docs/r2.4.0/hadoop-project-dist/hado
配置 Nexus docker 注册表和代理“dockerhub-proxy”后,如下所述: https://help.sonatype.com/repomanager3/formats/docker
我收到此错误 - “ValueError:未知标签类型:'unknown'” 我已经在网上搜索但无法摆脱这个错误,顺便说一句,我是 python 的新手:) 我的数据有 5 行 22 列,最后一列是标
使用 SHA256 摘要标识符 拉取图像失败 最佳答案 不幸的是,这是 DockerHub 删除 Docker 1.9 守护进程的向后兼容性的副作用。当使用 Docker 1.10 推送图像时,较旧的
我是 postgresql 的新手,正在尝试使用全文搜索 to_tsvector但是我遇到了错误。 SQL 和错误 SELECT to_tsvector('english', 'The quick b
每当我这样做时 npm run watch ,第一次编译工作正常 - 但经过几次编译后,我最终会得到这个错误: 95% emitting unnamed compat pluginError: UNK
在一个新的 Angular 应用程序中,我收到以下错误:Error from chokidar : Error: UNKNOWN: unknown error, watch我已经删除并重新安装 nod
使用 Typescipt 4.x.x 我写了一些代码来实现其他语言 Elm/Rust/Haskell 中常用的 Maybe/Option 类型。 我想写一个可以接受映射类型的通用函数 type MyM
const submitted = useSelector((state) => state.post.submitted) 对于上面的状态。我得到错误: (参数)状态:未知对象的类型为“未知”。 这
我正在尝试将多架构 docker 镜像推送到 docker hub 并遇到错误(在 https://github.com/docker/distribution/issues/3100 处打开了 do
我是一名优秀的程序员,十分优秀!