Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Reply
Highlighted
Developer
Posts: 281
Registered: ‎05-31-2012
My Device: Playbook
My Carrier: o2
Accepted Solution

using holo theme in android app?

hi, is it possible to use the holo theme in a android app?

if yes how?

 

or is it even possible to use a navite looking theme in a android app, so that the user think that this is the navite ui?

Plase "+Like" my post if it was helpful.
Contributor
Posts: 13
Registered: ‎02-09-2012
My Device: none
My Carrier: DiGi

Re: using holo theme in android app?

Yes, use HoloEverywhere library to get your app to have Holo theme
Developer
Posts: 281
Registered: ‎05-31-2012
My Device: Playbook
My Carrier: o2

Re: using holo theme in android app?


Evozi wrote:
Yes, use HoloEverywhere library to get your app to have Holo theme

do you have an idea why i have so many errors when i import holoEverywhere?

holo.PNG

Plase "+Like" my post if it was helpful.
Contributor
Posts: 13
Registered: ‎02-09-2012
My Device: none
My Carrier: DiGi

Re: using holo theme in android app?

  • Import HoloEverywhere from root folder and ActionBarSherlock from contrib folder into Eclipse

  • Add HoloEverywhere project as library into your project (Properties/Android/Library/Add)

  • Add next theme declaration:

android:theme="@style/Holo.Theme.Sherlock"

in your application manifest Example:

<application
  android:name=".Application"
  android:icon="@drawable/icon"
  android:label="@string/app_name"
  android:theme="@style/Holo.Theme.Sherlock" >

Also you can use Holo.Theme.Sherlock.Light for light theme and Holo.Theme.Sherlock.Light.DarkActionBar for light theme with dark action bar.

  • Extend the Activities from com.WazaBe.HoloEverywhere.sherlock.S***Activity

Example:

public class MainActivity extends com.WazaBe.HoloEverywhere.sherlock.SListActivity { ...

Also you should cast view to with the same name from package com.WazaBe.HoloEverywhere.widget, if possible. This, for example, ProgressBar and Spinner.

 

Read this too http://actionbarsherlock.com/usage.html

 

Developer
Posts: 281
Registered: ‎05-31-2012
My Device: Playbook
My Carrier: o2

Re: using holo theme in android app?

I made all of this steps, but now i just have one error left which i cant solve:

R cannot be resolved to a variable 

 


this is everywhere where i make the:

(Button)findViewById(R.id.button1);

 

Plase "+Like" my post if it was helpful.
Contributor
Posts: 13
Registered: ‎02-09-2012
My Device: none
My Carrier: DiGi

Re: using holo theme in android app?

Try Project->Clean in Eclipse.
Developer
Posts: 281
Registered: ‎05-31-2012
My Device: Playbook
My Carrier: o2

Re: using holo theme in android app?


Evozi wrote:
Try Project->Clean in Eclipse.

unfortunately it did not solve the issue

Plase "+Like" my post if it was helpful.