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
a876edf8
Commit
a876edf8
authored
Jun 22, 2022
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整布局
parent
e7d966b3
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
106 deletions
+5
-106
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
...ava/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
+2
-4
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
+0
-7
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
+0
-1
mobile/src/main/res/layout/dialog_plus_base.xml
mobile/src/main/res/layout/dialog_plus_base.xml
+1
-1
mobile/src/main/res/layout/fragment_home.xml
mobile/src/main/res/layout/fragment_home.xml
+2
-41
mobile/src/main/res/layout/preference_custom.xml
mobile/src/main/res/layout/preference_custom.xml
+0
-52
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
View file @
a876edf8
...
...
@@ -131,6 +131,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
private
RecyclerView
mRecyclerView
;
private
DeckAdapater
mDeckAdapater
;
private
final
AppsSettings
mSettings
=
AppsSettings
.
get
();
private
BaseActivity
mContext
;
private
File
mPreLoadFile
;
private
DeckItemTouchHelper
mDeckItemTouchHelper
;
...
...
@@ -828,7 +829,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
DialogPlus
builder
=
new
DialogPlus
(
getContext
());
switch
(
menuId
)
{
case
R
.
id
.
action_deck_backup_n_restore
:
//
startPermissionsActivity();
mContext
.
startPermissionsActivity
();
builder
.
setTitle
(
R
.
string
.
question
);
builder
.
setMessage
(
R
.
string
.
deck_explain
);
builder
.
setMessageGravity
(
Gravity
.
CENTER_HORIZONTAL
);
...
...
@@ -844,9 +845,6 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
});
builder
.
show
();
break
;
// case R.id.action_refresh:
// mDeckAdapater.notifyDataSetChanged();
// break;
case
R
.
id
.
action_search
:
//弹条件对话框
showSearch
(
true
);
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
View file @
a876edf8
...
...
@@ -221,13 +221,6 @@ public abstract class HomeActivity extends BaseActivity implements OnDuelAssista
public
abstract
void
updateImages
();
/*
public void AnimationShake() {
Animation shake = AnimationUtils.loadAnimation(this, R.anim.shake);//加载动画资源文件
findViewById(R.id.cube).startAnimation(shake); //给组件播放动画效果
}
*/
private
void
saveDeck
(
String
deckMessage
,
boolean
isUrl
)
{
DialogPlus
dialog
=
new
DialogPlus
(
this
);
dialog
.
setTitle
(
R
.
string
.
question
);
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
View file @
a876edf8
...
...
@@ -130,7 +130,6 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
mServerListManager
=
new
ServerListManager
(
getContext
(),
mServerListAdapter
);
mServerListManager
.
bind
(
mServerList
);
mServerListManager
.
syncLoadData
();
cv_deckmanager
=
view
.
findViewById
(
R
.
id
.
action_deck_manager
);
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
);
...
...
mobile/src/main/res/layout/dialog_plus_base.xml
View file @
a876edf8
...
...
@@ -4,7 +4,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/
window
"
>
android:background=
"@drawable/
sdialogl
"
>
<RelativeLayout
android:id=
"@+id/layout_title"
...
...
mobile/src/main/res/layout/fragment_home.xml
View file @
a876edf8
...
...
@@ -264,52 +264,13 @@
android:textStyle=
"bold"
/>
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/action_deck_manager"
android:layout_width=
"100dp"
android:layout_height=
"100dp"
android:layout_marginBottom=
"10dp"
android:clickable=
"true"
android:foreground=
"?android:attr/selectableItemBackground"
android:orientation=
"vertical"
app:cardBackgroundColor=
"@color/transparent"
app:cardElevation=
"0dp"
app:cardUseCompatPadding=
"false"
app:elevation=
"0dp"
>
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"-30dp"
android:layout_marginLeft=
"20dp"
android:layout_marginTop=
"20dp"
android:layout_marginEnd=
"-30dp"
android:layout_marginRight=
"-20dp"
android:layout_marginBottom=
"-20dp"
android:scaleType=
"fitEnd"
android:src=
"@drawable/downloadimages"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/window3"
android:paddingLeft=
"13dp"
android:paddingTop=
"13dp"
android:text=
"@string/deck_manager"
android:textColor=
"@color/holo_blue_bright"
android:textSize=
"10sp"
android:textStyle=
"bold"
/>
</RelativeLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<androidx.cardview.widget.CardView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/action_join_qq_group"
android:layout_width=
"100dp"
...
...
mobile/src/main/res/layout/preference_custom.xml
deleted
100644 → 0
View file @
e7d966b3
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:minHeight=
"?android:attr/listPreferredItemHeight"
android:paddingRight=
"?android:attr/scrollbarSize"
>
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"15dip"
android:layout_marginTop=
"6dip"
android:layout_marginRight=
"6dip"
android:layout_marginBottom=
"6dip"
android:layout_weight=
"1"
>
<TextView
android:id=
"@android:id/title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:ellipsize=
"marquee"
android:fadingEdge=
"horizontal"
android:singleLine=
"true"
android:textAppearance=
"@style/TextAppearance.AppCompat.Title"
android:textColor=
"@color/holo_blue_bright"
android:textSize=
"16sp"
tools:text=
"Title"
/>
<TextView
android:id=
"@android:id/summary"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@android:id/title"
android:layout_alignLeft=
"@android:id/title"
android:layout_marginTop=
"4dp"
android:textAppearance=
"@style/TextAppearance.AppCompat.Caption"
android:textColor=
"@color/white"
android:textSize=
"12sp"
tools:text=
"Summary"
/>
</RelativeLayout>
<!-- Preference should place its actual preference widget here. -->
<LinearLayout
android:id=
"@android:id/widget_frame"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:gravity=
"center_vertical"
android:orientation=
"vertical"
/>
</LinearLayout>
\ No newline at end of file
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