[android-developers] Re: XML-RPC

2008-11-30 Thread skink
i implemented very thin xml-rpc, try http://www.anddev.org/slim_xml-rpc-t3800.html pskink On Nov 24, 2:01 am, check_writer [EMAIL PROTECTED] wrote: I tried implementing the ApacheXML-RPC3.1 as I normally would in a Java 1.5 app in eclipse and got exceptions. What were the

[android-developers] Re: XML-RPC

2008-12-06 Thread skink
hi, i uploaded v0.2 of my thin XML-RPC library, hope you'll enjoy it, please remeber to register in order to download files pskink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Basic RPC - which one to use ? JSON / XML / SOAP / HTTP etc etc etc.

2008-12-08 Thread skink
hi, 1) Client side : Natively supported under android (or failing that - with a minimal of reqd libraries) you could take a look in my xml-rpc stuff - just 3 classes including Base64 decoder/encoder: http://www.anddev.org/slim_xml-rpc-t3800.html you have to register to see download link.

[android-developers] light xmlrpc clent side lbrary

2008-12-11 Thread skink
hi, after couple of weeks i finished ultra light XMLRPC client side library for android. XMLRPC.tgz contains library itself + small test app (.apk included in bin folder) + test python server.py to run on your dev host. pskink --~--~-~--~~~---~--~~ You received

[android-developers] Re: light xmlrpc clent side lbrary

2008-12-11 Thread skink
On 12 Gru, 00:25, skink psk...@gmail.com wrote: hi, after couple of weeks i finished ultra light XMLRPC client side library for android. XMLRPC.tgz contains library itself + small test app (.apk included in bin folder) + test python server.py to run on your dev host. of course i forgot

[android-developers] light xmlrpc clent side lbrary

2008-12-11 Thread skink
hi, after couple of weeks i finished ultra light XMLRPC client side library for android. XMLRPC.tgz contains library itself + small test app (.apk included in bin folder) + test python server.py to run on your dev host. you can download it from this url (tab Downloads):

[android-developers] Re: continuously polling webserver for updates.

2008-12-12 Thread skink
hi, What's available for communication between android app and web application ?, HttpClient can be used, any other alternative? How to transfer data between app and webapplication, may be XML? then what about images? you could use xmlrpc calls. this minimizes your client cod to just

[android-developers] Re: continuously polling webserver for updates.

2008-12-12 Thread skink
Data: Is it possible to host images on the server and still display on views, say imageview ? do you mean ImageView.setImageURI(URI uri) ? pskink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: light xmlrpc clent side lbrary

2008-12-13 Thread skink
, are you using the Google Code SVN hosting for that project, or not?  At present the trunk is empty: http://android-xmlrpc.googlecode.com/svn/trunk/ Where can we check out the code skink? hi Charlie, i put XMLRPC.tar.gz in Downloads tab ;) in couple of hours i'll add the code to svn so, stay

[android-developers] Re: light xmlrpc clent side lbrary

2008-12-13 Thread skink
hi Charlie, i put XMLRPC.tar.gz in Downloads tab ;) in couple of hours i'll add the code to svn actually it took not so long svn is now ready for access cheers pskink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: continuously polling webserver for updates.

2008-12-13 Thread skink
On 13 Gru, 12:13, Charlie Collins charlie.coll...@gmail.com wrote: Also skink, I replied on your other thread about android-xmlrpc. Looks very promising, but for an open source project you need to provide the CODE, not just the binary artifact (and you licensed it Apache there, so it's open

[android-developers] Re: continuously polling webserver for updates.

2008-12-15 Thread skink
Charlie, thanks for pointing to the book source code. Skink, thanks for XMLRPC, I have downloaded it, will have a look tonight. (I dont see any documentation !!). well, XMLRPCClient has de-facto one method call (the rest is convenience methods) so you should'n have any problems reading

[android-developers] XML Drawables specs

2008-12-15 Thread skink
hi, i tried to find XML DTD of Drawables e. g. GradiendDrawable, BitmapDrawable. unfortunately i failed. seems that official docs lack of them. do you know any links to those resources? thanks pskink --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: XML Drawables specs

2008-12-15 Thread skink
There is no DTD or XML Schema for the drawables. We are working on documenting them though. thanks Romain for clarification. so i assume we have to wait for some next sdk release? pskink --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] creating own theme problem

