android - Preventing Pixelation of Images, indenting listViews and adding Rounded corners -


i have few issues , questions regarding ui development on android. firstly @ image:

enter image description here

firstly @ image a) image insert , repeat horizontally give zig-zag shape @ top of screen regardless of screensize , above textfield no content , background color - i'm sure can 2 colors don't match quite should though both have same hex color value (#bf0426). , secondly, can see serious pixelation on zig-zag image. how fix these 2 problems?

and @ image b) here have simple listview. do, firstly indent bit on both sides, , round corners of top , bottom item. want blue border drawn on screenshot. (your typical ios listview). how go doing this?

thanks in advance tips!

for image. out of curiosity, why wouldnt extend image include top pixels well? in other words, build repeating image such incorporates pixels trying create using empty textview. @ least take care of color missmatch, color generated same place. in terms of pixelation. repeating image, or spreading image. spreading cause seeing.

for tableview: left , right indent, can use margin or padding attributes of tableview item. there generic padding and/or margin attributes (which pad of top, bottom, left , right), or there separate padding and/or margin attributes each top, bottom, left, , right. here great link on padding versus margin may want read.

difference between view's padding , margin

example attribute (as called in xml file) bottom margin

android:layout_marginbottom setmargins(left, top, right, bottom) // setting margins programmatically 

example attribute (as called in xml file) top padding

android:paddingtop setpadding(left, top, right, bottom) // setting padding programmatically 

for custom top , bottom, should able use following tutorial

http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/

from here, should able detect item first , last item , set background property (image) background image has rounded top or rounded bottom. how on iphone. have implemented things tableviews vertical layouts own custom views have made wanting.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -