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
6612220b
Commit
6612220b
authored
Jun 11, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
端末モデルFZ-L1の対応
parent
37120e0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVActivity.java
+4
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationListHelper.java
+14
-6
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVActivity.java
View file @
6612220b
...
@@ -22,6 +22,7 @@ import android.graphics.Color;
...
@@ -22,6 +22,7 @@ import android.graphics.Color;
import
android.graphics.PixelFormat
;
import
android.graphics.PixelFormat
;
import
android.graphics.drawable.Drawable
;
import
android.graphics.drawable.Drawable
;
import
android.net.Uri
;
import
android.net.Uri
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.os.Handler
;
import
android.os.Handler
;
import
android.provider.MediaStore
;
import
android.provider.MediaStore
;
...
@@ -715,6 +716,9 @@ public abstract class ABVActivity extends Activity {
...
@@ -715,6 +716,9 @@ public abstract class ABVActivity extends Activity {
* @return true 携帯端末
* @return true 携帯端末
*/
*/
public
boolean
isNormalSize
()
{
public
boolean
isNormalSize
()
{
if
(
Build
.
MODEL
.
equals
(
"FZ-L1"
))
{
return
false
;
}
return
(
getResources
().
getConfiguration
().
screenLayout
&
Configuration
.
SCREENLAYOUT_SIZE_MASK
)
==
Configuration
.
SCREENLAYOUT_SIZE_NORMAL
;
return
(
getResources
().
getConfiguration
().
screenLayout
&
Configuration
.
SCREENLAYOUT_SIZE_MASK
)
==
Configuration
.
SCREENLAYOUT_SIZE_NORMAL
;
}
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationListHelper.java
View file @
6612220b
package
jp
.
agentec
.
abook
.
abv
.
ui
.
home
.
helper
;
package
jp
.
agentec
.
abook
.
abv
.
ui
.
home
.
helper
;
import
android.os.Build
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.widget.AdapterView
;
import
android.widget.AdapterView
;
...
@@ -125,13 +126,20 @@ public class OperationListHelper {
...
@@ -125,13 +126,20 @@ public class OperationListHelper {
// スマートフォンの場合、1行当たりのパンネル数
// スマートフォンの場合、1行当たりのパンネル数
child
.
setNumColumns
(
NORMAL_SIZE_COLUMN
);
child
.
setNumColumns
(
NORMAL_SIZE_COLUMN
);
}
else
{
}
else
{
// タブレットの場合、1行当たりのパンネル数
if
(
Build
.
MODEL
.
equals
(
"FZ-L1"
))
{
if
(
mAppActivity
.
isOrientationPortrait
())
{
if
(
mAppActivity
.
isOrientationPortrait
())
{
// 縦
// 縦: 1 横: 2
child
.
setNumColumns
(
LARGE_ORIENTATION_PORTRAIT_SIZE_COLUMN
);
child
.
setNumColumns
(
mAppActivity
.
isOrientationPortrait
()
?
1
:
2
);
}
}
else
{
}
else
{
// 横
// タブレットの場合、1行当たりのパンネル数
child
.
setNumColumns
(
LARGE_ORIENTATION_LANDSCAPE_SIZE_COLUMN
);
if
(
mAppActivity
.
isOrientationPortrait
())
{
// 縦
child
.
setNumColumns
(
LARGE_ORIENTATION_PORTRAIT_SIZE_COLUMN
);
}
else
{
// 横
child
.
setNumColumns
(
LARGE_ORIENTATION_LANDSCAPE_SIZE_COLUMN
);
}
}
}
}
}
...
...
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