feat: change color of performance waterfall

This commit is contained in:
pengfei.zhou
2021-07-21 16:36:30 +08:00
committed by osborn
parent 8f50d2d67c
commit 7d4d6713c6
4 changed files with 148 additions and 15 deletions

View File

@@ -171,7 +171,7 @@ public class DoricDevPerfActivity extends DoricDevBaseActivity {
@Override
public void onBindViewHolder(@NonNull PerfCellHolder holder, int position) {
holder.itemView.setBackgroundColor(position % 2 == 0 ? Color.parseColor("#ecf0f1") : Color.WHITE);
holder.itemView.setBackgroundColor(position % 2 == 0 ? 0x2ff1c40f : 0x2f2ecc71);
final AnchorItem anchorItem = anchorNodes.get(position);
holder.layoutExpand.setVisibility(anchorItem.expanded ? View.VISIBLE : View.GONE);
if (anchorItem.name.startsWith("Call")) {

View File

@@ -2,6 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#eeeeee"
android:orientation="vertical">
<LinearLayout

View File

@@ -65,7 +65,8 @@
android:id="@+id/layout_expand"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#bdc3c7"
android:layout_marginBottom="10dp"
android:background="#0f000000"
android:gravity="center_vertical"
android:orientation="vertical"
android:paddingLeft="15dp">