2013-10-28 58 views
2

我正在使用Facebook SDK並使用Facebook登錄按鈕。當我點擊登錄時,會顯示一個Facebook彈出窗口。我的問題是,當屏幕處於橫向狀態並開始輸入電子郵件時,鍵盤與彈出窗口重疊,而我看不到正在輸入的內容,只顯示彈出窗口的標題。當屏幕顯示爲縱向時,彈出窗口是正常的,我可以輸入沒有問題。鍵盤重疊Facebook登錄屏幕

這裏是我的login.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="wrap_content" 
tools:context=".LoginActivity" ><FrameLayout 
    android:id="@+id/frame" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:layout_alignParentEnd="false" 
    android:layout_alignParentLeft="true" 
    android:layout_alignParentStart="false" 
    android:layout_alignParentTop="true" 
    android:addStatesFromChildren="false" 
    android:background="@drawable/background_land" 
    android:clipToPadding="true" 
    android:contentDescription="@string/acLogin_FrameLayout" 
    android:fitsSystemWindows="false" 
    android:measureAllChildren="false" 
    android:splitMotionEvents="false" > 

    <com.facebook.widget.LoginButton 
     android:id="@+id/authButton" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_centerHorizontal="true" 
     android:layout_gravity="center_horizontal|bottom" /> 
</FrameLayout> 
</RelativeLayout> 

有沒有辦法,我仍然可以使用Facebook登錄按鈕,將彈出登錄框不成爲幾乎看不見什麼辦法?

+0

這是一個已知的bug,請參閱我在此發佈的解決方法:http://stackoverflow.com/questions/19364890/facebook-loginactivity-is-not-shown-正確 –

回答

1

嘗試更改活動的windowSoftInput模式。我的猜測是android:windowSoftInputMode =「adjustResize」或「adjustPan」。你可以在你的AndroidManifest.xml中設置它的活動

+0

我試過這樣的東西,但仍然沒有工作: ' yasin