6.5.4礼物冠名
This commit is contained in:
parent
b2297b062e
commit
17a2f5e091
@ -4,14 +4,14 @@ ext {
|
||||
buildToolsVersion: "29.0.2",
|
||||
minSdkVersion : 21,
|
||||
targetSdkVersion : 31,
|
||||
versionCode : 441,
|
||||
versionCode : 442,
|
||||
versionName : "6.5.4"
|
||||
]
|
||||
manifestPlaceholders = [
|
||||
//正式、
|
||||
// serverHost : "https://napi.yaoulive.com",
|
||||
serverHost : "https://napi.yaoulive.com",
|
||||
// 测试
|
||||
serverHost : "https://ceshi.yaoulive.com",
|
||||
// serverHost : "https://ceshi.yaoulive.com",
|
||||
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
@ -7,6 +7,7 @@
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/frame_gift_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_gravity="bottom"
|
||||
android:overScrollMode="never"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/gift_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="95dp"
|
||||
android:background="@drawable/background_gift_select"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
@ -20,8 +20,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/gift_icon"
|
||||
android:layout_width="55dp"
|
||||
android:layout_height="55dp" />
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp" />
|
||||
|
||||
|
||||
<TextView
|
||||
@ -30,7 +30,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="1dp"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="11sp" />
|
||||
android:textSize="10sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
@ -48,7 +48,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="10sp" />
|
||||
android:textSize="9sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/gift_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="95dp"
|
||||
android:background="@drawable/background_gift_select"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
@ -27,8 +27,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/gift_icon"
|
||||
android:layout_width="55dp"
|
||||
android:layout_height="55dp" />
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/expire"
|
||||
|
Loading…
Reference in New Issue
Block a user