[android-developers] Re: RatingBar size issues on high-density screens (Droid, Nexus One)
I had trouble with this too. The solution is to use support-screens to enable anyDensity=true. Simply setting targetSdkVersion to something = 4 also works, since this makes anyDensity=true the default. I would have assumed that the SDK that you build against automatically is considered the target, but apparently, this is not so. I've been building against SDK level 5, and without explicitly setting targetSdkVersion had the exact problem as you. Michael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: RatingBar size issues on high-density screens (Droid, Nexus One)
SOLVED I had been targeting all platforms 3 - 7 using the min and max adk target. Turns out that including 3 as the min would make wacky stars. Bump it up to 4 and stars look fine. Sooo now I'll have to fork a version for 1.5 users. On Jan 21, 4:19 pm, Smelly Eddie ollit...@gmail.com wrote: Apparently Nexus is actuall an medium density screen. So are G1s... I would like to avoid specifying every possible resoltion. Is there an easier way to distinguish whatever difference is causing this usse? On Jan 21, 3:21 pm, Smelly Eddie ollit...@gmail.com wrote: Surely someone has an idea. I have continued to search the SDK reference and resources but I can't even ind an allusion to the layout/ formatting issues with high-density screens. On Jan 20, 6:32 pm, Smelly Eddie ollit...@gmail.com wrote: Hello Group - I am hoping someone that has formatted rating bars on a Droid, or Nexus One can help me. I had a few users with Droid s report oddities with rating bars in my application. Everything looked fine on my G1 but when I recently upgraded to a Nexus One ( for $49 !! ) and I see the issue they are talking about. You only see the top half of 3 stars. When it should be a full 5 star bank. The user must rotate for a landscape layout to see all 5. (image)http://images.webbmaster.org/device.png My layout is pretty standard, this is a dialog (pastebin)http://pastebin.org/79473; -- ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/active_rating_layout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical RatingBar android:id=@+id/ActiveRatingBar android:layout_width=wrap_content android:layout_height=wrap_content android:layout_centerInParent=true/ Button android:background=@drawable/no_interest_drk android:paddingLeft=24px android:layout_below=@id/ActiveRatingBar android:layout_centerHorizontal=true android:layout_marginTop=45dp android:layout_marginBottom=50dp android:paddingRight=5dp android:text=@string/no_thanks android:id=@+id/no_thanks android:layout_width=wrap_content android:layout_height=wrap_content/Button /RelativeLayout The Market rating bar fits the screen just fine. - I am just not sure how they are doing it... Perhaps a custom layout for those type of screens - but what do i set differently? Do I need to override the measure function, or specify something differently for Droid and Nexus type screens? Regards! Eddie -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: RatingBar size issues on high-density screens (Droid, Nexus One)
Surely someone has an idea. I have continued to search the SDK reference and resources but I can't even ind an allusion to the layout/ formatting issues with high-density screens. On Jan 20, 6:32 pm, Smelly Eddie ollit...@gmail.com wrote: Hello Group - I am hoping someone that has formatted rating bars on a Droid, or Nexus One can help me. I had a few users with Droid s report oddities with rating bars in my application. Everything looked fine on my G1 but when I recently upgraded to a Nexus One ( for $49 !! ) and I see the issue they are talking about. You only see the top half of 3 stars. When it should be a full 5 star bank. The user must rotate for a landscape layout to see all 5. (image)http://images.webbmaster.org/device.png My layout is pretty standard, this is a dialog (pastebin)http://pastebin.org/79473; -- ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/active_rating_layout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical RatingBar android:id=@+id/ActiveRatingBar android:layout_width=wrap_content android:layout_height=wrap_content android:layout_centerInParent=true/ Button android:background=@drawable/no_interest_drk android:paddingLeft=24px android:layout_below=@id/ActiveRatingBar android:layout_centerHorizontal=true android:layout_marginTop=45dp android:layout_marginBottom=50dp android:paddingRight=5dp android:text=@string/no_thanks android:id=@+id/no_thanks android:layout_width=wrap_content android:layout_height=wrap_content/Button /RelativeLayout The Market rating bar fits the screen just fine. - I am just not sure how they are doing it... Perhaps a custom layout for those type of screens - but what do i set differently? Do I need to override the measure function, or specify something differently for Droid and Nexus type screens? Regards! Eddie -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: RatingBar size issues on high-density screens (Droid, Nexus One)
Apparently Nexus is actuall an medium density screen. So are G1s... I would like to avoid specifying every possible resoltion. Is there an easier way to distinguish whatever difference is causing this usse? On Jan 21, 3:21 pm, Smelly Eddie ollit...@gmail.com wrote: Surely someone has an idea. I have continued to search the SDK reference and resources but I can't even ind an allusion to the layout/ formatting issues with high-density screens. On Jan 20, 6:32 pm, Smelly Eddie ollit...@gmail.com wrote: Hello Group - I am hoping someone that has formatted rating bars on a Droid, or Nexus One can help me. I had a few users with Droid s report oddities with rating bars in my application. Everything looked fine on my G1 but when I recently upgraded to a Nexus One ( for $49 !! ) and I see the issue they are talking about. You only see the top half of 3 stars. When it should be a full 5 star bank. The user must rotate for a landscape layout to see all 5. (image)http://images.webbmaster.org/device.png My layout is pretty standard, this is a dialog (pastebin)http://pastebin.org/79473; -- ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/active_rating_layout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical RatingBar android:id=@+id/ActiveRatingBar android:layout_width=wrap_content android:layout_height=wrap_content android:layout_centerInParent=true/ Button android:background=@drawable/no_interest_drk android:paddingLeft=24px android:layout_below=@id/ActiveRatingBar android:layout_centerHorizontal=true android:layout_marginTop=45dp android:layout_marginBottom=50dp android:paddingRight=5dp android:text=@string/no_thanks android:id=@+id/no_thanks android:layout_width=wrap_content android:layout_height=wrap_content/Button /RelativeLayout The Market rating bar fits the screen just fine. - I am just not sure how they are doing it... Perhaps a custom layout for those type of screens - but what do i set differently? Do I need to override the measure function, or specify something differently for Droid and Nexus type screens? Regards! Eddie -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en