Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
I have ImageView and two EditText in my XML layout. In order to set these view, information is being fetched from server. based on the attributes of the information I want to change the look of layout. if image resolution is small I want it to display like |------- |--------------| |Image |__Text___| | view | Text | |____|________| if image is bigger I want to change same layout like __________________ | | | image view | |_________________ | |_____Text_________| |_____Text_________| . . . There can be some more combination using1 image and2 textView Currently I m using ListView to display the result and want to display result as dynamic template. I mean to say in list view each row may be having different layout which is not defined in res/XML. In res/XML where will be only xml file represent the list view row but I want to change this at run time in adapter, based on the size of image and text. Any Idea?
You can then add your image scaling work from within the onPreDraw() method.
??