Skip to content

Commit 2e2f9ad

Browse files
committed
scroll view for smooth scroll
1 parent 07dae23 commit 2e2f9ad

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

libeditor/src/main/java/com/duy/ide/diagnostic/view/DiagnosticFragment.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import android.support.v7.widget.DividerItemDecoration;
2727
import android.support.v7.widget.LinearLayoutManager;
2828
import android.support.v7.widget.RecyclerView;
29-
import android.text.method.ScrollingMovementMethod;
3029
import android.view.LayoutInflater;
3130
import android.view.View;
3231
import android.view.ViewGroup;
@@ -76,7 +75,6 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
7675
mViewPager.setOffscreenPageLimit(mViewPager.getAdapter().getCount());
7776

7877
mLogView = view.findViewById(R.id.txt_log);
79-
mLogView.setMovementMethod(new ScrollingMovementMethod());
8078
//disable save log, avoid crash with large data
8179
mLogView.setSaveEnabled(false);
8280

libeditor/src/main/res/layout/fragment_diagnostic.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<com.duy.ide.diagnostic.widget.LogView
4242
android:id="@+id/txt_log"
4343
android:layout_width="match_parent"
44-
android:layout_height="match_parent"
44+
android:layout_height="wrap_content"
4545
android:clickable="true"
4646
android:focusable="true"
4747
android:padding="4dp"

0 commit comments

Comments
 (0)