[android-developers] Re: Creating an onClick event

2011-10-13 Thread asdf
I think you can get the root view from the activity. And then remove
its child view then inflate the layout you want to added using
LayoutInflater. And add the view to the root view finally. Maybe it
will work.

On 10月12日, 下午9时38分, Stefan Reaney stefanrea...@gmail.com wrote:
 Hi guys,

 Im pretty new to this android development, I am trying a to create a
 button which will change the layout of the app to a different pre-made
 xml layout.. I'm just unsure how to do this? Any pointers?

 thanks

 Stefan

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] why subview doesn`t appear

2011-07-18 Thread asdf
i create a custom viewgroup  extends ViewGroup,and only override
onLayout method. in the method, i call layout method for subview.And
them call addView method of the new created viewgroup, and add a
subview. but the subview doesn`t appear. when i check it using
hierarchyviewer, i  saw the mTop, mRight, mBottom and mLeft are all
zero. i think i must have do something wrong in the custom viewgroup.
thanks

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to test my application

2011-03-24 Thread asdf
http://developer.android.com/guide/publishing/app-signing.html
i can learn how to sign from here

On Mar 24, 1:01 am, rishabh agrawal android.rish...@gmail.com wrote:
 I have no real android mobile.I check my apps on emulator it working
 perfect.So how to check i sign my apps properly or not for real
 android deveice.Any other method for checking my apps in real android
 device.Please suggest

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Uninstalling applications from emulator

2011-03-24 Thread asdf
when uninstal from the command line,you need to know the package name.
i think it`s the reason

On Mar 23, 6:46 pm, Jumana jumanamaj...@gmail.com wrote:
 I was just wondering whether uninstalling applications through command
 line was better than uninstalling them from the emulator itself? Coz
 everywhere on the net I find the former option as the solution. Is
 there a reason for that?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] what`s the difference between inflate and reference directly

2011-03-24 Thread asdf
for example,i want to get a view object in java file.there are two
ways:inflate view and R.id.view.what`t the difference between them.and
when to use them.
thanks

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to make the app rotate follow the gravity

2011-02-27 Thread asdf
I have decompile  a apk file using apktools.But the app can fill the
480*800 device.And i want it to work on 800*480 device.But it don`t
rotate when i change the screan orientation,so what can i do?
thanks and sorry for my poor english

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en