Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 48

Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
11/25/13 06:59 AM (11 years ago)

Centring the screen Name and list items in Advanced Manu Image

I am creating an android app using the plugin " Advanced Menu Image". The problem I am having is that the screen nickname is appearing on the left and text is also aligned left. What i wanna do is to centre the both the Screen Name and list titles. Actually every screen is having these problems. Kindly help me on this matter.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/25/13 08:11 AM (11 years ago)
I am so scared of Android Layouts, I don't bother messing with them, most of the time, lol! But I do know alignment in the Android world is tied with the term 'gravity'. I'd make a backup copy of stuff just to be on the safe side, and try testing out different gravity settings in the Advanced Menu XML file. If I'm not mistaken, there are actually quite a number of 'cell' xml files, for each scenario (title only, title/description, title/desc/icon) so pick the one you're going to use. Chris really put forth the extra effort to make this a really nice plugin. It's perfect for dual platform projects. For the Title Bar alignment, that's BT code, not plugin code. Not sure where to find it, but I'm certain a search wouldn't be too hard. Good Luck! Cheers! -- Smug
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
11/25/13 08:17 AM (11 years ago)
I'm on my phone at the moment, but look toward the XML files
 
Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
like
11/25/13 08:36 AM (11 years ago)
@chris I tried. But no success. Kindly help me out.
 
Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
like
11/26/13 03:04 PM (11 years ago)
@chris still waiting for your valuable advice.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/26/13 05:18 PM (11 years ago)
Look in the cell xml files. Choose the cell xml file that matches your intended use (you have three choices; Title Only, Title and Description only, or Title, Description, and Icon). And set the gravity to center the text. Cheers! -- Smug
 
Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
like
11/27/13 02:51 AM (11 years ago)
@smug Thank you. It works great for the list but the screen title is still on the left and not centered. Any suggestions?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/27/13 03:48 AM (11 years ago)
Look for the xml that has the title ;) Cheers! -- Smug
 

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.