Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fallenstardust
YGOMobile
Commits
0db6c643
Commit
0db6c643
authored
Jun 22, 2022
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deck manager不能是抽象类
parent
10c5e5b5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerActivity.java
...ava/cn/garymb/ygomobile/ui/cards/DeckManagerActivity.java
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
+12
-9
mobile/src/main/res/layout/main_fragment.xml
mobile/src/main/res/layout/main_fragment.xml
+1
-1
mobile/src/main/res/xml/shortcuts.xml
mobile/src/main/res/xml/shortcuts.xml
+1
-1
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerActivity.java
View file @
0db6c643
...
...
@@ -111,7 +111,7 @@ import ocgcore.data.Card;
import
ocgcore.data.LimitList
;
import
ocgcore.enums.LimitType
;
public
abstract
class
DeckManagerActivity
extends
BaseActivity
implements
RecyclerViewItemListener
.
OnItemListener
,
OnItemDragListener
,
YGODialogUtil
.
OnDeckMenuListener
,
CardLoader
.
CallBack
,
CardSearcher
.
CallBack
{
public
class
DeckManagerActivity
extends
BaseActivity
implements
RecyclerViewItemListener
.
OnItemListener
,
OnItemDragListener
,
YGODialogUtil
.
OnDeckMenuListener
,
CardLoader
.
CallBack
,
CardSearcher
.
CallBack
{
public
static
void
start
(
Context
context
,
String
path
)
{
Intent
starter
=
new
Intent
(
context
,
DeckManagerActivity
.
class
);
starter
.
putExtra
(
Intent
.
EXTRA_TEXT
,
path
);
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
View file @
0db6c643
...
...
@@ -20,12 +20,14 @@ import android.view.ViewGroup;
import
android.view.inputmethod.EditorInfo
;
import
android.widget.Button
;
import
android.widget.EditText
;
import
android.widget.ImageView
;
import
android.widget.ListView
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.Nullable
;
import
androidx.cardview.widget.CardView
;
import
androidx.recyclerview.widget.DividerItemDecoration
;
import
androidx.recyclerview.widget.LinearLayoutManager
;
...
...
@@ -52,15 +54,16 @@ import cn.garymb.ygomobile.bean.events.ServerInfoEvent;
import
cn.garymb.ygomobile.lite.BuildConfig
;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.loader.ImageLoader
;
import
cn.garymb.ygomobile.ui.activities.FileLogActivity
;
import
cn.garymb.ygomobile.ui.activities.WebActivity
;
import
cn.garymb.ygomobile.ui.adapters.ServerListAdapter
;
import
cn.garymb.ygomobile.ui.adapters.SimpleListAdapter
;
import
cn.garymb.ygomobile.ui.cards.CardDetailRandom
;
import
cn.garymb.ygomobile.ui.cards.DeckManagerActivity
;
import
cn.garymb.ygomobile.ui.mycard.MyCardActivity
;
import
cn.garymb.ygomobile.ui.plus.DialogPlus
;
import
cn.garymb.ygomobile.ui.plus.VUiKit
;
import
cn.garymb.ygomobile.ui.preference.SettingsActivity
;
import
cn.garymb.ygomobile.ui.widget.CardView
;
import
cn.garymb.ygomobile.ui.widget.Shimmer
;
import
cn.garymb.ygomobile.ui.widget.ShimmerTextView
;
import
cn.garymb.ygomobile.utils.FileUtils
;
...
...
@@ -81,10 +84,10 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
private
CardDetailRandom
mCardDetailRandom
;
private
ImageLoader
mImageLoader
;
View
cv_deckmanager
;
View
cv_donation
;
View
cv_game
;
View
cv_download_ex
;
Card
View
cv_deckmanager
;
Card
View
cv_donation
;
Card
View
cv_game
;
Card
View
cv_download_ex
;
@Nullable
@Override
...
...
@@ -135,8 +138,8 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
cv_donation
=
view
.
findViewById
(
R
.
id
.
nav_webpage
);
cv_game
=
view
.
findViewById
(
R
.
id
.
action_game
);
cv_download_ex
=
view
.
findViewById
(
R
.
id
.
action_download_ex
);
/
*
/萌卡
ImageView iv_mc = view.findViewById(R.id.btn_mycard
);
//萌卡
CardView
iv_mc
=
view
.
findViewById
(
R
.
id
.
action_replay
);
iv_mc
.
setOnClickListener
((
v
)
->
{
if
(
Constants
.
SHOW_MYCARD
)
{
startActivity
(
new
Intent
(
getActivity
(),
MyCardActivity
.
class
));
...
...
@@ -149,7 +152,7 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
startActivity
(
new
Intent
(
getActivity
(),
FileLogActivity
.
class
));
return
true
;
}
});
*/
});
tv
=
(
ShimmerTextView
)
view
.
findViewById
(
R
.
id
.
shimmer_tv
);
toggleAnimation
(
tv
);
...
...
@@ -529,7 +532,7 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
//startActivity(new Intent(getContext(), CardSearchActivity.class));
break
;
case
R
.
id
.
action_deck_manager
:
DeckManagerActivity
.
start
(
getContext
(),
null
);
startActivity
(
new
Intent
(
getActivity
(),
DeckManagerActivity
.
class
)
);
break
;
case
R
.
id
.
action_join_qq_group
:
String
key
=
"anEjPCDdhLgxtfLre-nT52G1Coye3LkK"
;
...
...
mobile/src/main/res/layout/main_fragment.xml
View file @
0db6c643
...
...
@@ -265,7 +265,7 @@
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/action_deck_manager
k
"
android:id=
"@+id/action_deck_manager"
android:layout_width=
"100dp"
android:layout_height=
"100dp"
android:layout_marginBottom=
"10dp"
...
...
mobile/src/main/res/xml/shortcuts.xml
View file @
0db6c643
...
...
@@ -24,7 +24,7 @@
<intent
android:action=
"android.intent.action.VIEW"
android:targetClass=
"cn.garymb.ygomobile.ui.cards.CardSearch
Activity
"
android:targetClass=
"cn.garymb.ygomobile.ui.cards.CardSearch
Fragment
"
android:targetPackage=
"cn.garymb.ygomobile"
/>
<categories
android:name=
"android.shortcut.conversation"
/>
</shortcut>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment