Commit 6612220b by Lee Jaebin

端末モデルFZ-L1の対応

parent 37120e0a
......@@ -22,6 +22,7 @@ import android.graphics.Color;
import android.graphics.PixelFormat;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.provider.MediaStore;
......@@ -715,6 +716,9 @@ public abstract class ABVActivity extends Activity {
* @return true 携帯端末
*/
public boolean isNormalSize() {
if (Build.MODEL.equals("FZ-L1")) {
return false;
}
return (getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL;
}
......
package jp.agentec.abook.abv.ui.home.helper;
import android.os.Build;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
......@@ -125,13 +126,20 @@ public class OperationListHelper {
// スマートフォンの場合、1行当たりのパンネル数
child.setNumColumns(NORMAL_SIZE_COLUMN);
} else {
// タブレットの場合、1行当たりのパンネル数
if (mAppActivity.isOrientationPortrait()) {
// 縦
child.setNumColumns(LARGE_ORIENTATION_PORTRAIT_SIZE_COLUMN);
if (Build.MODEL.equals("FZ-L1")) {
if (mAppActivity.isOrientationPortrait()) {
// 縦: 1 横: 2
child.setNumColumns(mAppActivity.isOrientationPortrait() ? 1 : 2);
}
} else {
// 横
child.setNumColumns(LARGE_ORIENTATION_LANDSCAPE_SIZE_COLUMN);
// タブレットの場合、1行当たりのパンネル数
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