[android-developers] Re: App Widget (Home Screen Widgets) size in Honeycomb

2011-05-24 Thread KlausSK8
Where did you put those values ​​of dimension?
it have to be on value folder, widget appwidget-provider xml
at what scale? dp ?
it works in other device?
maybe you have correctly created but the size of your widget Layout
not using the entire area...

On 23 maio, 16:16, Tomáš  Hubálek tom.huba...@gmail.com wrote:
 Hello,

 I followed widget definition guidelines described 
 athttp://developer.android.com/guide/topics/appwidgets/index.html#MetaData
 and I suspect that formula for calculation of widget size ((number of
 cells * 74) - 2) is wrong for Honeycomb.

 If wanted to create widget of size 6x4, so I added there 442x294 but
 this widget is reported by Honeycomb launcher as 5x4.

 Could anybody confirm/correct/explain my observation and update
 official documentation if it is wrong?

 Thanks a lot
 Tom

-- 
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: I need an activity context, but from a class that does not extend Activity

2010-12-15 Thread KlausSK8
Maybe you can use ActivityName.this

 mDbHelper = new NotesDbAdapter(ActivityName.this);
 mDbHelper.open();

or make a static store in a class, ie:

public class MyClass {
  public static Context contextShared = null;
}

and when the activity starts

protected void onCreate(Bundle savedInstanceState){
   MyClass.contextShared = this;
}


so, and your code:

 mDbHelper = new NotesDbAdapter(MyClass.contextShared);
 mDbHelper.open();

On 14 dez, 16:54, Tobiah t...@tobiah.org wrote:
 I'm making a database wrapper from the Notepad example to fit my own database.
 I decided that I'd have a generic 'Row' class that I'd subclass for each
 table in the database.  It would be responsible for setting and getting
 and syncing data between the app and the database.

 So, in the Notepad example, the NoteEdit class does this:

          mDbHelper = new NotesDbAdapter(this);
          mDbHelper.open();

 But the NoteEdit class extends Activity.  I don't see that
 my Row class should extend Activity.  Would it matter? If it
 does, can I just extend Activity even though the Row class
 will never be called as one?

 Thanks,

 Toby

-- 
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: home screen widget drag or scroll

2010-12-13 Thread KlausSK8
Thanks for your answer String,

I uploaded a video showing the home screen widget scrolling...
So, how this widget allow scroll?
The link for the video http://www.youtube.com/watch?v=x5AkebfVqsE
It has much home screen widget scroll like that, contacts,
appointment, messages, maybe it's just for HTC widgets... but I think
if HTC widgets allows to scroll, I could too

Thanks,
Klaus

On 11 dez, 04:06, String sterling.ud...@googlemail.com wrote:
 I'm pretty sure that it can't be done, sorry. All interaction with a widget 
 gets pushed through a RemoteViews object, and the only event it supports is 
 click.

 String

-- 
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] home screen widget drag or scroll

2010-12-10 Thread KlausSK8
I'm trying to understand or make something like a Twitter widget or
contacts with picture widget.
This widgets on home screen, allows the user to hold your finger in
it, so dragging up the content as a scrollview
I tried to find in google search by android home screen scroll
android widget scroll  android home screen drag ...
But I think it have no much information or examples of home screen
widgets yet...
Somebody here knows how to scroll or drag home screen widget's content
as a scrollview ?
I saw examples with TextView marquee, but I think that contact's
widget that displays user's pictures and allows to scroll isn't using
TextView to Display images...

Thanks,
Klaus

-- 
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