Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
0ec230c3
Commit
0ec230c3
authored
May 29, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
スマートフォン用にレイアウト調整
parent
7eb4d96d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
ABVJE_UI_Android/res/layout/dlg_agreement_to_terms.xml
+2
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVNoAuthenticatedActivity.java
+1
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/helper/AgreementToTermsHelper.java
+4
-2
No files found.
ABVJE_UI_Android/res/layout/dlg_agreement_to_terms.xml
View file @
0ec230c3
...
@@ -11,7 +11,8 @@
...
@@ -11,7 +11,8 @@
<!-- 規約 -->
<!-- 規約 -->
<ScrollView
<ScrollView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
tools:ignore=
"UselessParent"
>
tools:ignore=
"UselessParent"
>
<LinearLayout
<LinearLayout
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVNoAuthenticatedActivity.java
View file @
0ec230c3
...
@@ -476,7 +476,7 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
...
@@ -476,7 +476,7 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
doMoveToHome
();
doMoveToHome
();
}
}
};
};
AgreementToTermsHelper
.
clearVersion
(
this
);
AgreementToTermsHelper
.
clearVersion
(
this
);
// for debug
AgreementToTermsHelper
.
confirmAgreement
(
this
,
isNormalSize
(),
listener
);
AgreementToTermsHelper
.
confirmAgreement
(
this
,
isNormalSize
(),
listener
);
}
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/helper/AgreementToTermsHelper.java
View file @
0ec230c3
...
@@ -112,13 +112,15 @@ public class AgreementToTermsHelper {
...
@@ -112,13 +112,15 @@ public class AgreementToTermsHelper {
try
{
try
{
AlertDialog
dialog
=
makeDialog
(
activity
,
termsJSON
,
isNomalSize
,
listener
);
AlertDialog
dialog
=
makeDialog
(
activity
,
termsJSON
,
isNomalSize
,
listener
);
dialog
.
show
();
dialog
.
show
();
if
(!
isNomalSize
)
{
WindowManager
.
LayoutParams
params
=
dialog
.
getWindow
().
getAttributes
();
WindowManager
.
LayoutParams
params
=
dialog
.
getWindow
().
getAttributes
();
WindowManager
wm
=
(
WindowManager
)
activity
.
getSystemService
(
Context
.
WINDOW_SERVICE
);
WindowManager
wm
=
(
WindowManager
)
activity
.
getSystemService
(
Context
.
WINDOW_SERVICE
);
Display
disp
=
wm
.
getDefaultDisplay
();
Display
disp
=
wm
.
getDefaultDisplay
();
if
(
isNomalSize
)
{
params
.
width
=
disp
.
getWidth
()
*
49
/
50
;
}
else
{
params
.
width
=
disp
.
getWidth
()
*
4
/
5
;
params
.
width
=
disp
.
getWidth
()
*
4
/
5
;
dialog
.
getWindow
().
setAttributes
(
params
);
}
}
dialog
.
getWindow
().
setAttributes
(
params
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
listener
.
onError
(
e
);
listener
.
onError
(
e
);
}
}
...
...
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