2008-12-30 Thread skink
hi, i'm in the process of creating my own theme, mainly by adding new NinePatchDrawables and modifying themes/styles xml files. so far i managed to customize buttons, lists, edittexts and spinners. but i cannot figure out how to modify tabhost/tabwidget. looking into sources i think they are

[android-developers] Re: 2 ListViews vertically and auto growing/shrinking

2008-12-30 Thread skink
On 30 Gru, 14:54, gsmd gsm...@gmail.com wrote: Awesome. Thanks. Could you plz suggest on how to set the proportion for Views to grow/ shrink by (like 30:70)? layout_weight is your friend here. for example: layout_weight=3 for first view and layout_weight=7 for the other pskink

[android-developers] should android:id be unique?

2009-01-06 Thread skink
hi, do you know whether android:id for one R class have to be unique (for example defined in different layout.*.xml files)? if yes, why ADT doesn't check this? regards, pskink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: should android:id be unique?

2009-01-06 Thread skink
On 6 Sty, 21:17, Dianne Hackborn hack...@android.com wrote: It only needs to be unique within a view hierarchy (or sub-view hierarchy) in which you are looking for the ID. i thought exactly the same way but when i declared the same IDs in different layout files i got strange errors when

[android-developers] Re: should android:id be unique?

2009-01-07 Thread skink
On 6 Sty, 21:55, Dianne Hackborn hack...@android.com wrote: If the two layouts are used for the same activity but with different orientations, then you will need to keep the IDs consistent between them. yes, i know that. but i dont have per-orientation layouts: i have two layouts for default

[android-developers] customize tab indicator

2009-01-12 Thread skink
hi, Is there any way to customize tab indicators, by for ex. setting own bitmap drawables? pskink --~--~-~--~~~---~--~~ 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] Re: TabHost crash in setup

2009-01-12 Thread skink
On 12 Sty, 18:25, Mark Murphy mmur...@commonsware.com wrote: Patrick wrote: I can't seem to get a TabHost to work. I am not extending TabActivity. I think that is a problem. why? if you call TabHost's setup() it works like a charm. pskink

[android-developers] Re: RotateAnimation, pivoting about the center

