Skip to content

Commit

Permalink
fix: totals colors (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
gruskal authored Dec 2, 2022
1 parent 79e1413 commit b35591e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ public int measureLines(DataColumn dataColumn) {
}

public void copyToClipBoard() {
String text = cell.qText != null ? cell.qText : "";
ClipboardManager clipboard = (ClipboardManager) getContext().getSystemService(Context.CLIPBOARD_SERVICE);
ClipData clip = ClipData.newPlainText(cell.qText, cell.qText);
ClipData clip = ClipData.newPlainText(text, text);
clipboard.setPrimaryClip(clip);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static TotalsViewCell buildFixedTotalsCell(TableView tableView, DataColum
params.bottomMargin = TableTheme.DefaultRowHeight;
}
text.setLayoutParams(params);

text.setTextColor(tableView.cellContentStyle.color);
text.setBackgroundColor(Color.WHITE);
text.setZ((int) PixelUtils.dpToPx(headerZ));
text.setTextSize(tableView.cellContentStyle.fontSize);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.widget.LinearLayout;
Expand All @@ -19,6 +20,9 @@ public TotalsViewCell(Context context, DataColumn dataColumn, TableView tableVie
this.column = dataColumn;
this.tableView = tableView;
textWrapper = new TextWrapper(column, tableView, this);

int textColor = tableView.cellContentStyle.color;
setTextColor(textColor);
}

public void setColumn(DataColumn col) {
Expand Down

0 comments on commit b35591e

Please sign in to comment.