Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 0    Views: 55

kingelessar
Lost but trying
Profile
Posts: 155
Reg: Mar 10, 2014
UK
6,500
05/03/14 02:30 PM (10 years ago)

menu image advanced on Android / background scaling generally

Very pleased that this makes the row description work well in Android!! What do I do to stop the header image from getting distorted though? Is there somewhere I can tell it to scale only proportionally? At the moment I'm ok on phone-size screens but not on tablets. Edit: And is there a way of making the row title align with the center of the row icon? At the moment it shows in line with the top edge of the row icon. I just by chance found that you can tell the background image to scale in different ways in BT_viewUtilities. I saw this link posted by Susan previously. <a href="https://developer.android.com/reference/android/widget/ImageView.ScaleType.html" target="_blank" rel="nofollow">https://developer.android.com/reference/android/widget/ImageView.ScaleType.html</a> Something I feel is very useful for android is to use the CENTER_CROP type for background images, which none of the BT control panel settings seems to use but which can be changed in the code. Being a non-coder, I don't understand what fit_center is meant to do but the result in may case is better with center crop.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.