首页 \ 问答 \ 在Android棉花糖的工具栏顶部的空白栏(Blank bar at top of toolbar in Android Marshmallow)

在Android棉花糖的工具栏顶部的空白栏(Blank bar at top of toolbar in Android Marshmallow)

仅在Android MarshMallow版本的工具栏顶部有一个空白条。 所有其他Android版本都设置为正确显示。


Got an empty white bar at the top of toolbar only in Android MarshMallow Versions. All other android versions are set to display correctly.


原文:https://stackoverflow.com/questions/38455396
更新时间:2023-08-31 15:08

最满意答案

你很困惑。 首先,美国东部时区的夏令时是-4,而不是-5。 晚上9:55肯定是凌晨2:55前5小时; 下午10:55将是4个小时前。

有可能“EST”正好给你:东部标准时间而不考虑夏令时。 “EST5EDT”可能会给你你想要的时区,虽然(假设设备使用zoneinfo作为模拟器),“America / New_York”将是首选。


You are very confused. To start with, daylight savings time in the US Eastern time zone is -4, not -5. 9:55 PM certainly is 5 hours before 2:55 am; 10:55 PM would be 4 hours before.

Chances are that "EST" is giving you exactly that: Eastern Standard Time without regard for daylight savings time. "EST5EDT" might give you the time zone you are expecting, although (assuming the device uses zoneinfo as the simulator does) "America/New_York" would be preferred.

相关问答

更多
  • 您可以使用time.localtime并查看返回值中的tm_isdst标志。 >>> import time >>> time.localtime() (2010, 5, 21, 21, 48, 51, 4, 141, 0) >>> _.tm_isdst 0 使用time.localtime() ,您可以在任意时间询问同一个问题,以查看DST是否对当前时区有效(或有效)。 You can use time.localtime and look at the tm_isdst flag in the ret ...
  • 您无法在JVM中关闭夏令时。 每个时区都使用偏移量进行编码,以及是否应用夏令时(如果是,则在几个日期之间)。 您可以通过以下方式检查: TimeZone.getDefault().useDaylightTime(); TimeZone.getDefault().inDaylightTime( new Date() ); 但是,您可以使用TZUpdater工具更新JDK安装中的时区文件: http://www.oracle.com/technetwork/java/javase/downloads/tzup ...
  • 由于EST你有问题。 来自?timezone : 请注意,其中一些名称可能与您的预期不符:特别是EST是加拿大使用的时区,没有夏令时...... 使用US/Eastern或America/New_York代替EST 。 请参阅?OlsonNames()以获取更多信息。 #DST x1 = as.POSIXct("22/5/2016 23:50", format = "%d/%m/%Y %H:%M", tz = "America/New_York") x2 = as.POSIXct("22/5/2016 23 ...
  • 你很困惑。 首先,美国东部时区的夏令时是-4,而不是-5。 晚上9:55肯定是凌晨2:55前5小时; 下午10:55将是4个小时前。 有可能“EST”正好给你:东部标准时间而不考虑夏令时。 “EST5EDT”可能会给你你想要的时区,虽然(假设设备使用zoneinfo作为模拟器),“America / New_York”将是首选。 You are very confused. To start with, daylight savings time in the US Eastern time zone is ...
  • 您可以使用如下所示的NSTimeZone方法进行夏令时:请参阅NSTimeZone类参考 isDaylightSavingTimeForDate: //将告诉您此日期是否存在日光节约 daylightSavingTimeOffset //将告诉您夏令时的偏移量 使用下面的代码,它可以正确地返回日光保存和偏移 var timeZone:NSTimeZone = NSTimeZone(name:"Europe/London")! print(timeZone.daylightSavingTime) //this ...
  • NSDate对象固有地存储为GMT值。 你在这里遇到的问题是你正在使用currentCalendar(目前可能在DST中)和localTimeZone secondsFromGMT进行计算,后者根据一年中的时间进行切换。 这里最好的解决方案是使用GMT的NSCalendar而不是基于移动的时区,如果(如您所示),您希望它们始终为+0000。 或者,您可以更改为使用NSTimeZone secondsFromGMTForDate:它会在相关日期/时间考虑DST。 NSDate objects are inhe ...
  • $date = new DateTime(); $tz = $date->getTimezone(); $changes = $tz->getTransitions(strtotime("yesterday"), strtotime("+1 year")); $n = count($changes); $tnow = time(); for($i = 0; $i < $n; $i++) { if($changes[$i]["ts"] > $tnow) { echo "Upco ...
  • 这是iOS11中的一个错误。 我提交了一个雷达,它被Apple标记为“DUPLICATE OF 33629367”(从iOS11.1测试版开始仍然是一个开放的问题)。 在大多数情况下,最好停止使用localTimeZone ......这是一个线程噩梦。 事情应该如何运作: [NSTimeZone systemTimeZone]始终返回系统时区。 如果系统时区发生更改,则必须重新查询此方法(返回的NSTimeZone不会自动更新) 除非已设置defaultTimeZone,否则[NSTimeZone def ...
  • 我认为这不是一个安全的假设。 在OS X上,在我的时区和区域设置(美国英语,UTC-6)中,我可以运行以下代码: NSTimeZone *utc = [NSTimeZone timeZoneWithName:@"Etc/UTC"]; NSTimeZone *london = [NSTimeZone timeZoneWithName:@"Europe/London"]; NSLog(@"utc name = %@", [utc name]); NSLog(@"london na ...
  • 是的, TimeZoneInfo.ConvertTime尽可能地处理夏令时。 但是,请注意,如果您正在使用具有“未指定”类型的DateTime (例如,已从字符串中解析它),这可能在您的源时区中不明确 。 (例如,如果时钟从凌晨2点回到凌晨1点,那么凌晨1点30分在那天发生两次。)对于DateTime.Now应该不是问题,因为“本地”类型实际上可以是“本地的”和更早的模棱两可的时代“或”本地和后来的模糊时代“。 如果您想要更多地控制转换 - 以及拥有更多描述性类型 - 您可能需要查看我的Noda Time库 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)