diff options
author | Andy Doan <andy.doan@linaro.org> | 2012-02-14 12:13:41 -0600 |
---|---|---|
committer | Andy Doan <andy.doan@linaro.org> | 2012-02-14 12:17:57 -0600 |
commit | 4728fa6a6a5b209729acdd969bb89a3e17884c24 (patch) | |
tree | a51e01c7465d9c9c32dbf92c4c4c9311020ac2f7 | |
parent | 2a66027d4f5d76b11e7f544af6df2879ae0c284b (diff) | |
download | LinaroConnect-4728fa6a6a5b209729acdd969bb89a3e17884c24.tar.gz |
quick fix warning for pixels in layouts
layouts should use DPI rather than pixels to handle devices
with different densities. This does not address the complaints
people made about font sizes being to small. This just gets
rid of all the warning popping up in Eclipse with the new
SDK installed.
Signed-off-by: Andy Doan <andy.doan@linaro.org>
-rw-r--r-- | res/layout/connect_item.xml | 8 | ||||
-rw-r--r-- | res/layout/image_item.xml | 4 | ||||
-rw-r--r-- | res/layout/my_schedule_unconfigured.xml | 4 | ||||
-rw-r--r-- | res/layout/posting_item.xml | 16 | ||||
-rw-r--r-- | res/layout/schedule_item.xml | 8 | ||||
-rw-r--r-- | res/layout/schedule_item_activity.xml | 16 |
6 files changed, 28 insertions, 28 deletions
diff --git a/res/layout/connect_item.xml b/res/layout/connect_item.xml index c40755b..323a8d1 100644 --- a/res/layout/connect_item.xml +++ b/res/layout/connect_item.xml @@ -3,8 +3,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:paddingLeft="40px" - android:paddingRight="40px" + android:paddingLeft="40dp" + android:paddingRight="40dp" android:background="@drawable/list_selector" > @@ -15,7 +15,7 @@ android:background="@drawable/rounded" android:textColor="@color/linaro_green" android:gravity="center" - android:paddingTop="15px" - android:paddingBottom="15px" + android:paddingTop="15dp" + android:paddingBottom="15dp" /> </LinearLayout>
\ No newline at end of file diff --git a/res/layout/image_item.xml b/res/layout/image_item.xml index 4a00dc4..e19a542 100644 --- a/res/layout/image_item.xml +++ b/res/layout/image_item.xml @@ -3,8 +3,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:paddingLeft="40px" - android:paddingRight="40px"> + android:paddingLeft="40dp" + android:paddingRight="40dp"> <TextView android:id="@+id/image_item_label" android:layout_height="wrap_content" diff --git a/res/layout/my_schedule_unconfigured.xml b/res/layout/my_schedule_unconfigured.xml index 6d9ef82..0b4a90b 100644 --- a/res/layout/my_schedule_unconfigured.xml +++ b/res/layout/my_schedule_unconfigured.xml @@ -3,7 +3,7 @@ android:layout_height="fill_parent" android:orientation="vertical" android:background="@color/main_bg" - android:paddingLeft="5px" + android:paddingLeft="5dp" > <TextView @@ -70,7 +70,7 @@ android:layout_height="wrap_content" android:layout_width="fill_parent" android:background="@drawable/rounded" - android:paddingLeft="5px" + android:paddingLeft="5dp" android:textColor="@color/linaro_green" android:text="@string/my_schedule_info" /> diff --git a/res/layout/posting_item.xml b/res/layout/posting_item.xml index 557de56..3372c44 100644 --- a/res/layout/posting_item.xml +++ b/res/layout/posting_item.xml @@ -19,30 +19,30 @@ <TextView android:id="@+id/posting_author" android:layout_height="wrap_content" android:layout_width="wrap_content" - android:paddingLeft = "6px" + android:paddingLeft = "6dp" android:textColor="@color/light_text" - android:textSize="8sp"/> + android:textSize="8dp"/> <TextView android:id="@+id/posting_date" android:layout_height="wrap_content" android:layout_width="fill_parent" - android:paddingRight="5px" + android:paddingRight="5dp" android:gravity="right" android:textColor="@color/light_text" - android:textSize="8sp"/> + android:textSize="8dp"/> </LinearLayout> <TextView android:id="@+id/posting_item_title" android:layout_height="wrap_content" android:layout_width="match_parent" - android:paddingLeft = "6px" + android:paddingLeft = "6dp" android:textColor="@color/linaro_green" - android:textSize="12sp" + android:textSize="12dp" /> <TextView android:id="@+id/posting_item_summary" android:layout_height="wrap_content" android:layout_width="match_parent" - android:paddingLeft = "12px" - android:textSize="10sp" + android:paddingLeft = "12dp" + android:textSize="10dp" android:textColor="@color/light_text" /> </LinearLayout> diff --git a/res/layout/schedule_item.xml b/res/layout/schedule_item.xml index 288bb19..6f8ce25 100644 --- a/res/layout/schedule_item.xml +++ b/res/layout/schedule_item.xml @@ -14,15 +14,15 @@ <TextView android:id="@+id/schedule_summary" android:layout_height="wrap_content" android:layout_width="match_parent" - android:paddingLeft = "6px" + android:paddingLeft = "6dp" android:textColor="@color/linaro_green" - android:textSize="12sp" + android:textSize="12dp" /> <TextView android:id="@+id/schedule_time" android:layout_height="wrap_content" android:layout_width="match_parent" - android:paddingLeft = "12px" - android:textSize="10sp" + android:paddingLeft = "12dp" + android:textSize="10dp" android:textColor="@color/light_text" /> </LinearLayout> diff --git a/res/layout/schedule_item_activity.xml b/res/layout/schedule_item_activity.xml index 0e747e4..7b12508 100644 --- a/res/layout/schedule_item_activity.xml +++ b/res/layout/schedule_item_activity.xml @@ -7,7 +7,7 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@color/main_bg" - android:paddingLeft="5px" + android:paddingLeft="5dp" > <LinearLayout @@ -20,7 +20,7 @@ android:layout_height="wrap_content" android:layout_width="match_parent" android:textColor="@color/linaro_green" - android:textSize="12sp" + android:textSize="12dp" /> <LinearLayout @@ -31,27 +31,27 @@ <TextView android:id="@+id/schedule_item_room" android:layout_height="wrap_content" android:layout_width="wrap_content" - android:textSize="10sp" + android:textSize="10dp" /> <TextView android:id="@+id/schedule_item_time" android:layout_height="wrap_content" android:layout_width="match_parent" android:gravity="right" - android:textSize="10sp" + android:textSize="10dp" /> </LinearLayout> </LinearLayout> <TextView android:id="@+id/schedule_item_categories" android:layout_height="wrap_content" android:layout_width="wrap_content" - android:textSize="10sp" + android:textSize="10dp" /> <TextView android:id="@+id/schedule_item_desc" android:layout_height="wrap_content" android:layout_width="fill_parent" android:textSize="10sp" - android:paddingLeft="10px" - android:paddingRight="10px" + android:paddingLeft="10dp" + android:paddingRight="10dp" android:background="@drawable/rounded" android:textColor="@color/dark_text" /> @@ -60,7 +60,7 @@ android:layout_width="wrap_content" android:textSize="10sp" android:layout_gravity="right" - android:layout_marginTop="15px" + android:layout_marginTop="15dp" android:text="@string/schedule_item_add"/> </LinearLayout> </ScrollView>
\ No newline at end of file |