Photoshop design from px to dp
I've got a final app design made i Photoshop where everything is measured in PX. Now I realize that Android apps are using DP for font-sizes and other things.
Is there any way I can convert PX to DP ?
I want to design a url router based on servlets. Router will typically takes a web request to proper controller and action. Web urls will be of controller/action pattern. What I tried: Pattern: /c
Can I find out size in dp or px of string which I need to show on screen ? What I need to do is to have one TextView with o sign and above centered another String with full name. I thought to use Fr
I'm trying to do a Gaussian blur on a UIImage that replicates my photoshop mockup. Desired Behavior: In Photoshop, when I run a Gaussian blur filter, the image layer gets larger as a result of the bl
I made a webpage with photoshop, sliced it & saved for web. It looks fine in Chrome, Firefox, Opera & Safari, but when you view it in IE 10 it goes all weird... Does anyone know of a fix for t
From my decimalForm method below, i want to convert double value 7777.54 to 7 777,54 but i am getting 7 777 54. what have missed ? result should be 7 777,54 public static String decimalForm(double val
Anyone know of a script (php, python, perl, bash, whatever) that will convert a stylesheet from px to em? Like, it would take input of the filename and base font-size (default 16) and convert all px i
For Android, people recommend using dp (density independent) measurements for UI elements, and there are conventions that exist such as using 48dp for a button height, etc. I'm working on a CSS/HTML/J
Why did I have this Alert message in my xml layouts in android the message is Avoid using px as unite, use dp instead
This DP measure is pretty confusing, I'm trying to learn when should I use wrap_content and when should I set the height, when using ImageView. My current issue is that I'm using wrap content on 3 ima
I have following drawable folder inside my app. drawable drawable-mdpi drawable-hdpi drawable-sw360dp-hdpi drawable-sw480dp-hdpi drawable-xhdpi drawable-xxhdpi Now S4 is xxhdpi device but it is picki
This question already has an answer here: Does CSS support text anti-aliasing such as “crisp, sharp etc” yet? 4 answers There are some text effects in Photoshop. That apply different effects li
Say I'm developping a different layout for devices with screen size equal to or greater than 600dp. I want to use the post android 3.2 resource qualifiers. I created a folder name layout-sw600dp and p
I am just starting with coding some JSP, which I find isn't all that different from asp.net or any other real web-language / web-gateway. I found this question; Structure JSP/Java code where logic i
Android View. setPadding(int left, int top, int right, int bottom) only accepts values in px but I want to set padding in dp. Is there any way around it?
Simple question: Why this 2 fonts looks different at photoshop and at website. At this picture - this first text is from html code, second is an image from photoshop. The same font, the same size - 3
A 24 bit .png file with transparency, as those that can be generated with Photoshop, has really 24 bits distributed across each color plus the alpha ? or the 24 bit refer only to the colors and ignore
i have a question about web designing. there are some ways for design. CSS or Photoshop. cSS is clear, my question is not about CSS, but about Photoshop design. For example this After design in photos
myprogram.cmd is in PATH; myprogram.cmd uses %~dp0 to determine the folder it is in; I have included @echo %~dp0 into myprogram.cmd for debugging; When I call myprogram.cmd from anywhere, it works per
I'm getting lost in some unfortunate ambiguity regarding http://developer.android.com/guide/practices/screens_support.html, and I can't find a stackoverflow answer that clarifies the issue. I am well
I am developing a Photoshop CS4 script and want to set some of the File Info properties on the open document from within the script. In other words, I want to do the equivalent of choosing File ->
I'm trying to write a tool for converting photoshop gradients to css gradients using sass/compass. From what I've read the .grd is a proprietary format for which documentation is not available. Would
i was about to create a html5 canvas the size of 500px*500px: <canvas id=stone width=500px height=500px></canvas> and stroke a line from (70px, 70px) to (140px, 140px) on it: var ca
I am trying to controll Bluetooth connection to a device using the A2DP profile. In native Java Development for Android, devs make use of BluetoothA2dp class to make a connection. There is a class cal
I have a bunch of layers in Photoshop with a sprite on each. How do I turn them into a spritesheet?
I was reading dp, dip, px, sp measurements, but I still have some questions about dp/dpi vs ppi vs px vs inch. I am not able to compare them... is an inch the largest? They say 160 dpi means 160 pixe
I'm looking for a tool, library of framework (preferrably for Java) that allows me to render raster graphics in a layered fashion. Basically, a programmable Photoshop-like API with support for layers,
Has anyone used the photo filter in Photoshop? Edit > Adjustments > Photo Filter... It produces a really nice image tint that I've been unable to reproduce with blending modes. Has anyone got an
there's a great page with some c code for the blend modes in photoshop. What I want is to use some of these modes in my XNA application. In particular, overlay, hue and saturation. Do you think it is
I have some large icons, which are 9patch, and have to create a smaller set for a smaller screen. If I use something like photoshop to do the resize, are they still 9patch?
Actually am able to find the screen width using getWindowManager().getDefaultDisplay(). Now i want to know how can i get value in dp from the value that i got which is in pixel. For example suppose i
Can somebody please explain how Photoshop blends two images together so that I may reproduce the same effects in my application.
I'm trying to put together a proof-of-concept for a commercial project that takes an image file-upload from a web page and outputs an image transformed with various Photoshop filters and a 3rd party c
I am working on an application based on Galaxy S at the moment. I know that Galaxy S is 480 px wide and 800 px tall, but how much is that in DP? Lets say if I want to have two Layout side by side, I'l
I want to get started doing some scripts with Photoshop and I wonder if there's an editor out there that either already has Photoshop's objects or allows to load Photoshop's DOM for intellisense. Any
I have a usercontrol wrapper around a DataGridView in a WindowsFormsHost. The wrapper has a DP with a callback, but the callback is static so it cannot simply execute code on the windowsforms hosted c
I have 500 icon images in Photoshop that have varying white space around each of the objects. I was wondering if there's any way to run an action through photoshop that'll crop each image so that it r
I know you can make lets say a header 50 pixels from the left. But can you make something 50 pixels from ANOTHER heading? Not just from the margin? Like heading 2 needs to be 50 pixels from heading 1.
This is bugging the heck out of me - I can't figure out how to override Bootstrap's styling to remove the 1px gap between the bottom of the menu button and the bottom of the navbar. Here's my fiddle:
I am new to photoshop scripting. I want to load an image image (from my hard disk) into the active document as a new layer with positioning. How can this be done? Can somebody please share the code? T
What design pattern should you utilize when you gather information from different sources into a general model of your own? An example could be polling videos from different video-streaming services i
So we know from many other posts that we should use sp rather than dp for text in Android, and we know the reason for this is to respect a 'user's preferences'. But precisely what are these preference
I would like from an interface design in photoshop. To integrate these elements Design on components java buttons, slider, etc ... Here's a photoshop interface example, I would like in components jav
are those two code do the same in terms of matematics? do they produce the same result? this (java): pixel=10; margin=px * getResources.getDisplayMetrics().density; layout_param.topMargin=margin; and
What's the best way to design for iPhone 4 using either Photoshop or Fireworks? Essentially looking for dimensions and DPI to start with. Thanks!
The Galaxy Nexus phone layout is set in layout-sw360dp folder. And the files are read from there. The rest read the layout from layout-xhdpi. But when it comes to, say, phone with 800x400 resolution,
I'm very new to web-design, so this might be a stupid question, but bear with me please. I want to create a div that is centred horizontally and has a height that always extends to 175px from the bott
how to implement image rotation and image scaling on android imageview means suppose we have a image we want to image large and small by stretch from image corner like photoshop how to implement this
I have an HTML generated from a web service which I cannot control. The HTML has font sizes in px and pt. My requirement is changing all font-sizes to em. This is what I tried : I tried to access all
I am messing around and created a neat web layout in photoshop. I then sliced it up and exported all of the Images and HTML to dreamweaver. However, it turns my layout into tables. This is a problem b