my own titlebar (backbutton like on the iphone)

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Postby darolla » Fri Jan 30, 2009 12:20 am

hi,

it took me a while to find out that svn repository location:

http://android-misc-widgets.googlecode.com/svn/trunk/

For all ppl new to subversion: http://javathreads.de/2008/07/subversio ... igurieren/

greetings,
darolla

ps: nice pieces... especially that PlotView :)

ps: If you wanna add me: check your pm for my gmail...
User avatar
darolla
Master Developer
Master Developer
 
Posts: 273
Joined: Thu Sep 25, 2008 5:16 pm
Location: Dortmund, Germany

Top

Postby darolla » Fri Jan 30, 2009 2:04 am

User avatar
darolla
Master Developer
Master Developer
 
Posts: 273
Joined: Thu Sep 25, 2008 5:16 pm
Location: Dortmund, Germany

Postby pskink » Fri Jan 30, 2009 12:51 pm

darolla wrote:ps: If you wanna add me: check your pm for my gmail...


i already did it
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Postby darolla » Fri Jan 30, 2009 12:54 pm

thanks,

and I added you :)

greetings,
darolla
User avatar
darolla
Master Developer
Master Developer
 
Posts: 273
Joined: Thu Sep 25, 2008 5:16 pm
Location: Dortmund, Germany

Postby darolla » Tue Feb 17, 2009 11:59 am

are you using gimp? :D
User avatar
darolla
Master Developer
Master Developer
 
Posts: 273
Joined: Thu Sep 25, 2008 5:16 pm
Location: Dortmund, Germany

Postby pskink » Tue Feb 17, 2009 12:21 pm

darolla wrote:are you using gimp? :D


sure! i'm on linux, not win32

inkscape und gimp ist wunderbar ;)
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Top

inkscape

Postby shareme » Tue Mar 31, 2009 11:50 pm

No Xara Extreme?
shareme
Junior Developer
Junior Developer
 
Posts: 19
Joined: Sun Nov 09, 2008 1:54 pm
Location: SE ChicagoLand

seperate back button for "htc magic"

Postby rom4o » Tue Jan 19, 2010 10:34 pm

Hello, i also want to create a "back button" which is always on the toplayer and visible.
For the case that the button hides important areas on the display, it should moveable and transparent.
If you touch for a short time, it goes back to the next higher level. The end should be the home-screen.
And if you touch for a longer time you can move the button from any to another position.
In the Attachment you can see the sample.
But in the sample, the button isn´t transparent.

I have some experience with java and c++ unter win-XP but no with android.
Do somebody have an advice?

Much greetings rom4o
Attachments
button_source.PNG
button_source in png-format
button_source.PNG (1.45 KiB) Viewed 1444 times
device02.png
with the button
device02.png (150.67 KiB) Viewed 1444 times
device01.png
without the button
device01.png (150.78 KiB) Viewed 1444 times
rom4o
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Jan 19, 2010 7:40 pm

Postby enggvipin.singh » Thu Feb 11, 2010 1:56 pm

Hi Darolla,

can you please share how to create that "back button with bar",what you have shown in iphone's settings screenshot.
User avatar
enggvipin.singh
Junior Developer
Junior Developer
 
Posts: 10
Joined: Wed Aug 12, 2009 4:16 pm
Location: INDIA

Postby enggvipin.singh » Fri Feb 12, 2010 9:36 pm

i understood the whole flow of what is done by darolla,but when i insert the same logic or even same code my title bar gets cropped in emulator while if i see the preview it looks perfect.please look at attachement.

what i need is the same tiltle bar as in iphone's settings screen with same back button.
Attachments
vipin.zip
(1.55 KiB) Downloaded 79 times
emulator output.PNG
emulator output.PNG (27.56 KiB) Viewed 1398 times
title_xml_layout.PNG
title_xml_layout.PNG (14.39 KiB) Viewed 1398 times
User avatar
enggvipin.singh
Junior Developer
Junior Developer
 
Posts: 10
Joined: Wed Aug 12, 2009 4:16 pm
Location: INDIA

Postby droider » Wed Mar 24, 2010 5:43 pm

Dorolla,

Thanks a ton for attaching all your files for reference. Was very helpful in understanding your approach.

Mr Snowflake, many thanks for the info.
hmm...how about a Google Certified Android Developer certification?!
droider
Developer
Developer
 
Posts: 25
Joined: Sun Mar 21, 2010 6:17 am
Location: New York

Postby darolla » Wed Mar 24, 2010 6:14 pm

@enggvipin.singh: its done using themeing.

check styles.xml and theme.xml to understand what I am doing.

using manifest to make use of the theme.

your titlebar is "too small" because you are using the standard theme by default :)

greetings you all,
darolla

ps: android handles transparency very well. so if you have some problems, just take a look at your .png file. the problem seems to be there...
User avatar
darolla
Master Developer
Master Developer
 
Posts: 273
Joined: Thu Sep 25, 2008 5:16 pm
Location: Dortmund, Germany

Postby droider » Wed Mar 24, 2010 8:34 pm

Hey Darolla,

Thanks for the detailed information on creating custom title bars.

I tried using your approach but in styles.xml while using @android:color, I get a "@android:color" is not correctly spelt error.


What could be the reason for this ?

I am trying something similar to what you have done.
Attachments
img_title_barold - Copy.jpg
img_title_barold - Copy.jpg (4.08 KiB) Viewed 1381 times
hmm...how about a Google Certified Android Developer certification?!
droider
Developer
Developer
 
Posts: 25
Joined: Sun Mar 21, 2010 6:17 am
Location: New York

Postby droider » Thu Mar 25, 2010 1:07 am

LOL, I was coding into the wee hours of the morning and couldn't differentiate between grammar checker(english grammar) and compiler grammar checker!


The android:color tag worked and thanks to your in-depth xml, java, screenshots and info - it worked for me!


thanks a TON, Darolla!!
hmm...how about a Google Certified Android Developer certification?!
droider
Developer
Developer
 
Posts: 25
Joined: Sun Mar 21, 2010 6:17 am
Location: New York

Postby droider » Thu Mar 25, 2010 1:09 am

@enggvipin.singh

I got exactly the same problem (background image messed up in title bar)

Turns out, I did everything right but forgot to use the theme in AndroidManifest!

HTH
hmm...how about a Google Certified Android Developer certification?!
droider
Developer
Developer
 
Posts: 25
Joined: Sun Mar 21, 2010 6:17 am
Location: New York

Top
PreviousNext

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google [Bot] and 3 guests