add new elephant friends (#757)
* add new elephant friends * add art license * fix typo
This commit is contained in:
parent
04c842afc4
commit
8930d277e6
13 changed files with 207 additions and 21 deletions
|
@ -42,11 +42,8 @@ public class FooterViewHolder extends RecyclerView.ViewHolder {
|
|||
progressBar = itemView.findViewById(R.id.footer_progress_bar);
|
||||
endMessage = itemView.findViewById(R.id.footer_end_message);
|
||||
Drawable top = AppCompatResources.getDrawable(itemView.getContext(),
|
||||
R.drawable.elephant_friend);
|
||||
if (top != null) {
|
||||
top.setBounds(0, 0, top.getIntrinsicWidth() / 2, top.getIntrinsicHeight() / 2);
|
||||
}
|
||||
endMessage.setCompoundDrawables(null, top, null, null);
|
||||
R.drawable.elephant_friend_empty);
|
||||
endMessage.setCompoundDrawablesWithIntrinsicBounds(null, top, null, null);
|
||||
}
|
||||
|
||||
public void setState(State state) {
|
||||
|
|
|
@ -216,11 +216,8 @@ public class NotificationsFragment extends SFragment implements
|
|||
|
||||
private void setupNothingView() {
|
||||
Drawable top = AppCompatResources.getDrawable(Objects.requireNonNull(getContext()),
|
||||
R.drawable.elephant_friend);
|
||||
if (top != null) {
|
||||
top.setBounds(0, 0, top.getIntrinsicWidth() / 2, top.getIntrinsicHeight() / 2);
|
||||
}
|
||||
nothingMessageView.setCompoundDrawables(null, top, null, null);
|
||||
R.drawable.elephant_friend_empty);
|
||||
nothingMessageView.setCompoundDrawablesWithIntrinsicBounds(null, top, null, null);
|
||||
nothingMessageView.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
|
|
|
@ -423,11 +423,8 @@ public class TimelineFragment extends SFragment implements
|
|||
}
|
||||
|
||||
private void setupNothingView() {
|
||||
Drawable top = AppCompatResources.getDrawable(requireContext(), R.drawable.elephant_friend);
|
||||
if (top != null) {
|
||||
top.setBounds(0, 0, top.getIntrinsicWidth() / 2, top.getIntrinsicHeight() / 2);
|
||||
}
|
||||
nothingMessageView.setCompoundDrawables(null, top, null, null);
|
||||
Drawable top = AppCompatResources.getDrawable(requireContext(), R.drawable.elephant_friend_empty);
|
||||
nothingMessageView.setCompoundDrawablesWithIntrinsicBounds(null, top, null, null);
|
||||
nothingMessageView.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue