Re: [android-developers] How to set logo in the title bar dynamically
this.requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
RelativeLayout titleLayout = (RelativeLayout) getLayoutInflater().inflate(R.layout.iocn,null);
try {
int titleContainerId = (Integer) Class.forName("com.android.internal.R$id").
getField("title_container").get(null);
((ViewGroup) getWindow().findViewById(titleContainerId)).addView(titleLayout);
}catch(Exception e){ }
On Sat, May 1, 2010 at 1:10 PM, subrat kumar panda <evergreen.subrat@gmail.com> wrote:
Hi all,
In my app i want to set the logo in the
title bar. but depending upon the size of the device how could
it be set , so it may be dynamically possible.
if anybody knows the solution regarding the problem
please help me.
Thanks in advance,
Best Regards
Subrat Kumar Panda
India
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home