2009-01-17 Thread skink
Mark Murphy napisał(a): I have a 21x21 pixel image that I would like to animate about the center of the image. I would think that this would be correct: new RotateAnimation(0f, 360f, Animation.RELATIVE_TO_SELF, 0.5f,

[android-developers] Re: RotateAnimation, pivoting about the center

2009-01-17 Thread skink
also what is your after calling ctor looks like? somethig like this? View v = obtain_view_of_interest(); Animation animation = your ctor here animation.setDuration(1000); v.startAnimation(animation); --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: RotateAnimation, pivoting about the center

2009-01-18 Thread skink
Mark Murphy wrote: Rotate with unknown pivot. If you're seeing a rotation around the center point of the View with the parameters I gave you, then obviously there's something a wee bit off with my View. Hmmm...I have paddingRight and paddingTop values in the layout for this ImageView. I

[android-developers] Re: Reusing ids across screens

2009-01-18 Thread skink
On 18 Sty, 12:44, Inderjeet Singh inder...@gmail.com wrote: Hi, I wanted to confirm if it is okay to use the same id value for screen elements across the screens. yes, it's ok, even more: you can have the same ids even in the same layout but in different subtree

[android-developers] Re: RotateAnimation, pivoting about the center

2009-01-18 Thread skink
Of course, it now dawns on me that the padding probably gets rotated too, so I'm leaning more toward using shims or something to set my position. well, padding is imho shim here, so if you don't use android:background in your ImageView, padding is 'transparent' and it just works fine - you

[android-developers] MotionEvent its historical values

2009-01-22 Thread skink
hi, i have to call offsetLocation on my MotionEvent but what i saw in the sources it may be a bit performance bottleneck since offsetLocation updates also historical values. thats why i'd like to ask if there is a way to force not to add any history since i simply don't need it. i saw that

[android-developers] Re: MotionEvent its historical values

2009-01-22 Thread skink
skink wrote: On 22 Sty, 08:12, skink psk...@gmail.com wrote: hi, i saw that history is appended via addBatch method but failed on finding who/where/when/why call it. seems i didn't grep good enough... now i found that addBatch is called from com.android.server.InputDevice

[android-developers] orientation change crashes when ids are not unique

2009-03-17 Thread skink
hi, consider the simple layout: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical LinearLayout

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread skink
On 17 Mar, 18:19, Romain Guy romain...@google.com wrote: You can have the same id on different widgets. What is the exception you get? ClassCastException, it's probably the SavedStates are backed by one linear sparse array (at least i think so)

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread skink
On 17 Mar, 18:36, Romain Guy romain...@google.com wrote: Oh yeah, we fixed that in Cupcake. But the bottom line is: don't use the same id for Views of different types. ok, thanks for info but if i used the same ids for the same View types (for example two ListViews) how its supposed to

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread skink
On 17 Mar, 21:01, Dianne Hackborn hack...@android.com wrote: Yes, the ID is used to propagate the saved state to the appropriate view in the next instance.  Use different IDs.  Why do you even want to use the same ID? i created come container view (extending ViewGroup) with fixed number of

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread skink
Dianne Hackborn napisał(a): Yes, the ID is used to propagate the saved state to the appropriate view in the next instance. Use different IDs. Why do you even want to use the same ID? also i had similar problem some time ago

[android-developers] Re: modal ViewGroups

2009-03-19 Thread skink
On 19 Mar, 09:53, skink psk...@gmail.com wrote: hi, suppose i have two 'main' subtrees in my view hierarchy. is there any way to 'disable' one subtree (ViewGroup) so that it does not gain fosus, touch events etc (maybe even it gets blurred/ translucent). basically something similar

[android-developers] Re: modal ViewGroups

2009-03-19 Thread skink
skink wrote: On 19 Mar, 09:53, skink psk...@gmail.com wrote: i'm aware of setDescendantFocusability(boolean) but still such ViewGroup can process TouchEvents and setEnabled doesn't do the trick since its not overriden by ViewGroup... so if there is not any setDescendantEnabled

[android-developers] Re: OnGestureListener vs ContextMenu, do they play together?

2009-03-27 Thread skink
Keith Wiley wrote: My View subclass is can be written one of two ways, I've tried both. One implements OnGestureListener, the other doesn't. In both cases, the Activity registers the view for context menus when the view is created and registers itself, the activity, as the context menu

[android-developers] Re: OnGestureListener vs ContextMenu, do they play together?

2009-03-27 Thread skink
On 27 Mar, 14:38, Keith Wiley kbwi...@gmail.com wrote: There is a OnGestureListener.onLongPress() method however.  Is that what you meant? yes, i meant onLongPress but i've forgotten its void. i'm reakly sorry for that. other question: your View.onTouchEvent method. does it call

[android-developers] grab [Motion|Key]Events

2009-03-30 Thread skink
hi, suppose i have two 'main' subtrees ov Views in my Activity View. now under some circumstances i want only one subtree to receive touch/ key events. is it possible with one/two calls or i have to recursively disable every View in subtree which is to be disabled from getting touch/key

[android-developers] Re: grab [Motion|Key]Events

2009-03-30 Thread skink
On 30 Mar, 14:56, Dianne Hackborn hack...@android.com wrote: You can implement dispatchTouchEvent at any view on the tree where you want to customize dispatching.  I don't believe we have a view flag to turn off dispatching without actually making the view/view group invisible. thanks

[android-developers] Re: Android XMLRPC client

2009-04-08 Thread skink
On 8 Kwi, 04:49, Saravanan.K saravinfot...@gmail.com wrote: Hi, I have downloaded the XMLRPC library fromhttp://code.google.com/p/android-xmlrpc/downloads/detail?name=XMLRPC and tried using it to access my webservice. I have modified the Test.java file to consume my own webservice.

[android-developers] Re: Android XMLRPC client

2009-04-08 Thread skink
Sandy wrote: seems there has some bugs when parsering struct data. Sandy, did you download sources via svn? attached tar.gz may have some problems when parsing structs from old legacy servers --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] broadcasts as communication path between custom views and activity

