Leave some space for nav bar in KK and above

This commit is contained in:
seven332 committed 2015-03-01 14:58:10 +08:00
1 parent 4fccbefdd2
commit e1b463314d
14 files changed
+166 -81

No files matched your search

@@ -19,6 +19,8 @@ import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
import com.hippo.ehviewer.R;
public class UiUtils {
private static float sDensity;
@@ -87,4 +89,15 @@ public class UiUtils {
hsv[2] *= 0.9f;
return Color.HSVToColor(hsv);
}
/**
* Is this device is table.
* For sw600dp is true
*
* @param context the context
* @return true for table
*/
public static boolean isTable(Context context) {
return context.getResources().getBoolean(R.bool.is_table);
}
}