After 40 minutes of hard work, I came to my decision. I don’t know why, but it may not be very good to use android predefined animations. Probably no mistakes, I hope ...
My xml file:
<LinearLayout
android:id="@+id/left_drawer"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:background="#F09609"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical"
android:animateLayoutChanges="true" >
<EditText
android:id="@+id/search"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/search_action_hint"
android:inputType="textCapWords"
android:textColorHint="#FFFFFF"
/>
<ListView
android:id="@+id/left_drawer_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffff"
android:choiceMode="singleChoice"
android:divider="@android:color/transparent"
android:dividerHeight="0dp"
android:listSelector="@android:color/transparent"
android:animateLayoutChanges="true" />
</LinearLayout>
Many thanks to @KalelWade who came up with this solution!
Thank!
source
share