6.5.4礼物冠名
This commit is contained in:
@@ -63,20 +63,20 @@ public class FrameGiftViewHolder extends RecyclerView.ViewHolder {
|
||||
public void showData(int contextLayoutGiftHeight, LiveGiftBean model) {
|
||||
|
||||
//设置高度
|
||||
itemView.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
GridLayoutManager.LayoutParams linearParams = (GridLayoutManager.LayoutParams) itemView.getLayoutParams();
|
||||
int giftHeight = 607;
|
||||
if (contextLayoutGiftHeight > 607) {
|
||||
giftHeight = 607;
|
||||
} else {
|
||||
giftHeight = contextLayoutGiftHeight;
|
||||
}
|
||||
linearParams.height = (giftHeight - 30) / 2;
|
||||
itemView.setLayoutParams(linearParams);
|
||||
}
|
||||
});
|
||||
// itemView.post(new Runnable() {
|
||||
// @Override
|
||||
// public void run() {
|
||||
// GridLayoutManager.LayoutParams linearParams = (GridLayoutManager.LayoutParams) itemView.getLayoutParams();
|
||||
// int giftHeight = 607;
|
||||
// if (contextLayoutGiftHeight > 607) {
|
||||
// giftHeight = 607;
|
||||
// } else {
|
||||
// giftHeight = contextLayoutGiftHeight;
|
||||
// }
|
||||
// linearParams.height = (giftHeight - 30) / 2;
|
||||
//// itemView.setLayoutParams(linearParams);
|
||||
// }
|
||||
// });
|
||||
giftLayout.setSelected(model.isChecked());
|
||||
if (model.isChecked()) {
|
||||
giftIcon.startAnimation(mAnimation);
|
||||
|
||||
@@ -62,14 +62,14 @@ public class LiveParcelItemViewHolder extends RecyclerView.ViewHolder {
|
||||
|
||||
public void showData(int contextLayoutGiftHeight, LiveGiftBean model) {
|
||||
//设置高度
|
||||
itemView.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
GridLayoutManager.LayoutParams linearParams = (GridLayoutManager.LayoutParams) itemView.getLayoutParams();
|
||||
linearParams.height = contextLayoutGiftHeight / 2;
|
||||
itemView.setLayoutParams(linearParams);
|
||||
}
|
||||
});
|
||||
// itemView.post(new Runnable() {
|
||||
// @Override
|
||||
// public void run() {
|
||||
// GridLayoutManager.LayoutParams linearParams = (GridLayoutManager.LayoutParams) itemView.getLayoutParams();
|
||||
// linearParams.height = contextLayoutGiftHeight / 2;
|
||||
//// itemView.setLayoutParams(linearParams);
|
||||
// }
|
||||
// });
|
||||
giftLayout.setSelected(model.isChecked());
|
||||
if (model.isChecked()) {
|
||||
giftIcon.startAnimation(mAnimation);
|
||||
|
||||
Reference in New Issue
Block a user