修改游戏问题
This commit is contained in:
parent
12482b6624
commit
45566001a7
@ -87,7 +87,7 @@ public class CreateSudGamePopup extends BottomPopupView {
|
||||
ViewClicksAntiShake.clicksAntiShake(createGameType, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||
@Override
|
||||
public void onViewClicks() {
|
||||
if (hasMoveUp){
|
||||
if (hasMoveUp) {
|
||||
InputMethodManager imm = getSystemService(getContext(), InputMethodManager.class);
|
||||
if (imm != null) {
|
||||
imm.hideSoftInputFromWindow(roomName.getWindowToken(), 0);
|
||||
@ -104,8 +104,8 @@ public class CreateSudGamePopup extends BottomPopupView {
|
||||
.asCustom(new SudGameListSelectPopup(getContext(), 4, customSidebarChildModels, interactionID))
|
||||
.show();
|
||||
}
|
||||
},1000);
|
||||
}else {
|
||||
}, 500);
|
||||
} else {
|
||||
XPopup.Builder builder = new XPopup.Builder(getContext()).atView(createGameType);
|
||||
builder.hasShadowBg(false)
|
||||
.isDestroyOnDismiss(true)
|
||||
@ -168,6 +168,14 @@ public class CreateSudGamePopup extends BottomPopupView {
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (sill.length() > 6 ){
|
||||
if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
ToastUtil.show("数量区间为100--5W");
|
||||
} else {
|
||||
ToastUtil.show("The quantity range is 100 to 5 W");
|
||||
}
|
||||
return;
|
||||
}else {
|
||||
int sillNumber = Integer.parseInt(sill);
|
||||
if (sillNumber < 100 || sillNumber > 50000) {
|
||||
if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
@ -177,6 +185,8 @@ public class CreateSudGamePopup extends BottomPopupView {
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
LiveNetManager.get(getContext())
|
||||
.createSudRoom(name, sill, id, new HttpCallback<CreateSudRoomModel>() {
|
||||
@Override
|
||||
|
@ -118,6 +118,7 @@
|
||||
android:inputType="numberDecimal"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingTop="9dp"
|
||||
android:maxEms="5"
|
||||
android:ellipsize="end"
|
||||
android:paddingBottom="9dp"
|
||||
android:textColor="@color/white"
|
||||
|
@ -119,6 +119,7 @@
|
||||
android:inputType="numberDecimal"
|
||||
android:paddingStart="12dp"
|
||||
android:ellipsize="end"
|
||||
android:maxEms="5"
|
||||
android:paddingTop="9dp"
|
||||
android:paddingBottom="9dp"
|
||||
android:textColor="#E6000000"
|
||||
|
@ -255,26 +255,7 @@
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="20dp">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/live_tool_game"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:src="@mipmap/iconlive_tool_game" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:text="@string/interactive_game"
|
||||
android:textColor="#FF9A9A9A"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</HorizontalScrollView>
|
||||
|
||||
@ -389,6 +370,27 @@
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/live_tool_game"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="23dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:src="@mipmap/iconlive_tool_game" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:text="@string/interactive_game"
|
||||
android:textColor="#FF9A9A9A"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</HorizontalScrollView>
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
|
@ -23,14 +23,14 @@
|
||||
android:scaleType="centerCrop"
|
||||
app:riv_oval="true" />
|
||||
|
||||
<pl.droidsonroids.gif.GifImageView
|
||||
<ImageView
|
||||
android:id="@+id/btn_live"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:layout_marginEnd="3dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:src="@mipmap/icon_user_home_living"
|
||||
android:src="@mipmap/icon_user_game_living"
|
||||
android:visibility="visible" />
|
||||
|
||||
<ImageView
|
||||
|
@ -1339,7 +1339,7 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="interactive_game_create_1_2">1K-2KGolden Bean</string>
|
||||
<string name="interactive_game_create_2_5">2K-5KGolden Bean</string>
|
||||
<string name="interactive_game_create_5">5 K or more gold beans</string>
|
||||
<string name="interactive_game_player">User</string>
|
||||
<string name="interactive_game_player">user</string>
|
||||
<string name="interactive_game_player_we_are">In a team of %s people, let\'s play together~</string>
|
||||
<string name="interactive_game_player_we_are_2">%s people online</string>
|
||||
<string name="interactive_game_search_room">Search for room</string>
|
||||
|
@ -1341,7 +1341,7 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="interactive_game_create_1_2">1K-2KGolden Bean</string>
|
||||
<string name="interactive_game_create_2_5">2K-5KGolden Bean</string>
|
||||
<string name="interactive_game_create_5">5 K or more gold beans</string>
|
||||
<string name="interactive_game_player">User</string>
|
||||
<string name="interactive_game_player">user</string>
|
||||
<string name="interactive_game_player_we_are">In a team of %s people, let\'s play together~</string>
|
||||
<string name="interactive_game_player_we_are_2">%s people online</string>
|
||||
<string name="interactive_game_search_room">Search for room</string>
|
||||
|
@ -251,7 +251,7 @@ public class MainHomeGameViewHolder extends AbsMainHomeChildViewHolder implement
|
||||
public void onViewClicks() {
|
||||
new XPopup.Builder(mContext)
|
||||
.enableDrag(false)
|
||||
.moveUpToKeyboard(false)
|
||||
.moveUpToKeyboard(true)
|
||||
.asCustom(new CreateSudGamePopup(mContext, customSidebarChildModels, true).setHomeView(true))
|
||||
|
||||
.show();
|
||||
|
Loading…
Reference in New Issue
Block a user