Skip to content

Commit

Permalink
Use setBackgroundDrawable instead as it uses a lower API version
Browse files Browse the repository at this point in the history
  • Loading branch information
markwinter committed Jul 24, 2014
1 parent a6f1eba commit 6441f1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private void ownMessage(ChatMessagesHolder holder) {
holder.layout.setGravity(Gravity.RIGHT);
holder.message.setTextColor(context.getResources().getColor(R.color.white_absolute));
holder.row.setGravity(Gravity.RIGHT);
holder.background.setBackground(context.getResources().getDrawable(R.drawable.chatright));
holder.background.setBackgroundDrawable(context.getResources().getDrawable(R.drawable.chatright));
holder.background.setPadding(1*density*paddingscale, 1*density*paddingscale, 6*density + 1*density*paddingscale, 1*density*paddingscale);
}

Expand Down

0 comments on commit 6441f1f

Please sign in to comment.