-Added icon for bookmark pager.
@ -85,14 +85,15 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte
|
||||
|
||||
int channelIcon = ThemeHelper.resolveResourceIdFromAttr(activity, R.attr.ic_channel);
|
||||
int whatsHotIcon = ThemeHelper.resolveResourceIdFromAttr(activity, R.attr.ic_hot);
|
||||
int bookmarkIcon = ThemeHelper.resolveResourceIdFromAttr(activity, R.attr.ic_bookmark);
|
||||
|
||||
if (isSubscriptionsPageOnlySelected()) {
|
||||
tabLayout.getTabAt(0).setIcon(channelIcon);
|
||||
tabLayout.getTabAt(1).setText(R.string.tab_bookmarks);
|
||||
tabLayout.getTabAt(1).setIcon(bookmarkIcon);
|
||||
} else {
|
||||
tabLayout.getTabAt(0).setIcon(whatsHotIcon);
|
||||
tabLayout.getTabAt(1).setIcon(channelIcon);
|
||||
tabLayout.getTabAt(2).setText(R.string.tab_bookmarks);
|
||||
tabLayout.getTabAt(2).setIcon(bookmarkIcon);
|
||||
}
|
||||
}
|
||||
|
||||
|
BIN
app/src/main/res/drawable-hdpi/ic_bookmark_black_24dp.png
Normal file
After Width: | Height: | Size: 180 B |
BIN
app/src/main/res/drawable-hdpi/ic_bookmark_white_24dp.png
Normal file
After Width: | Height: | Size: 185 B |
BIN
app/src/main/res/drawable-mdpi/ic_bookmark_black_24dp.png
Normal file
After Width: | Height: | Size: 137 B |
BIN
app/src/main/res/drawable-mdpi/ic_bookmark_white_24dp.png
Normal file
After Width: | Height: | Size: 139 B |
BIN
app/src/main/res/drawable-xhdpi/ic_bookmark_black_24dp.png
Normal file
After Width: | Height: | Size: 204 B |
BIN
app/src/main/res/drawable-xhdpi/ic_bookmark_white_24dp.png
Normal file
After Width: | Height: | Size: 213 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_bookmark_black_24dp.png
Normal file
After Width: | Height: | Size: 261 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_bookmark_white_24dp.png
Normal file
After Width: | Height: | Size: 273 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_bookmark_black_24dp.png
Normal file
After Width: | Height: | Size: 332 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_bookmark_white_24dp.png
Normal file
After Width: | Height: | Size: 351 B |
@ -26,6 +26,7 @@
|
||||
<attr name="play" format="reference"/>
|
||||
<attr name="ic_hot" format="reference"/>
|
||||
<attr name="ic_channel" format="reference"/>
|
||||
<attr name="ic_bookmark" format="reference"/>
|
||||
<attr name="playlist_add" format="reference"/>
|
||||
|
||||
<!-- Can't refer to colors directly into drawable's xml-->
|
||||
|
@ -41,6 +41,7 @@
|
||||
<item name="play">@drawable/ic_play_arrow_black_24dp</item>
|
||||
<item name="ic_hot">@drawable/ic_whatshot_black_24dp</item>
|
||||
<item name="ic_channel">@drawable/ic_channel_black_24dp</item>
|
||||
<item name="ic_bookmark">@drawable/ic_bookmark_black_24dp</item>
|
||||
<item name="playlist_add">@drawable/ic_playlist_add_black_24dp</item>
|
||||
|
||||
<item name="separator_color">@color/light_separator_color</item>
|
||||
@ -89,6 +90,7 @@
|
||||
<item name="play">@drawable/ic_play_arrow_white_24dp</item>
|
||||
<item name="ic_hot">@drawable/ic_whatshot_white_24dp</item>
|
||||
<item name="ic_channel">@drawable/ic_channel_white_24dp</item>
|
||||
<item name="ic_bookmark">@drawable/ic_bookmark_white_24dp</item>
|
||||
<item name="playlist_add">@drawable/ic_playlist_add_white_24dp</item>
|
||||
|
||||
<item name="separator_color">@color/dark_separator_color</item>
|
||||
|