2009-04-14 Thread skink
hi, i have custom view and once some action occur in it (say touch/key event) i'd like to call some code in my activity. my question is if broadcasts (intent filters/broadcast receivers) are good communication mechanism for such thing? if not, what is normal/android preffered way to do it?

[android-developers] Re: Android XMLRPC client

2009-04-15 Thread skink
On 15 Kwi, 04:13, Saravanan.K saravinfot...@gmail.com wrote: Hey thanks for the reply. Do you mean that WSDL files need to be parsed only using a SOAP library and not the XML RPC library? Is this XML RPC client to parse just pure XML files? wsdl files describe soap server's

[android-developers] Re: broadcasts as communication path between custom views and activity

2009-04-15 Thread skink
On 15 Kwi, 05:56, skink psk...@gmail.com wrote: hi, i have custom view and once some action occur in it (say touch/key event) i'd like to call some code in my activity. my question is if broadcasts (intent filters/broadcast receivers) are good communication mechanism for such thing

[android-developers] Re: broadcasts as communication path between custom views and activity

2009-04-15 Thread skink
On 15 Kwi, 04:56, skink psk...@gmail.com wrote: hi, i have custom view and once some action occur in it (say touch/key event) i'd like to call some code in my activity. my question is if broadcasts (intent filters/broadcast receivers) are good communication mechanism for such thing

[android-developers] Re: broadcasts as communication path between custom views and activity

2009-04-15 Thread skink
skink wrote(a): basically, i would like to know whether broadcasts/broadcast receivers are lightweight stuff or it involves much processing and i should use own interface based listeners. bump :) any thoughts what is better? broadcasts or listeners

[android-developers] Re: broadcasts as communication path between custom views and activity

2009-04-15 Thread skink
On 15 Kwi, 18:26, Dianne Hackborn hack...@android.com wrote: Give your view a reference to the activity (or a Java interface it implements) and call back through that.  Much much MUCH more efficient than sending a broadcast.  See all of the standard view and view subclass callbacks for

[android-developers] bad sqlite performance

2009-04-23 Thread skink
i was quite surprised when dealing with android's sqlite implementation. suppose i have db with a table counting moro or less 4 rows. now i do query 'select field from table'. no 'where' clause so result set should have all rows. and i was surprized that Cursor 'allocates' probably all

[android-developers] sqlite, big tables and like/glob statement

2009-04-25 Thread skink
hi, anyone working with big sqlite tables and trying to match rows using patterns (for example for autocomplete purposes) ? recently i played with LIKE statement and it seems it will never use table index (if any), you have to use GLOB instead. but... the weird thing is that you cannot use

[android-developers] Re: sqlite, big tables and like/glob statement

2009-04-25 Thread skink
On 25 Kwi, 05:34, skink psk...@gmail.com wrote: hi, anyone working with big sqlite tables and trying to match rows using patterns (for example for autocomplete purposes) ? recently i played with LIKE statement and it seems it will never use table index (if any), you have to use GLOB

[android-developers] Re: XML or CSS for Styles and Theams

