Skip to content

Commit

Permalink
increase height of header element and set backgroundcolor to white
Browse files Browse the repository at this point in the history
Signed-off-by: alex <alex.plutta@googlemail.com>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
  • Loading branch information
AlexNi245 authored and AndyScherzinger committed Aug 20, 2019
1 parent a184345 commit 13e7aff
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
@@ -1,9 +1,7 @@
package com.owncloud.android.ui.activities;

import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.util.Log;
import android.graphics.Color;
import android.view.View;

import com.owncloud.android.ui.adapter.ActivityListAdapter;
Expand Down Expand Up @@ -31,6 +29,7 @@ public void onDrawOver(@NonNull Canvas c, @NonNull RecyclerView parent, @NonNull

if (topElement instanceof ActivityListHeader) {
currentHeader = parent.getChildAt(0);
currentHeader.setBackgroundColor(Color.WHITE);
}
drawHeader(c, currentHeader);
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/res/layout/activity_list_item_header.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<TextView
android:id="@+id/title_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="60dp"
android:layout_marginLeft="@dimen/standard_list_item_size"
android:layout_marginStart="@dimen/standard_list_item_size"
android:layout_marginTop="10dp"
android:text="@string/placeholder_filename"
android:textSize="@dimen/activity_list_item_title_header_text_size"/>

</LinearLayout>
</LinearLayout>

0 comments on commit 13e7aff

Please sign in to comment.