fix: console lagged with too many logs

This commit is contained in:
hyb1996
2017-10-22 18:33:12 +08:00
parent deda91e6b1
commit 38740657b8
19 changed files with 227 additions and 315 deletions

View File

@@ -6,22 +6,11 @@
android:animateLayoutChanges="true"
android:orientation="vertical">
<ScrollView
android:id="@+id/content_container"
<android.support.v7.widget.RecyclerView
android:id="@+id/log_list"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<TextView
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:paddingLeft="3dp"
android:textIsSelectable="true"
android:textSize="14sp"
tools:text="12345\n678\n9\n0"/>
</ScrollView>
android:layout_weight="1"/>
<LinearLayout
android:id="@+id/input_container"

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="15sp">
</TextView>