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
eae0c5eb
Commit
eae0c5eb
authored
Jun 30, 2022
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
替换默认bottomNavigationBar尺寸
修改底部图标大小
parent
96d310b0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
62 additions
and
4 deletions
+62
-4
mobile/src/main/res/drawable-xhdpi/mycard.png
mobile/src/main/res/drawable-xhdpi/mycard.png
+0
-0
mobile/src/main/res/drawable-xhdpi/searcher.png
mobile/src/main/res/drawable-xhdpi/searcher.png
+0
-0
mobile/src/main/res/layout/activity_home.xml
mobile/src/main/res/layout/activity_home.xml
+1
-1
mobile/src/main/res/values-zh/strings.xml
mobile/src/main/res/values-zh/strings.xml
+2
-2
mobile/src/main/res/values/dimens.xml
mobile/src/main/res/values/dimens.xml
+58
-0
mobile/src/main/res/values/strings.xml
mobile/src/main/res/values/strings.xml
+1
-1
No files found.
mobile/src/main/res/drawable-xhdpi/mycard.png
View replaced file @
96d310b0
View file @
eae0c5eb
30.3 KB
|
W:
|
H:
29.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
mobile/src/main/res/drawable-xhdpi/searcher.png
View replaced file @
96d310b0
View file @
eae0c5eb
19.7 KB
|
W:
|
H:
19.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
mobile/src/main/res/layout/activity_home.xml
View file @
eae0c5eb
...
...
@@ -19,6 +19,6 @@
<com.ashokvarma.bottomnavigation.BottomNavigationBar
android:id=
"@+id/bottom_navigation_bar"
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
70dp
"
android:layout_gravity=
"bottom"
/>
</FrameLayout>
\ No newline at end of file
mobile/src/main/res/values-zh/strings.xml
View file @
eae0c5eb
...
...
@@ -89,7 +89,7 @@
<string
name=
"server_is_exist"
>
服务器信息已经存在!
</string>
<string
name=
"server_info_error"
>
服务器信息填写错误
</string>
<string
name=
"card_search"
>
卡片搜索
</string>
<string
name=
"deck_manager"
>
卡组
编辑
</string>
<string
name=
"deck_manager"
>
卡组
</string>
<string
name=
"category_manager"
>
卡组分类选择
</string>
<string
name=
"search"
>
搜索
</string>
<string
name=
"search_open"
>
过滤
</string>
...
...
@@ -196,7 +196,7 @@
<string
name=
"tip_istunning"
>
游戏已运行
</string>
<string
name=
"edit"
>
编辑
</string>
<string
name=
"delete"
>
删除
</string>
<string
name=
"mycard"
>
萌卡
平台
</string>
<string
name=
"mycard"
>
萌卡
</string>
<string
name=
"arena"
>
决斗数据库
</string>
<string
name=
"mc_chat"
>
聊天室
</string>
<string
name=
"noting_to_send"
>
发送内容不能为空
</string>
...
...
mobile/src/main/res/values/dimens.xml
View file @
eae0c5eb
...
...
@@ -50,4 +50,62 @@
<dimen
name=
"brower_arrow_height"
>
100dp
</dimen>
<dimen
name=
"menu_text_size"
>
6dp
</dimen>
<dimen
name=
"menu_text_top"
>
-5dp
</dimen>
<!--重设底部导航栏尺寸BottomNavigationBar-->
<dimen
name=
"fixed_min_width"
>
120dp
</dimen>
<dimen
name=
"fixed_min_width_small_views"
>
104dp
</dimen>
<dimen
name=
"fixed_max_width"
>
168dp
</dimen>
<dimen
name=
"fixed_width_padding"
>
12dp
</dimen>
<dimen
name=
"fixed_height"
>
60dp
</dimen>
<dimen
name=
"fixed_height_top_padding_inactive"
>
2dp
</dimen>
<!-- 8(Top Padding) - 12/2(extra padding due to badges) = 2 -->
<dimen
name=
"fixed_height_top_padding_active"
>
0dp
</dimen>
<!-- 6(Top Padding) - 12/2(extra padding due to badges) = 0 -->
<dimen
name=
"fixed_height_bottom_padding"
>
2dp
</dimen>
<dimen
name=
"fixed_label_active"
>
12sp
</dimen>
<!--底部文字被选中时的尺寸-->
<dimen
name=
"fixed_label_inactive"
>
10sp
</dimen>
<!--底部文字未被选中时的尺寸-->
<item
name=
"fixed_label_active_to_inactive_ratio"
format=
"float"
type=
"dimen"
>
0.857
</item>
<dimen
name=
"fixed_icon_grid"
>
40dp
</dimen>
<!--底部图标尺寸-->
<dimen
name=
"fixed_icon_badge_grid_height"
>
48dp
</dimen>
<!-- this adds 6 dp extra to top and bottom icon -->
<dimen
name=
"fixed_icon_badge_grid_width"
>
48dp
</dimen>
<!-- this adds 6 dp extra to top and bottom icon -->
<dimen
name=
"shifting_min_width_active"
>
96dp
</dimen>
<dimen
name=
"shifting_max_width_active"
>
168dp
</dimen>
<dimen
name=
"shifting_min_width_inactive"
>
64dp
</dimen>
<dimen
name=
"shifting_max_width_inactive"
>
96dp
</dimen>
<dimen
name=
"shifting_width_custom_padding"
>
6dp
</dimen>
<dimen
name=
"shifting_height"
>
60dp
</dimen>
<dimen
name=
"shifting_height_bottom_padding_inactive"
>
16dp
</dimen>
<!-- not used because in inactive state text-view will be hidden and for icon top padding would be enough -->
<dimen
name=
"shifting_height_bottom_padding_active"
>
10dp
</dimen>
<dimen
name=
"shifting_height_top_padding_active"
>
0dp
</dimen>
<!-- 6(Top padding) - 12/2(extra padding due to badges) = 0 -->
<dimen
name=
"shifting_height_top_padding_inactive"
>
5dp
</dimen>
<!-- 56(total) - 24(icon) - 16(bottom padding inactive) = 16 ||| 16 - 12/2(extra padding due to badges) = 10-->
<dimen
name=
"shifting_label"
>
14sp
</dimen>
<dimen
name=
"shifting_icon_grid"
>
24dp
</dimen>
<dimen
name=
"shifting_icon_badge_grid_height"
>
36dp
</dimen>
<dimen
name=
"shifting_icon_badge_grid_width"
>
48dp
</dimen>
<dimen
name=
"bottom_navigation_elevation"
>
8dp
</dimen>
<dimen
name=
"bottom_navigation_height"
>
60dp
</dimen>
<dimen
name=
"bottom_navigation_padded_height"
>
68dp
</dimen>
<dimen
name=
"bottom_navigation_top_margin_correction"
>
-8dp
</dimen>
<!-- 64 - 56 = 8 -->
<dimen
name=
"badge_text_size"
>
12sp
</dimen>
<!-- 10 -->
<dimen
name=
"badge_corner_radius"
>
13dp
</dimen>
<!-- 15 -->
<dimen
name=
"badge_width_padding"
>
4dp
</dimen>
<!-- 4 -->
<dimen
name=
"badge_height_padding"
>
1dp
</dimen>
<!-- 1 -->
<dimen
name=
"badge_top_margin"
>
2dp
</dimen>
<!-- 2 -->
</resources>
mobile/src/main/res/values/strings.xml
View file @
eae0c5eb
...
...
@@ -106,7 +106,7 @@
<string
name=
"server_is_exist"
>
the server is exist
</string>
<string
name=
"server_info_error"
>
server info is bad.
</string>
<string
name=
"card_search"
>
Card Search
</string>
<string
name=
"deck_manager"
>
Deck
Manager
</string>
<string
name=
"deck_manager"
>
Deck
</string>
<string
name=
"category_manager"
>
Categorized Deck Select
</string>
<string
name=
"search"
>
Search
</string>
<string
name=
"search_open"
>
Select
</string>
...
...
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