Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41cf697d authored by Steve McKay's avatar Steve McKay
Browse files

Make DebugView look more debuggy.

And rename Activity/Fragment resources to match java file names.
Also, update header text (filename) to use scalable units.

Test: Build and review.
Change-Id: Ib85e7005ed0eb49ea46ad61b26dbe778c9754931
parent f1ed3605
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@
        android:id="@+id/inspector_file_title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textSize="20dp"
        android:textSize="20sp"
        android:paddingTop="5dp"
        android:paddingBottom="5dp"
        android:paddingStart="16dp"
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@
    android:paddingEnd="16dp"
    android:layout_gravity="center_vertical"
    android:fontFamily="sans-serif-medium"
    android:textSize="14sp"
    android:textSize="15sp"
    android:textAlignment="viewStart"
    android:textColor="@color/inspector_section_title">

+8 −0
Original line number Diff line number Diff line
@@ -16,7 +16,9 @@
package com.android.documentsui.inspector;

import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.widget.TextView;

import com.android.documentsui.R;
import com.android.documentsui.base.DocumentInfo;
@@ -64,4 +66,10 @@ public class DebugView extends TableView implements Consumer<DocumentInfo> {
    private void put(String key, Object value) {
        put(key, String.valueOf(value));
    }

    private void put(String key, boolean value) {
        KeyValueRow row = put(key, String.valueOf(value));
        TextView valueView = ((TextView) row.findViewById(R.id.table_row_value));
        valueView.setTextColor(value ? 0xFF006400 : 0xFF9A2020);
    }
}
Loading