Commit c536fa46 authored by fallenstardust's avatar fallenstardust

fix

parent 711d0cff
#created by ...
#main
46986414
46986414
74677422
74677422
67300516
10802915
10802915
26202165
91646304
14558127
14558127
72291078
72291078
72291078
23434538
23434538
23434538
97631303
97631303
97631303
1845204
1845204
6172122
6172122
6172122
11827244
11827244
18144506
81439173
83764718
92353449
92353449
24224830
24224830
24224830
10045474
10045474
10045474
40605147
40605147
#extra
37818794
37818794
37818794
96334243
63519819
50588353
70369116
70369116
98978921
98978921
31226177
31226177
60303245
60303245
60303245
!side
{
"welcome": [
"你好,我太帅了。"
],
"deckerror": [
"抱歉,我的卡组里的{0}的数量似乎出了问题。"
],
"duelstart": [
"进行堂堂正正的决斗吧(裤裆藏龙)"
],
"newturn": [
"接下来就是我的舞台"
],
"endturn": [
"我的回合结束,试试来击溃我吧"
],
"directattack": [
"老子上了,要你的命"
],
"attack": [
"消失吧,杂鱼"
],
"ondirectattack": [
"爸爸,饶命"
],
"facedownmonstername": "怪兽",
"activate": [
"我发动,这张卡的效果,虽然上面没写,但就是可以这样用。"
],
"summon": [
"强,无敌",
"召唤{0},赚爆",
"{0}简直假卡",
"我永远喜欢{0}"
],
"setmonster": [
"又卡手了"
],
"chaining": [
"愚蠢,看我见招拆招"
]
}
\ No newline at end of file
......@@ -8,7 +8,7 @@ android {
applicationId "cn.garymb.ygomobile"
minSdkVersion 21
targetSdkVersion 28
versionCode 360100105
versionCode 360100106
versionName "3.6.1"
flavorDimensions "versionCode"
vectorDrawables.useSupportLibrary = true
......
package cn.garymb.ygomobile.ui.cards;
import android.app.Dialog;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
......@@ -8,6 +7,8 @@ import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import com.feihua.dialogutils.util.DialogUtils;
import cn.garymb.ygomobile.lite.R;
import cn.garymb.ygomobile.loader.ImageLoader;
import cn.garymb.ygomobile.ui.activities.BaseActivity;
......@@ -50,6 +51,8 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
private Card mCardInfo;
private CardListProvider mProvider;
private OnCardClickListener mListener;
private DialogUtils dialog;
private ImageView photoView;
public CardDetail(BaseActivity context, ImageLoader imageLoader, StringManager stringManager) {
super(LayoutInflater.from(context).inflate(R.layout.dialog_cardinfo, null));
......@@ -168,13 +171,12 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
if (cardInfo == null) return;
mCardInfo = cardInfo;
imageLoader.bindImage(cardImage, cardInfo.Code, null, true);
dialog = DialogUtils.getdx(context);
cardImage.setOnClickListener((v) -> {
Dialog dialog = new Dialog(context);
dialog.setContentView(R.layout.dialog_photo);
dialog.show();
ImageView photoView = dialog.findViewById(R.id.photoView);
View view = dialog.initDialog(context, R.layout.dialog_photo);
ImageView photoView = view.findViewById(R.id.photoView);
photoView.setOnClickListener(View -> {
dialog.dismiss();
dialog.dis();
});
imageLoader.bindImage(photoView, cardInfo.Code, null, true);
});
......
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/photoView"
android:layout_width="421dp"
android:layout_height="614dp"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="fitCenter"
android:background="@color/tr_transparent_background" />
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment