resolution

Which is better to use in CSS, percentage or pixels?

谁说胖子不能爱 提交于 2019-12-28 13:54:07
问题 I am not a CSS expert and I want to make a design that will look good in all browsers and resolutions. I noticed that some websites make their design ( width , height , margin , padding ) with percentage, not pixels, and I am doing all my design with percentage too. Does this approach have any problems? Please advise me. 回答1: You won't have any problems using this approach, both percentage and pixels work fine depending on your needs. If you need a fluid site, then percentage might be your

Adapt view for screens with lower resolution

牧云@^-^@ 提交于 2019-12-25 17:03:09
问题 I tested my app, that I developed over the past two months always on a smartphone with 5 inches. Now, I have big problem with showing all the content of my view. First, here´s my xml: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" android:background="@drawable/bg"> <TableLayout android:layout_width="match_parent" android

Java - Libgdx : Keep actor's position even screen's resolution changes

♀尐吖头ヾ 提交于 2019-12-25 08:09:13
问题 issue is next one: my game is built for 1080x1920 pixels screen but if I run it in other resolutions my actors' position is switching. Some pictures if you haven't understood: ~> original resolution ~> other resolution I looked for an answer for days in Google, Stackoverflow, forums, couldn't find the right answer for my problem, here's my code: public class PlayScreen implements Screen { private Main game; private Stage stage; Music music; Sound sound; private class MenuGame extends Actor {

full screen contentPanel ext gwt

只谈情不闲聊 提交于 2019-12-25 02:23:11
问题 I need to implement full screen ContentPanel in ext gwt. I use setSize method, but as params I can specify only resolution. public class HomePage extends ContentPanel { public HomePage() { setSize(1024,768); I want to have panel that will fill all window in each browser with different monitor resolution. So how can I use setsize method to solve this problem? Thanks! 回答1: Instead of setting the size, maybe try setting a layout that will expand. Maybe something like this (hasn't been tested):

WPF does not appear to be resolution independent

吃可爱长大的小学妹 提交于 2019-12-25 01:28:05
问题 My understanding is that one of the fundamental concepts in WPF is that it is resolution independent. That if an object takes up a 1" square at one resolution it will also take up an 1" square on a different resolution. I'm not sure if there are design considerations here, but this appears to be completely false. Whether it be a font, an image or some other visual entity, they are all physically smaller when on a higher resolution. How can I truly make this resolution independent? It appears

When Window Size Is Smaller Elements Overlap Eachother?

蹲街弑〆低调 提交于 2019-12-25 01:23:51
问题 I have designed a website and am a little bit stumped right now. If you view the website at: http://www.noxinnovations.com/portfolio/charidimos/ If you change the size of the window you will notice the Navigation overlaps the logo/header. Anyway to change this? What I want to do virtually is to make the window have a scroll bar appear if that is possible. Any ideas? Thank you :-D. 回答1: It's your width: 100%; in your #header element that's causing your strange overflow behavior. Place your

what resolution tu use for my images

柔情痞子 提交于 2019-12-24 19:01:33
问题 I'm creating an android application that will contain many imageButtons. I want to create images by photoshop, what resolution should I use so images will be displayed correctly in most devices? For exemple, for web images we use 72. 回答1: DPI or PPI it doesn't matter.. Basically u should care about it just if u want to print something. If u prepare graphic elements for Android App u should care about dimensions of PNGs in pixels(px). If u develop for more then one device, which is probably

Should I create a flash file for each screen size?

穿精又带淫゛_ 提交于 2019-12-24 17:09:04
问题 I created a swf file for one my clients using a screen size of 1024px x 768px (4:3 ratio), now my client wants to re-use the video in a bigger screen (TV) that still uses a 4:3 ratio but the screen size is considerably bigger (I do not have the exact size yet). Do I need to recreate the flash file using images that fit the new screen size, or the fact that they both use a 4:3 aspect ratio means that the image quality will not suffer? 回答1: It depends on what your SWF contains. If it's a video,

Should I create a flash file for each screen size?

拟墨画扇 提交于 2019-12-24 17:09:01
问题 I created a swf file for one my clients using a screen size of 1024px x 768px (4:3 ratio), now my client wants to re-use the video in a bigger screen (TV) that still uses a 4:3 ratio but the screen size is considerably bigger (I do not have the exact size yet). Do I need to recreate the flash file using images that fit the new screen size, or the fact that they both use a 4:3 aspect ratio means that the image quality will not suffer? 回答1: It depends on what your SWF contains. If it's a video,

How to get UIImage size in inches or UIImage resolution?

て烟熏妆下的殇ゞ 提交于 2019-12-24 14:36:00
问题 I want to compress my image and upload to server. This compression should be depended on the image size. Or it would help if we have any API in iPhone to get image resolution so that based on this resolution, i can set the compression rate. Thanks Jithen 回答1: There is nothing in iOS SDK to give you image size in inches from given pixel, one option is to determine on which device your app is running and then calculate size in inches for you image object. 回答2: You can get the size in points by