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