Commit 6612220b by Lee Jaebin

端末モデルFZ-L1の対応

parent 37120e0a
...@@ -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;
} }
......
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);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment