我已经安装了Python 2.7.9 /usr/local/bin.现在它不再起作用了.我有另一个Python,/usr/bin/但在路径中是/usr/local/bin/第一个.我怎样才能删除2.7.9 Python?
我目前正在为Android 6编写一个用Java编写的学校成绩经理.我刚开始使用Android,所以我不是专家.
问题:
如果我notifyItemRemoved()在我的RecycleView适配器上调用该方法并且最后一个CardView从左下角移动到右上角,则调整视图大小并剪切动画.
现在我不知道为什么该视图被调整大小,因为RecycleView的layout_height属性是match_parent.
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context=".SemesterActivity"
tools:showIn="@layout/activity_semester">
<android.support.v7.widget.RecyclerView
android:id="@+id/subject_list_view"
android:padding="20dp"
android:layout_below="@+id/title"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"/>
</android.support.v4.widget.NestedScrollView>
Run Code Online (Sandbox Code Playgroud)
我GridLayoutManager为RecycleView 采用了一个LayoutManager.
subjectListView.setLayoutManager(new GridLayoutManager(ActivityContext, 2));
Run Code Online (Sandbox Code Playgroud)
我如何更新RecycleView:
SubjectAdapterObj.notifyItemRemoved(viewHolder.getAdapterPosition());
Run Code Online (Sandbox Code Playgroud)
动画是默认动画.
可能GridLayoutManager是问题吗?
视频示例:
抱歉.英语不是我的母语.