Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 10    Views: 58

Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
06/20/13 10:15 AM (12 years ago)

image menu error

i dowmloaded source code in eclipse when i open screen_wb_menuimage.xml ,two errors pop up(red dots) these red dots do no appear till the xml file is opened but appear as soon as the xml is opened. one error in image view and other in listview here is sample code <?xml version="1.0" encoding="UTF-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/containerView" android:background="@android:color/transparent" android:padding="0dip" android:layout_margin="0dip" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/listView" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="@android:color/transparent" android:cacheColorHint="#000000" android:choiceMode="singleChoice" android:scrollbars="none" > </ListView> </RelativeLayout> i deleted the image view (i dont want image to show up) so now one error left in listview and the error showed up when cursor is on red dot is :Unexpected namespace prefix "xmlns" found for tag ListView thanks
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/20/13 10:39 AM (12 years ago)
Is this the Menu with Image or Menu with Image Advanced? Jake
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
06/20/13 10:40 AM (12 years ago)
menu with image thanks
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/20/13 10:42 AM (12 years ago)
You can safely remove these bits of code then do a project > clean: xmlns:android="http://schemas.android.com/apk/res/android eclipse doesn't like them anymore.. **edit** Don't remove the main xmlns schema at the start of the file!
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
06/20/13 10:59 AM (12 years ago)
Yes, i agree with what @raveyd said. just remove any reference you get about the following line in any bt plugin layout files except the parent reference- xmlns:android="http://schemas.android.com/apk/res/android"
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
06/20/13 11:01 AM (12 years ago)
sweet n quick fix thanks raveyd
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
06/20/13 11:03 AM (12 years ago)
oh sandeep! yes I will take care of doing that in every bt plugin! thanks
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/20/13 11:23 AM (12 years ago)
np Akshay, and thanks for the gplay rating the other day! :)
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
06/20/13 11:53 AM (12 years ago)
:)
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
06/20/13 12:15 PM (12 years ago)
@raveyd.. where's the melon?! :)
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/20/13 12:41 PM (12 years ago)
oh yeah lol! Dunno, I thought I'd changed it for a new one last night..
 

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.