2009-01-24 Thread skink
When we talk abiut 'Styles and Themes' are there any news when support for styleable will be finished? I tried to write my own theme but stopped after realizing that TabHost and/or TabWidget cannot be styleable (there are hard-coded drawables). thanks, pskink

[android-developers] Re: Displaying HTML Content

2009-01-24 Thread skink
b) files: The ContentProvider's openFile() method returns a ParcelFileDescriptor, which can only be created from a Socket or a File.  I have neither, I have an InputStream.  So it seems there's no way to return the image and style data from a ContentProvider anyway. i had *exactly* the same

[android-developers] Re: embed external activities using LocalActivityManager

2009-01-25 Thread skink
Mark Murphy wrote: For security reasons, it is not possible. You can only embed activities that you own. Mark, thank you for your quick response! btw i saw you managed to get rid/costomize WebView's focus ring. since i'm not expert in css at all what is that magic line (or two)? i tried

[android-developers] Re: embed external activities using LocalActivityManager

2009-01-25 Thread skink
Apparently, it is: * { -webkit-tap-highlight-color: rgba(0,0,0,0.0); } My CSS-fu is weak, but I suspect that means make -webkit-tap-highlight-color be transparent for all styles or some such. thank you! yes, orange ring dissapeared. but when i change it to rgba(0,0,255,0.5); it's not

[android-developers] Re: FrameLayout and positioning children

2009-01-27 Thread skink
basically i don't like the idea i'm using there: setting layout_marginTop in panelHandle children. can it be done in some clever way? hi, actually the subject is incorrect: it should refer to LinearLayout not FrameLayout. i noticed that when i replace id/panelHandle children in my

[android-developers] custom View using Adapter iface

2009-01-31 Thread skink
hi, i want to create custom View showing possibly several items. i think using Adapter interface would be good idea. my question is: should i extend AdapterView? if so, what is the most imortant when doing this (e.g. AdapterView is ViewGroup, so how should i manage children)? thanks, pskink

[android-developers] custom View using Adapter iface

2009-01-31 Thread skink
hi, i want to create custom View showing possibly several items. i think using Adapter interface would be good idea. my question is: should i extend AdapterView? if so, what is the most imortant when doing this (e.g. AdapterView is ViewGroup, so how should i manage children)? thanks, pskink

[android-developers] Re: custom View using Adapter iface

2009-01-31 Thread skink
On 31 Sty, 12:39, Marco Schmitz netzprofi.ma...@googlemail.com wrote: /**  * Demonstrates how to write an efficient list adapter. */ thanks Marco, but i don't want to use ListViews. i want to write my own custom View, since from some reasons ListViews dont fit to my requirenents

[android-developers] Re: custom themes?

2009-01-31 Thread skink
Craig wrote: I'm sorry if I missed it, but I didn't see what I was looking for behind any of those links. I know I can create a custom theme to use android attributes; what I want to do is create a custom theme with custom attributes, and refer to those in my code. hi, all you need to do

[android-developers] Re: custom themes?

