newt (away)
2014/02/25 19:22:28
I believe you may be able to inline app_banner_but
I believe you may be able to inline app_banner_button_install_default.xml and
app_banner_button_install_pressed.xml into this file. Like so:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<shape><solid android:color="#b2cb39" /></shape>
</item>
<item android:state_pressed="true">
<shape><solid android:color="#d1dd94" /></shape>
</item>
</selector>
Not tested, but I know that sort of nesting works with <layer-list> elements.
Another option is:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
android:drawable="@color/my_favorite_color" />
<item android:state_pressed="true"
android:drawable="@color/your_favorite_color" />
</selector>
Or, for complete, you could use a ColorStateList
(http://developer.android.com/guide/topics/resources/color-list-resource.html)
gone
2014/02/25 20:26:11
Went with the former since the mock seems to keep
On 2014/02/25 19:22:28, newt wrote:
> I believe you may be able to inline app_banner_button_install_default.xml and
> app_banner_button_install_pressed.xml into this file. Like so:
>
> <selector xmlns:android="http://schemas.android.com/apk/res/android">
> <item android:state_pressed="true">
> <shape><solid android:color="#b2cb39" /></shape>
> </item>
> <item android:state_pressed="true">
> <shape><solid android:color="#d1dd94" /></shape>
> </item>
> </selector>
>
> Not tested, but I know that sort of nesting works with <layer-list> elements.
> Another option is:
>
> <selector xmlns:android="http://schemas.android.com/apk/res/android">
> <item android:state_pressed="true"
> android:drawable="@color/my_favorite_color" />
> <item android:state_pressed="true"
> android:drawable="@color/your_favorite_color" />
> </selector>
>
> Or, for complete, you could use a ColorStateList
> (http://developer.android.com/guide/topics/resources/color-list-resource.html)
Went with the former since the mock seems to keep changing.
Issue 177863008: Update the AppBannerView appearance again
(Closed)
Created 6 years, 9 months ago by gone
Modified 6 years, 9 months ago
Reviewers: newt (away), Ted C, Paweł Hajdan Jr.
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 21