确定要使用的dp(Figuring out what dp to use)
我在1440 x 2560框架中为我的应用程序设计了几个模拟ups。 但是,当使用xml时,我需要指定dp来制作每个元素。 我如何计算这个大小?
例如,我有一个1224 x 220的按钮,但对于高度使用“wrap_content”太大了。 我如何计算我在dp中需要的高度?
I designed a few mock ups for my app in 1440 x 2560 frame. When using xml, however, I need to specify the dp to make each element. How can I calculate this size?
For example, I have a button that is 1224 x 220 but it is too big to use "wrap_content" for height. How can I calculate the height I need in dp?
原文:https://stackoverflow.com/questions/41756232
最满意答案
使用WebDeploy参数化手动为单独的配置文件创建参数。
在以下链接中跳至“步骤3 - 创建参数文件”:
http://www.iis.net/learn/publish/using-web-deploy/web-deploy-parameterization
这可能也有帮助:
http://www.dotnetcatch.com/2014/09/08/parameterizationpreview-visual-studio-extension/
Use WebDeploy Parameterization to manually create parameters for the separate config file.
Skip down to "Step 3 - Create a parameter file" in the following link:
http://www.iis.net/learn/publish/using-web-deploy/web-deploy-parameterization
This may also be helpful:
http://www.dotnetcatch.com/2014/09/08/parameterizationpreview-visual-studio-extension/
相关问答
更多-
setparameters文件只控制包中定义的参数的值。 一个包可能比这更多。 Web部署具有提供者的概念,并且任何给定的包可以具有一个或多个提供者。 如果要确保软件包不更改服务器端设置,您可以采用的最佳方法是使用API,但通过Web管理服务部署软件包。 这将为您带来两个好处: 您可以控制允许的提供商。 您可以添加用户并为其授予限制权限以部署到其网站或其文件夹等。 另一种方法是: 在包中手动查看archive.xml并查找包中的提供程序。 只要您没有看到任何可能导致服务器设置更改的提供程序,例如apphos ...
-
EntityFramework 7,迁移和ConnectionString(EntityFramework 7, migrations and ConnectionString)[2023-05-13]
有三种方法可以应用迁移。 以编程方式(过时:请参阅下面的更新) context.Database.ApplyMigrations() 从命令行。 这真正意味着管理本地数据库的开发人员,而不是远程服务器。 如您所述,针对Azure运行需要您的本地项目包含Azure的连接字符串。 生成并手动运行脚本。 $ dnx ef migrations script (要么) PM> Script-Migration 这些命令的参数(以及确切的命令)尚未100%设置。 没有关于迁移的官方文档。 与此同时, 此设计 ... -
此问题与此问题中提出的问题有关 。 因为我将此解决方案从Visual Studio 2010迁移到Visual Studio 2012,所有我的Web.config文件仍然将其作为其根节点:
这会导致Visual Studio 2012 Web.config使用的xpath转换为阻塞并导致错误: No element in the source docum ... -
你已经在你的问题中得到了答案,如果你的连接字符串在外部文件中定义我猜测该文件的内容将如下所示:使用WebDeploy参数化手动为单独的配置文件创建参数。 在以下链接中跳至“步骤3 - 创建参数文件”: http://www.iis.net/learn/publish/using-web-deploy/web-deploy-parameterization 这可能也有帮助: http://www.dotnetcatch.com/2014/09/08/parameterizationpreview-visual-studio-extension/ Use WebDeploy Parameterizati ...找到了! 在尝试了几乎所有可用的msbuild,msdeploy,项目设置,IIS等选项后,我注意到msdeploy无法在站点的应用程序池下创建我的应用程序,因为显然它的身份没有足够的权限来执行此操作。 诀窍是将站点池的身份更改为本地系统。 Found it! After experimenting with almost all of the available options of msbuild, msdeploy, project settings, IIS etc, I've noticed th ...
MS Web Deploy上的401(401 on MS Web Deploy)[2023-10-22]
这听起来好像用户没有对站点和/或应用程序的正确IIS管理权限,或者Windows Management Service运行的用户帐户(本地服务)没有文件系统权限到您所在的文件夹部署到。 以下是设置指南的一些链接。 我确保配置实际上是正确的,并且端口8172在防火墙上是打开的(用于管理服务)。 良好的指南涵盖了大部分设置 如何设置项目以使用MSBuild获取更详细的错误消息 Scott Gu关于在Visual Studio中设置Web Deploy的帖子 That sounds like either the ...集成身份验证/ Windows身份验证是一个不错的选择 没有密码,至少没有密码需要存储在web.config中。 事实上,除非管理员明确地将它从我身边带走,否则这是我更喜欢的选择。 就个人而言,对于任何因机器而异的东西(不仅仅是连接字符串),我使用这种技术从web.config输入外部引用: http : //www.devx.com/vb2themax/Tip/18880 当我将代码扔到生产服务器管理员的篱笆上时,他获得了一个新的web.config,但没有获得外部文件 - 他使用的是他之前的文件。 In ...MS Web部署+ Web部署远程服务,它是如何安全的(MS Web Deploy + Web Deploy Remote Service, How is it secured)[2021-08-20]
它使用Windows身份验证。 请参阅以下知识库文章,了解如何保护服务: http : //technet.microsoft.com/en-us/library/dd569093(WS.10).aspx It uses windows authentication. See the following KB article to see how to secure the service: http://technet.microsoft.com/en-us/library/dd569093(WS.10) ...好吧,答案是荒谬的。 事实证明,如果您使用解决方案文件夹来整理您的Sharepoint应用程序,那么VSeWSS将丢失Package,Deploy等命令。 坏微软! 在你的床上! Ok, the answer to this is ridiculous. It turns out that if you use Solution Folders to tidy up your Sharepoint application, then VSeWSS loses the Package, Deploy, etc ...相关文章
更多- LeetCode:Word Break(DP)
- 为什么要使用Spark?
- 魔兽世界你一定要知道的
- hibernate id 生成策略及主要使用方法
- Hadoop 中的采样器-附主要使用源码
- 为什么要使用关联操作?表的关联对查询、更新操作有什么好处?
- 华章7-8月份新书简介
- 亲们,答应我一定要幸福哦。米聊、微信、陌陌用户体验报告!
- Hadoop集群单独启动死亡节点/Hadoop重启不起来
- Hadoop删除节点(Decommissioning Nodes)
最新问答
更多- 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
- 如何通过引用返回对象?(How is returning an object by reference possible?)
- 矩阵如何存储在内存中?(How are matrices stored in memory?)
- 每个请求的Java新会话?(Java New Session For Each Request?)
- css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
- 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
- xcode语法颜色编码解释?(xcode syntax color coding explained?)
- 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
- 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
- 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
- 西安哪有PLC可控制编程的培训
- 在Entity Framework中选择基类(Select base class in Entity Framework)
- 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
- 电脑二级VF有什么用
- Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
- 金华英语角.
- 手机软件如何制作
- 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
- 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
- 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
- Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
- 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
- python的访问器方法有哪些
- DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
- 在Ruby中对组合进行排序(Sorting a combination in Ruby)
- 网站开发的流程?
- 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
- 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
- 透明度错误IE11(Transparency bug IE11)
- linux的基本操作命令。。。