Fast stylistic cleanup of deck view.
* Bigger card names. * Gray settings button (instead of black).
This commit is contained in:
parent
4d8cdcb82d
commit
89745c1699
@ -61,9 +61,15 @@ class CardPreviewArrayAdapter extends ArrayAdapter<PreviewCard> {
|
||||
CardView cardView = (CardView) row.findViewById(R.id.card_preview_card);
|
||||
TextView nameView = (TextView) row.findViewById(R.id.card_preview_name);
|
||||
|
||||
cardView.setBackgroundColor(card.getColor());
|
||||
int backgroundColor = card.getColor();
|
||||
cardView.setBackgroundColor(backgroundColor);
|
||||
nameView.setText(card.getName());
|
||||
nameView.setTextColor(0xFFFFFF ^ card.getColor());
|
||||
if (backgroundColor == CardFile.DEFAULT_BACKGROUND_COLOR){
|
||||
nameView.setTextColor(0xFFF0F0F0);
|
||||
}
|
||||
else {
|
||||
nameView.setTextColor(0xFFFFFF ^ backgroundColor);
|
||||
}
|
||||
|
||||
return row;
|
||||
}
|
||||
|
BIN
app/src/main/res/drawable-hdpi/ic_settings_gray.png
Normal file
BIN
app/src/main/res/drawable-hdpi/ic_settings_gray.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
app/src/main/res/drawable-mdpi/ic_settings_gray.png
Normal file
BIN
app/src/main/res/drawable-mdpi/ic_settings_gray.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 803 B |
BIN
app/src/main/res/drawable-xhdpi/ic_settings_gray.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_settings_gray.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_settings_gray.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_settings_gray.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/ic_settings_gray.png
Normal file
BIN
app/src/main/res/drawable-xxxhdpi/ic_settings_gray.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
@ -36,6 +36,7 @@
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="TextView"
|
||||
android:textSize="25dp"
|
||||
tools:layout_editor_absoluteX="8dp"
|
||||
tools:layout_editor_absoluteY="3dp" />
|
||||
|
||||
@ -46,8 +47,9 @@
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:alpha="1"
|
||||
android:clickable="true"
|
||||
android:src="@drawable/ic_settings_black" />
|
||||
android:src="@drawable/ic_settings_gray" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user