Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - DP scaling issues

DP scaling issues

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

DP scaling issues

Postby JoshKraker » Mon Jan 18, 2010 5:49 am

I thought using DP in my dimensions would make the UI fit on different screen sizes but I'm having issues. On my Moto Droid, it takes up the full width as I want it to, but on the 320x480 emulator my last box (v1_0) is cut off. Anyone know what I'm doing wrong; how to get them to appear the same on both devices?

Moto Droid, API v2.0.1:
Image


320x480 Emulator, API v1.5:
Image



XML:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
     <View android:id="@+id/v0_0"
        android:layout_width="40dp"
        android:layout_height="100dp"
        android:layout_x="10dp"
        android:layout_y="20dp"
        android:background="@drawable/border_pocket"
    />
    <TextView android:id="@+id/lbl0_0"
        android:layout_width="40dp"
        android:layout_height="100dp"
        android:layout_x="10dp"
        android:layout_y="20dp"
        android:gravity="center"
        android:text=""
    />
     <View android:id="@+id/v0_1"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="80dp"
        android:layout_y="80dp"
        android:background="@drawable/border_pocket"
        android:clickable="true"
    />
    <TextView android:id="@+id/lbl0_1"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="80dp"
        android:layout_y="80dp"
        android:gravity="center"
        android:text=""
    />
    <View android:id="@+id/v0_2"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="150dp"
        android:layout_y="80dp"
        android:background="@drawable/border_pocket"
        android:clickable="true"
    />
    <TextView android:id="@+id/lbl0_2"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="150dp"
        android:layout_y="80dp"
        android:gravity="center"
        android:text=""
    />
    <View android:id="@+id/v0_3"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="220dp"
        android:layout_y="80dp"
        android:background="@drawable/border_pocket"
        android:clickable="true"
    />
    <TextView android:id="@+id/lbl0_3"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="220dp"
        android:layout_y="80dp"
        android:gravity="center"
        android:text=""
    />
    <View android:id="@+id/v0_4"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="290dp"
        android:layout_y="80dp"
        android:background="@drawable/border_pocket"
        android:clickable="true"
    />
    <TextView android:id="@+id/lbl0_4"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="290dp"
        android:layout_y="80dp"
        android:gravity="center"
        android:text=""
    />
    <View android:id="@+id/v0_5"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="360dp"
        android:layout_y="80dp"
        android:background="@drawable/border_pocket"
        android:clickable="true"
    />
    <TextView android:id="@+id/lbl0_5"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="360dp"
        android:layout_y="80dp"
        android:gravity="center"
        android:text=""
    />
    <View android:id="@+id/v0_6"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="430dp"
        android:layout_y="80dp"
        android:background="@drawable/border_pocket"
        android:clickable="true"
    />
    <TextView android:id="@+id/lbl0_6"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="430dp"
        android:layout_y="80dp"
        android:gravity="center"
        android:text=""
    />
    <View android:id="@+id/v1_6"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="80dp"
        android:layout_y="20dp"
        android:background="@drawable/border_pocket"
        android:clickable="true"
    />
    <TextView android:id="@+id/lbl1_6"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="80dp"
        android:layout_y="20dp"
        android:gravity="center"
    />
    <View android:id="@+id/v1_5"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="150dp"
        android:layout_y="20dp"
        android:background="@drawable/border_pocket"
        android:clickable="true"
    />
    <TextView android:id="@+id/lbl1_5"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="150dp"
        android:layout_y="20dp"
        android:gravity="center"
    />
    <View android:id="@+id/v1_4"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="220dp"
        android:layout_y="20dp"
        android:background="@drawable/border_pocket"
        android:clickable="true"
    />
    <TextView android:id="@+id/lbl1_4"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="220dp"
        android:layout_y="20dp"
        android:gravity="center"
    />
    <View android:id="@+id/v1_3"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="290dp"
        android:layout_y="20dp"
        android:background="@drawable/border_pocket"
        android:clickable="true"
    />
    <TextView android:id="@+id/lbl1_3"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="290dp"
        android:layout_y="20dp"
        android:gravity="center"
        android:text=""
    />
    <View android:id="@+id/v1_2"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="360dp"
        android:layout_y="20dp"
        android:background="@drawable/border_pocket"
        android:clickable="true"
    />
    <TextView android:id="@+id/lbl1_2"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="360dp"
        android:layout_y="20dp"
        android:gravity="center"
        android:text=""
    />
    <View android:id="@+id/v1_1"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="430dp"
        android:layout_y="20dp"
        android:background="@drawable/border_pocket"
        android:clickable="true"
    />
    <TextView android:id="@+id/lbl1_1"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="430dp"
        android:layout_y="20dp"
        android:gravity="center"
        android:text=""
    />
     <View android:id="@+id/v1_0"
        android:layout_width="40dp"
        android:layout_height="100dp"
        android:layout_x="500dp"
        android:layout_y="20dp"
        android:background="@drawable/border_pocket"
    />
    <TextView android:id="@+id/lbl1_0"
        android:layout_width="40dp"
        android:layout_height="100dp"
        android:layout_x="500dp"
        android:layout_y="20dp"
        android:gravity="center"
        android:text=""
    />
    <TextView android:id="@+id/lblPlayerUp"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_x="20dp"
        android:layout_y="140dp"
        android:gravity="center"
        android:text="P0"
    />
</AbsoluteLayout>
JoshKraker
Freshman
Freshman
 
Posts: 3
Joined: Mon Dec 21, 2009 1:05 am

Top

Postby JoshKraker » Wed Jan 20, 2010 2:33 am

I found a solution to my issue, its posted here in case someone encounters a similar problem

http://androidforums.com/android-develo ... post278458
JoshKraker
Freshman
Freshman
 
Posts: 3
Joined: Mon Dec 21, 2009 1:05 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests