1
0

Add log viewer (#686)

This commit is contained in:
Mikołaj Pich
2020-02-22 21:24:06 +01:00
committed by GitHub
parent 9a87df7315
commit 00f5b9431e
22 changed files with 361 additions and 27 deletions

View File

@ -0,0 +1,34 @@
<androidx.coordinatorlayout.widget.CoordinatorLayout 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"
android:orientation="vertical"
tools:context=".ui.modules.about.logviewer.LogViewerFragment">
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="3dp">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/logViewerRecycler"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:scrollbars="vertical" />
</HorizontalScrollView>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/logViewRefreshButton"
style="@style/Widget.MaterialComponents.FloatingActionButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="16dp"
android:clickable="true"
android:focusable="true"
android:text="@string/logviewer_refresh"
android:tint="?colorOnSecondary"
app:srcCompat="@drawable/ic_refresh" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>