UI对稿
This commit is contained in:
@@ -742,7 +742,7 @@ public class GiftDialog extends BottomSheetDialog implements View.OnClickListene
|
||||
.flatMap(luckyBagNoticeInfos -> Observable.intervalRange(0, Integer.MAX_VALUE, 0, 5, TimeUnit.SECONDS))
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(aLong -> {
|
||||
int index = Math.toIntExact(aLong) % luckyMsgAdapter.getItemCount();
|
||||
int index = aLong.intValue() % luckyMsgAdapter.getItemCount();
|
||||
if (index == 0) {
|
||||
rvLuckyMsg.scrollToPosition(index);
|
||||
} else {
|
||||
@@ -759,7 +759,7 @@ public class GiftDialog extends BottomSheetDialog implements View.OnClickListene
|
||||
initInfo != null && initInfo.isTwelveStarSwitch()) {
|
||||
llStarWeek.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
llStarWeek.setVisibility(View.INVISIBLE);
|
||||
llStarWeek.setVisibility(View.GONE);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -211,7 +211,7 @@ public class PrivateChatGiftDialog extends BottomSheetDialog implements View.OnC
|
||||
WindowManager.LayoutParams params = getWindow().getAttributes();
|
||||
params.width = WindowManager.LayoutParams.MATCH_PARENT;
|
||||
params.height = WindowManager.LayoutParams.MATCH_PARENT;
|
||||
params.dimAmount = 0f;
|
||||
params.dimAmount = 0.5f;
|
||||
getWindow().setAttributes(params);
|
||||
mSubscribe = IMNetEaseManager.get().getChatRoomEventObservable().subscribe(this::onReceiveRoomEvent);
|
||||
}
|
||||
@@ -405,7 +405,7 @@ public class PrivateChatGiftDialog extends BottomSheetDialog implements View.OnC
|
||||
initInfo != null && initInfo.isTwelveStarSwitch()) {
|
||||
llStarWeek.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
llStarWeek.setVisibility(View.INVISIBLE);
|
||||
llStarWeek.setVisibility(View.GONE);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -15,6 +15,22 @@
|
||||
android:orientation="vertical"
|
||||
app:edit_view="@id/editTextMessage">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_chat_limit"
|
||||
android:layout_width="180dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:background="@drawable/shape_white_8dp_round"
|
||||
android:paddingStart="@dimen/dp_10"
|
||||
android:paddingTop="@dimen/dp_2"
|
||||
android:paddingEnd="@dimen/dp_10"
|
||||
android:paddingBottom="@dimen/dp_2"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center"
|
||||
android:visibility="gone"
|
||||
tools:text="哈哈哈哈哈" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/message_activity_list_view_container"
|
||||
android:layout_width="match_parent"
|
||||
@@ -80,19 +96,6 @@
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_chat_limit"
|
||||
android:layout_width="180dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:background="@drawable/bg_chat_limit"
|
||||
android:paddingStart="@dimen/dp_10"
|
||||
android:paddingTop="@dimen/dp_2"
|
||||
android:paddingEnd="@dimen/dp_10"
|
||||
android:paddingBottom="@dimen/dp_2"
|
||||
android:text="哈哈哈哈哈"
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
@@ -184,8 +187,8 @@
|
||||
android:id="@+id/buttonSendMessage"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_marginStart="-9dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:background="@drawable/common_btn_bg"
|
||||
android:contentDescription="@string/empty"
|
||||
android:enabled="false"
|
||||
|
Reference in New Issue
Block a user