Archived
Cleanup in styles.xml
This commit is contained in:
1 parent
b893a22d80
commit
7f2bc2fd61
2 files changed
+9
-25
No files matched your search
+5
-21
@@ -16,31 +16,15 @@
|
||||
|
||||
|
||||
<!-- EVENT LIST STYLES: -->
|
||||
<color name="ListItemBackgroundEven">#202020</color>
|
||||
<style name="ListItemTextEven" parent="@android:style/TextAppearance">
|
||||
<item name="android:textColor">#cccccc</item>
|
||||
</style>
|
||||
|
||||
<style name="ListItemTextEvenTitle" parent="@style/ListItemTextEven">
|
||||
<item name="android:textSize">14sp</item>
|
||||
</style>
|
||||
|
||||
<style name="ListItemTextEvenDate" parent="@style/ListItemTextEven">
|
||||
<item name="android:textSize">11sp</item>
|
||||
<item name="android:textColor">#aaaaaa</item>
|
||||
</style>
|
||||
|
||||
|
||||
<color name="ListItemBackgroundEven">#202020</color>
|
||||
<color name="ListItemBackgroundOdd">#000000</color>
|
||||
<style name="ListItemTextOdd" parent="@android:style/TextAppearance">
|
||||
|
||||
<style name="ListItemTextTitle" parent="@android:style/TextAppearance">
|
||||
<item name="android:textSize">14sp</item>
|
||||
<item name="android:textColor">#cccccc</item>
|
||||
</style>
|
||||
|
||||
<style name="ListItemTextOddTitle" parent="@style/ListItemTextOdd">
|
||||
<item name="android:textSize">14sp</item>
|
||||
</style>
|
||||
|
||||
<style name="ListItemTextOddDate" parent="@style/ListItemTextOdd">
|
||||
<style name="ListItemTextDate" parent="@android:style/TextAppearance">
|
||||
<item name="android:textSize">11sp</item>
|
||||
<item name="android:textColor">#aaaaaa</item>
|
||||
</style>
|
||||
|
||||
@@ -119,12 +119,12 @@ public class ProgramListActivity extends BaseDnsActivity {
|
||||
/* Apply styles: */
|
||||
if (position % 2 == 0) {
|
||||
row.setBackgroundResource(R.color.ListItemBackgroundEven);
|
||||
titleView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextEvenTitle);
|
||||
dateView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextEvenDate);
|
||||
titleView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextTitle);
|
||||
dateView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextDate);
|
||||
} else {
|
||||
row.setBackgroundResource(R.color.ListItemBackgroundOdd);
|
||||
titleView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextOddTitle);
|
||||
dateView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextOddDate);
|
||||
titleView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextTitle);
|
||||
dateView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextDate);
|
||||
}
|
||||
|
||||
return row;
|
||||
|
||||
Reference in new issue
Block a user