[android-developers] Using an Android library with flavors as a dependency?

2014-06-27 Thread Kevin Kovach
I feel like I must be missing something simple, but I'm new to gradle and 
the idea of flavors so I've not yet figured it out.

I have a android library project with two flavors. I need to upload this 
library in both flavors to our local maven repository for use in other 
projects.  The issue I'm having is that I cannot figure out how these 
flavors play into the maven group, artifact, version scheme so that I can 
use them as dependencies in other projects?  I would think that the version 
would somehow include the flavor, but that doesn't seem to be the case. 
 The version appears to stay the same and when I try to tweak the 
dependency in one of the other projects to reference a flavor in some way 
it only complains that they cannot be found.

How do I manage dependencies on specific flavors?

I hope this makes sense?  Any help would be appreciated. Thanks.

- Kevin

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Navigation Drawer Icon Theme/Color?

2014-05-28 Thread Kevin Kovach
Thanks.  This works and I believe is much closer to what I was hoping for.

I guess my next/final question is, isn't there a way that you can use 
styles to tint all of the icons in the action bar?  We have an app that we 
want to allow customers style, and would like to allow them to change the 
color on all icons including options menu icons in the action bar?  We want 
to do this as a group. Not individually.

Thanks again.

- Kevin


On Friday, May 23, 2014 7:46:50 PM UTC-4, b0b wrote:

 If you don't want to copy / modify classes:


 private void setActionBarUpTint(int color) {

 int upId = getResources().getIdentifier(android:id/up, null, 
 null);
 if(upId == 0) return ;

 View view = getWindow().getDecorView().findViewById(upId);
 if(!(view instanceof ImageView)) return ;
 
 ImageView imageView = (ImageView) view;
 imageView.setColorFilter(color);
 }



-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Navigation Drawer Icon Theme/Color?

2014-05-23 Thread Kevin Kovach
Yes, I'm currently using this class. The problem is that it loads a 
drawable, which I do not know how to apply a tint to.  There could be 
something that I'm missing, but I've not found a way yet.

- Kevin

On Thursday, May 22, 2014 5:51:39 PM UTC-4, Kostya Vasilyev wrote:

 This is the class responsible for that pedestrian crossing icon:


 https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.html

 It's in the support library. The code as it is just loads an image from a 
 resource resource, but should be easy to change to apply a color tint.

 -- K


 2014-05-23 0:25 GMT+04:00 Kevin Kovach kov...@gmail.com javascript::

 We're trying to theme an app that uses a navigation drawer and I want to 
 be able to tint/color the icon for the navigation drawer with an @color. 
  For the life of me I cannot find any information or hints on how to 
 accomplish this.  I would really appreciate any hints on doing this. 
  Thanks.

 - Kevin

 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 --- 
 You received this message because you are subscribed to the Google Groups 
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to android-developers+unsubscr...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Navigation Drawer Icon Theme/Color?

2014-05-22 Thread Kevin Kovach
We're trying to theme an app that uses a navigation drawer and I want to be 
able to tint/color the icon for the navigation drawer with an @color.  For 
the life of me I cannot find any information or hints on how to accomplish 
this.  I would really appreciate any hints on doing this.  Thanks.

- Kevin

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Is there (or should there be), a generateId() method for dynamically generated Views?

2010-10-17 Thread Kevin Kovach
What about situations where you need the id of a dynamically created
view for use in LayoutParams?  Say I want to position a new view to
the right of a previously created view in a relative layout?  How do
you get a hold of those views if you have only used setTag() or
nothing at all?  Thanks.

- Kevin

-- 
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] Creating/Generating ids for views?

2010-10-17 Thread Kevin Kovach
I am trying to dynamically create a interface using a relative
layout.  I would like to align different views with each other and am
finding the need to know the id of a previously created view so that I
can use them in subsequent layout params.

Is there a preferred or best way to generate or create ids for views
that are created dynamically?  Thanks.

- Kevin

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