Android style plugin

BogDan bog_dan_ro at yahoo.com
Wed Aug 17 15:44:55 UTC 2011


I push my *UNTESTED* work in "style-plugin" branch. 

Cheers,
BogDan.


----- Original Message -----
> From: Ivan Maulana <i.maulana at tarent.de>
> To: Alessandro Portale <alessandro.portale at nokia.com>
> Cc: BogDan <bog_dan_ro at yahoo.com>; "r.schuster at tarent.de" <r.schuster at tarent.de>; necessitas-devel at kde.org
> Sent: Wednesday, August 17, 2011 3:04 PM
> Subject: Re: Android style plugin
> 
> Hi,
> 
>    i add our whole mail in the mailing list.
> 
> 
> On 17.08.2011 12:03, BogDan wrote:
>>  Hi,
>> 
>>     Ok, then I'll create a new branch for this job and I'll commit 
> my work ASAP, then you and Ivan can continue with the "dirty" job. 
> We'll use android-ligthouse repo because it will be part of android platform 
> plugin.
>> 
>>  Cheers,
>>  BogDan.
>> 
>>  P.S. I think we should add necessitas mailing list to cc !
> On 17.08.2011 12:01, Alessandro Portale wrote:
>>  Hi Ivan,
>> 
>>  On 8/17/2011 11:53 AM, ext Ivan Maulana wrote:
>>>        i was going to solve it :), but since i'm not very sure with 
> my
>>>  implementation, please continue. Maybe i can learn from yours and make
>>>  the next step.
>> 
>>  Apart from the Drawables, there are quite a few more things that the QStyle 
> will want to know from the system.
>> 
>>  - The margins for the "9-part" R Drawables
>>  - Common design metrics for margins, spacings, etc.
>>  - The current colors for text/textselection/background.
>>  - Font info per control (font face/size/style)
>>  - perhaps the Drawable sizes without
>> 
>>  I do not know which of these informations are available at runtime (would 
> you like to look at that?). I guess that we can make QAndroidStyle retrieve 
> these things via jni in the same manner as BogDan's code will do.
> 
> I'll take a look and come back ASAP.
> 
> Cheers,
> Ivan
> 
> 
> 
>> 
>>  Cheers,
>>  Alessandro
>> 
>>>  On 17.08.2011 10:14, BogDan wrote:
>>>>  Hi,
>>>> 
>>>>  I can easily implement that function for you (java/c++ part) !
>>>>  Should we cache all the Pixmaps for further use ?
>>>> 
>>>>  Cheers,
>>>>  BogDan.
>>>> 
>>>> 
>>>> 
>>>> 
>>>>  ----- Original Message -----
>>>>>  From: 
> "alessandro.portale at nokia.com"<alessandro.portale at nokia.com>
>>>>>  To: i.maulana at tarent.de
>>>>>  Cc: r.schuster at tarent.de; bog_dan_ro at yahoo.com
>>>>>  Sent: Wednesday, August 17, 2011 2:02 AM
>>>>>  Subject: RE: Android style plugin
>>>>> 
>>>>>  Hi,
>>>>> 
>>>>>  according to the principle "divide and conquer", we 
> should concentrate
>>>>>  on one issue at a time. :)
>>>>> 
>>>>>  I created a small Qt test app that will list the Android 
> R.drawables in a list
>>>>>  with image and name. The code is here:
>>>>> 
>>>>> 
> http://gitorious.org/qandroidstyleplayground/qandroidstyleplayground/trees/master/drawables
> 
>>>>>  The crucial piece of code that goes to the Java side and 
> fetches the resource is
>>>>>  not yet implemented. Could you imagine to investigate how the 
> function
>>>>>  "androidRDrawable(int id)" needs to be extended? Most 
> certainly also
>>>>>  some Java code needs to be added to the Android<->Qt 
> wrapper.
>>>>> 
>>>>>  Anyways, let's discuss in Skype (and on the 
> necessitas-devel list)
>>>>> 
>>>>>  Thanks a lot,
>>>>>  Alessandro
>>>>>  ________________________________________
>>>>>  From: Alessandro Portale [alessandro.portale at nokia.com]
>>>>>  Sent: Tuesday, August 16, 2011 22:24
>>>>>  To: ext Ivan Maulana
>>>>>  Cc: Robert Schuster; ext BogDan
>>>>>  Subject: Re: Android style plugin
>>>>> 
>>>>>  Hi Ivan,
>>>>> 
>>>>>  That's right. I promised to look into styles, but am 
> currently that much
>>>>>  swamped in silly work that I did not yet get into that. I'm 
> glad that
>>>>>  you want to join the effort! :)
>>>>> 
>>>>>  This is what the Qt style is supposed to do in a nutshell:
>>>>>  a) Get the pieces of style/theme from the OS
>>>>>  b) pass these images over to Qt
>>>>>  c) use them to draw Qt widgets.
>>>>> 
>>>>>  Robert already gave me a few relevant hints on the Java side 
> and how to
>>>>>  get the theme bits as rgb data (a). What's still needed is 
> to get them
>>>>>  from the Java side over to Qt (b) and use them there to draw 
> the Style (c).
>>>>> 
>>>>>  I know by heart how to do c, you may be an expert on b (jni 
> magic
>>>>>  required). Together we can pull that off.
>>>>> 
>>>>>  Can we have a Skype voice chat about the details? I am 
> alessandroportale
>>>>> 
>>>>>  Cheers,
>>>>>  Alessandro
>>>>> 
>>>>>  On 8/16/2011 10:15 PM, ext Ivan Maulana wrote:
>>>>>>     Hi Alessandro,
>>>>>> 
>>>>>>           I'm Ivan, studying Computer Science at 
> University of Applied
>>>>>>     Science Bonn Rhein Sieg, Germany. I work as an intern at 
> Tarent
>>>>>>     GmbH(where Robert Schuster also work), on my project i 
> should contribute
>>>>>>     necessitas. I already talked to BogDan and Robert about 
> possible issue
>>>>>>     that i can work into. BogDan told me that the 
> implementation of Android
>>>>>>     style plugin hasn't been done and it would be great 
> if i start on that
>>>>>>     and he told me to contact you about it.
>>>>>> 
>>>>>>       Perhaps you have some hints for me.
>>>>>> 
>>>>>>        Thanks in advance
>>>>>> 
>>>>>> 
>>>>>>     Greetings from Bonn,
>>>>>> 
>>>>>> 
>>>>>>     Ivan
>>>>>> 
>>> 
>> 
>> 
>


More information about the Necessitas-devel mailing list