Browse Source

set alpha in layout

AndyScherzinger 6 years ago
parent
commit
8f2da8a528

+ 0 - 1
src/main/java/com/owncloud/android/ui/adapter/NotificationListAdapter.java

@@ -127,7 +127,6 @@ public class NotificationListAdapter extends RecyclerView.Adapter<NotificationLi
         }
 
         holder.message.setText(notification.getMessage());
-        holder.message.setAlpha(0.57f); // TODO set in xml, once there is an own notification_list_item.xml
 
         // Todo set proper action icon (to be clarified how to pick)
         if (!TextUtils.isEmpty(notification.getIcon())) {

+ 2 - 0
src/main/res/layout/notification_list_item.xml

@@ -63,6 +63,7 @@
             android:layout_height="wrap_content"
             android:ellipsize="end"
             android:text="@string/placeholder_sentence"
+            android:alpha="0.57f"
             android:textAppearance="?android:attr/textAppearanceListItem"/>
 
         <LinearLayout
@@ -82,6 +83,7 @@
             android:layout_gravity="end"
             android:ellipsize="end"
             android:text="@string/placeholder_sentence"
+            android:alpha="0.5"
             android:textColor="?android:attr/textColorSecondary"/>
 
     </LinearLayout>