나는 버튼을 만들려고 해요. 나는 전에 이런 짓을했는데, 이제는 오류가있어 무엇인지 알아 내지 못합니다. 내가 xml 파일에 문제가 생겼어요 생각하지만, 그것을 찾을 수 없습니다 :안드로이드 - 레이아웃 오류
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ImageButton
android:id="@+id/login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="115dp"
android:layout_marginTop="80dp"
android:src="@drawable/login_button" />
</RelativeLayout>
: S
그래서 내 XML이 나는 페이스 북 로그인의 어떤 종류를 실행하는 것을 시도하고있다. 나는 easyfacebook SDK를 사용하고 있습니다.
W/webcore (29941) :
내가받을 메시지를 다음과 같습니다 그래서 여기에 내가 로그인 버튼을 구현하기 위해 노력하고 자바 코드는 후 viewWidth를 가져올 수 없습니다 제 레이아웃
E/SkLayout_wtle (29,941) 레이아웃 에러 : 폭 106 : 0 ellipsizedWidth : 0
W/(1171) InputManagerService : 이미 초점 이득을 무시 집중 창 : com.android.internal. view.IInputMethodClient $ S 욕조 $ 프록시 405c4e68
당신은 더 구체적으로 할 수 있습니다. ImageButton의 부모보기는 무엇입니까? 이 오류는 언제 어디서 발생합니까? 디버깅하기 쉽도록 코드 스 니펫을 볼 수 있습니까? – Pankaj
죄송합니다. 단추를 클릭하면 이러한 메시지가 나타납니다. – user1162316
는 5 라인 대신 "... 80sp"의 "... 80dp"읽기 의미인가? – Jon