2009-01-31 Thread skink
Craig wrote: Thanks! That did it. Here is an example of the code I used: final private static int[] colorAttrs = new int[] {R.attr.activeColor, ...}; I chained my View constructors: public MyView(Context context) {this(context, null);} public MyView(Context context, AttributeSet

[android-developers] Re: custom themes?

2009-02-01 Thread skink
Craig wrote: It well could be over complicated - here is what I did: In res, values, attrs.xml I have: ?xml version=1.0 encoding=utf-8? resources declare-styleable name=MyColors attr name=inactiveColor format=color/ attr name=activeColor format=color/

[android-developers] Re: custom themes?

2009-02-01 Thread skink
skink wrote: int activeColor = myColors.getInteger (R.styleable.MyColors_activeColor, 0); int inactiveColor = myColors.getInteger (R.styleable.MyColors_inactiveColor, 0); just after posting i realized i use getInteger, which is wrong of course (however it also works...) it should

[android-developers] Re: custom themes?

2009-02-01 Thread skink
On 1 Lut, 16:07, Craig csab...@gmail.com wrote: Thank you, skink - that is much simpler. you probably were not aware of generated R.styleable... note that R.styleable.MyColors contains int[] you created by hand while R.styleable.MyColors_* contains indices to that table

[android-developers] is there any setStyle method?

2009-02-01 Thread skink
hi, i created my style in styles.xml, lets say MyStyle. i can use it in any layout file by style=@style/MyStyle. also my generated R class have R.style.MyStyle, my question is if i can use it at runtime to setStyle - unfortunately View doesn't have such a method. if not what is R.style.MyStyle

[android-developers] Re: is there any setStyle method?

2009-02-01 Thread skink
On 1 Lut, 22:34, Romain Guy romain...@google.com wrote: The style can be passed to a view's constructor. thanks Romain for your reply, but i think it's equivalent of setting style in xml - it's static. what about setting the style after the View is constructed - that way style could be

[android-developers] Re: is there any setStyle method?

2009-02-02 Thread skink
Romain Guy wrote: Textview supports setTextAppearance if I remember correctly. indeed ! Textview supports public void setTextAppearance(Context context, int resid) so its even more mystery that there is no generic View.setStyle(int resid) method for example: suppose i want also change

[android-developers] Re: is there any setStyle method?

2009-02-02 Thread skink
Dianne Hackborn napisał(a): Sorry there is no way to change the style/theme that a view is using after is is created. thank you Dianne, but what about dynamic setStyle in the future releases? imagine i have a label (TextViev) that normally in plain/white/15dip but when something is wrong

[android-developers] items of StateListDrawable

2009-02-09 Thread skink
hi, normally in StateListDrawable (defined in XML) one defines either . 9.pngs or normal .pngs. i wanted my 'normal' state to be defined as LevelListDrawable (also defined in XML). and i have problem here: i always see the first item from LevelListDrawable, calling setLevel on that drawable

[android-developers] Re: Question about writing a custom button

2009-02-10 Thread skink
On 10 Lut, 16:34, ying lcs ying...@gmail.com wrote: Hi, I am writing a custom button. In the android button, I can customize my button like this:         Button android:id=@+id/subtract_button                 android:text=-         / And in the Button.java source code, it gets the

[android-developers] Re: Question about writing a custom button

2009-02-10 Thread skink
But I can't do the same in MyButton since the 'com.android.internal.R.styleable.TextAppearance_textColor' is not accessible. So can you please tell me how can I get the textColor in MyButton? hi, i think you can use android.R.styleable.TextAppearance_textColor

[android-developers] Popupwindow's animations

2009-02-28 Thread skink
hi, does anyone know how to use Popupwindow's animation? i tried setAnimationStyle() but couldn't get it working... i assume i need to pass style id (R.style.something) defining windowEnterAnimation windowExitAnimation but as i said it didn't work thanks pskink

[android-developers] Re: Popupwindow's animations

2009-02-28 Thread skink
On 28 Lut, 10:46, skink psk...@gmail.com wrote: i assume i need to pass style id (R.style.something) defining windowEnterAnimation windowExitAnimation but as i said it didn't work being desperate i also tried to pass R.anim.something but with no success at all... anybody had any

[android-developers] Re: Popupwindow's animations

2009-02-28 Thread skink
On 28 Lut, 10:46, skink psk...@gmail.com wrote: i assume i need to pass style id (R.style.something) defining windowEnterAnimation windowExitAnimation but as i said it didn't work ok, got it working partially: animations are working when passing some android's std animation styles e.g

[android-developers] Animation Styles

2009-03-01 Thread skink
, but R.style.Animation_Dialog doesn't. looking at xml definition files i found that Toast animation uses simple alpha animation and Dialog animation is a set of alpha combined wit scale animation. is it a problem for WindowManager to deal with complex animations? skink

[android-developers] Re: Animation Styles

2009-03-02 Thread skink
On 1 Mar, 21:33, skink psk...@gmail.com wrote: after some time i realized i cannot use my own custom animation styles which is ok but a bit limiting. so i tried system ones: R.style.Animation_Toast works ok, but R.style.Animation_Dialog doesn't. actually, today i tried all R.style.Animation_

[android-developers] Re: Any Listener for shake movement ?

2009-03-02 Thread skink
Mark Murphy napisał(a): it would be nice to have some wrapper classes that work on human-scale events, like shaking, steering, flipping, spinning, etc. maybe this will help: http://discussions.apple.com/thread.jspa?threadID=1616150tstart=39

[android-developers] Re: Animation Styles

2009-03-02 Thread skink
On 2 Mar, 14:57, skink psk...@gmail.com wrote: actually, today i tried all R.style.Animation_* animation styles and none of them but R.style.Animation_Toast seems to work. or maybe there are some other styles apart from R.style.Animation_* that can i use? unfortunately official docs

[android-developers] Re: Animate an AlertDialog

2009-03-02 Thread skink
Dianne Hackborn wrote: You should make your own, with reference to animation resources that describe the actual animations you want. On Mon, Mar 2, 2009 at 10:47 AM, skink psk...@gmail.com wrote: hi Dianne, what style can i use? R.style.Animation_*? or some others? thanks skink

[android-developers] Re: Animate an AlertDialog

2009-03-02 Thread skink
also for completeness/symetry it would be nice if Dialog and/or Window had setAnimationStyle(int) method as PopupWindow has. now (if i didn't miss something) i need to: 1. w = dialog.getWindow() 2. a = w.getAttributes() 3. a.windowAnimations = R.style.style 4. w.setAttributes(a) which isn't

[android-developers] Re: Animate an AlertDialog

2009-03-03 Thread skink
has valid package, but getResourcePackageIndex(0x7f0a000a) says something else is it a bug (application bag resources were not tested) or i need to add something to my style definition ? thanks skink --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: ADC2 entries so far...

2009-09-14 Thread skink
On Sep 13, 7:12 pm, Mobidev android.mobi...@gmail.com wrote:         Bookworm http://andappstore.com/AndroidApplications/apps/734         Bookworm's category is Education/Reference thanks pskink --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Why are the save/restore lifecycle events called twice when switching the emulator from landscape to portrait?

2009-09-28 Thread skink
On Sep 27, 1:31 pm, Carl Whalley carl.whal...@googlemail.com wrote: This is with the 1.6 1.5 SDKs, not tried earlier ones. When you switch from portrait to landscape the onSaveInstanceState()/ onRestoreInstanceState() pair are called once, but when going back from landscape to portrait

[android-developers] Re: Is it possible to create custom theme?

2009-10-05 Thread skink
On Oct 5, 3:09 pm, Karthik P karthi...@gmail.com wrote: Is it possible to create custom theme? And give its properties such as window type, background color, font size, etc? Karthik sure it is, see: http://www.anddev.org/viewtopic.php?p=15304#15304 pskink

[android-developers] Re: SQLite matching prefix on indexed column

2009-10-08 Thread skink
On Oct 8, 5:36 am, westmeadboy westmead...@yahoo.co.uk wrote: I have a TEXT column and I want to match all rows where the value has a certain prefix. For example, WHERE mycol LIKE 'myprefix%' However, I noticed in some optimization guidelines that this will not use the index and instead

[android-developers] donuts supports screens issue

2009-10-13 Thread skink
hi, i try to understand new donut's feature: support for different screens now i'm using wvga800 skin my main layout is vertical one and has three TextViews: layout_width - fill_parentand layout_height - wrap_content i'm using android:textSize to specify their height: 100sp, 100dp and 100px

[android-developers] Re: height of custom view

2009-10-21 Thread skink
On Oct 21, 4:30 pm, purvi purvi.n...@gmail.com wrote: Hello, I have a custom class that extends view class. Now this custom view is set in the listadapter that extends baseadapter. Along with the custom view I have a TextView in the list. So the xml i inflate for list view is

[android-developers] custom StateListDrawable

2009-10-21 Thread skink
hi, i'd like to extend StateListDrawable and do some custom drawing. but i cannot see how to populate its states based on some resId which points to other StateListDrawable. i'm aware of addState method but in order to use it i'd need to somehow enumerate 'source' StateListDrawable states and

[android-developers] Re: formatting text, before adding to textview

2009-10-22 Thread skink
On Oct 22, 4:57 pm, Jiri jiriheitla...@googlemail.com wrote: Hello list, If I have a string resource, for instance: Hello world and I want to have world be colored differently when i put it to a TextView. How do I do this? Jiri Jiri, use setSpan method pskink

[android-developers] Re: Context Menu

2009-10-23 Thread skink
On Oct 23, 11:26 am, Neilz neilhorn...@googlemail.com wrote: The Context Menu in my app (a ListActivity) is getting very annoying. On new phone you have to select and hold the list item for so long before the menu pops up, that it's really not very user friendly. I want my context menu to

[android-developers] Re: Animating ViewStub

2009-10-23 Thread skink
On Oct 23, 5:55 pm, Matthias m.kaepp...@googlemail.com wrote: Hi, I am trying to animate a ViewStub -- without success. My code:   stub.setVisibility(View.VISIBLE); // inflate the stub   Animation anim = AnimationUtils.makeInAnimation(this, true); just a guess: what is duration of such

[android-developers] Re: How to display data from a content provider using WebView.loadUri

2008-09-17 Thread skink
, not sure where to place ServerSocket that serves data: in separate Thread created at onCreate or in some other place e.g. service skink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] TextView weird layout

2008-09-21 Thread skink
is it so? it dificults my life since i have to provide two touch listeners (for scroll and text views). i tried also TextView's gravity set to fill but with no success... thanks, skink --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: TextView weird layout

2008-09-22 Thread skink
had scrollTo problems with my aproach, hope your way will cure that too... skink -- Mark Murphy (a Commons Guy)http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: TextView weird layout

2008-09-22 Thread skink
On 21 Wrz, 20:44, Mark Murphy [EMAIL PROTECTED] wrote: Delete the ScrollView, then set android:singleLine=false in your XML layout. TextView does its own scrolling, and putting self-scrolling widgets in a ScrollView causes problems. -- Mark Murphy (a Commons Guy)http://commonsware.com

[android-developers] Re: TextView weird layout

2008-09-22 Thread skink
, thanks for your time Mark! i still think that there must be easier way of workin with TextViews... i'll search other groups thanks again skink -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published

[android-developers] Paint.setTextSize ascent descent

2008-09-27 Thread skink
hi, as abs(ascent) + descent != textSize passed to setTextSize, is there any helper function for getting what textSize to use for given abs(ascent) + descent without boring/stupid interpolations or trying various textSizes? thanks, skink --~--~-~--~~~---~--~~ You

[android-developers] glass pane like widget

2008-09-30 Thread skink
hi, i'm just wondering whether there is jswing's glass pane like mechanism under android platform. i found surface/surfaceview but probably it's not what i want. thanks, skink --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] glass pane like widget

2008-09-30 Thread skink
hi, i'm just wondering whether there is jswing's glass pane like mechanism under android platform. i found surface/surfaceview but probably it's not what i want. thanks, skink --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Activities Refactoring

2008-10-01 Thread skink
' Activity so that i wouldn't need to change anything but replace 'extends Activity' to 'extends someFakeActivityClass'? skink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group

[android-developers] Re: Activities Refactoring

2008-10-01 Thread skink
and runs multiple embedded activities' period. And it seems to be only Activities container, but what about ui? i cannot see any setIn/OutAnimation() methods. thanks skink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

  1   2   3   4   5   6   7   8   9   10   >