Skip to content

Commit

Permalink
Optimize notification list item display
Browse files Browse the repository at this point in the history
  • Loading branch information
tjysdsg committed Jun 29, 2023
1 parent b0da73a commit e5b94a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected void onCreate(Bundle savedInstanceState) {
noItemsPromptView = findViewById(R.id.no_items_prompt);

notificationIconColor = MaterialColors.getColor(
this, com.google.android.material.R.attr.colorPrimaryVariant, Color.BLACK
this, com.google.android.material.R.attr.colorPrimary, Color.BLACK
);
}

Expand Down
7 changes: 3 additions & 4 deletions app/src/main/res/layout/notification_item_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@

<ImageView
android:id="@+id/notification_icon"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_margin="10dp"
android:layout_marginTop="10dp"
android:layout_width="60dp"
android:layout_height="60dp"
android:padding="10dp"
android:contentDescription="@string/notification_icon_content_desc"
tools:srcCompat="@tools:sample/avatars" />

Expand Down

0 comments on commit e5b94a9

Please sign in to comment.