Android 动画后,键盘未显示在EditText中
我使用自定义动画在不同片段之间切换Android 动画后,键盘未显示在EditText中,android,android-fragments,android-edittext,android-animation,Android,Android Fragments,Android Edittext,Android Animation,我使用自定义动画在不同片段之间切换 FragmentTransaction ft = getFragmentManager().beginTransaction(); ft.setCustomAnimations(R.anim.slide_in_right,R.anim.shrink_from_bottom); this.getFragmentManager().popBackStack(); this.getFragmentManager().popBackStack(); A f
FragmentTransaction ft = getFragmentManager().beginTransaction();
ft.setCustomAnimations(R.anim.slide_in_right,R.anim.shrink_from_bottom);
this.getFragmentManager().popBackStack();
this.getFragmentManager().popBackStack();
A ft_name = new A();
ft.replace(R.id.llFragmentContainer, ft_name, "A");
ft.addToBackStack(null);
ft.commit();
当我转到一个片段时,动画之后会发生什么。该片段中的所有edittext都不响应单击。没有键盘显示,没有任何事情发生
片段A.xml
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="10dp"
android:background="@color/grey_light">
<View
android:layout_width="50dp"
android:layout_height="10dp"
android:background="@color/green"
/>
</LinearLayout>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:textColor="@color/grey"
android:textSize="15dp"/>
<EditText
android:id="@+id/text_view_one"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/abc"
android:inputType="textMultiLine"
>
<requestFocus />
</EditText>
</LinearLayout>
</ScrollView>
当我对自定义动画进行注释时,EditText的行为正常。请帮忙