Hello everyone

I'm building an awesome black theme for my note 3 SM-N900 and finished below apps

framework-res
twframework-res
systemUI
calculator
Clock
Multiwindow

and I'm currently in Music player and I'm facing a weired problem here
in my "Sound alive" window I want to modify bottom effect like "Tube amp" , "Virtual 7.1 ch" , . . . button text (other botton will appear when scrolling buttons to the left) to change color when I select them
Sound Alive

here's the layout xml of these buttons :

Quote:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout androidrientation="horizontal" android:layout_marginTop="50.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:showDividers="middle"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:id="@id/new_soundalive_effects_none" android:layout_marginLeft="2.0dip" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/none" android:layout_marginLeft="35.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_none" android:src="@drawable/music_soundalive_card_none_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_tube_amp_effect" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/tube_amp_effect" style="@style/SoundAliveEffectTitle" android:layout_marginLeft="25.0dip" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_tube_amp_effect" android:src="@drawable/music_soundalive_card_tubeamp_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_virtual_71_ch" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/virtual_71_ch" android:layout_marginLeft="17.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_virtual_71_ch" android:src="@drawable/music_soundalive_card_virtual71_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_studio" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/studio" android:layout_marginLeft="20.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_studio" android:src="@drawable/music_soundalive_card_studio_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_club" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/club" android:layout_marginLeft="19.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_club" android:src="@drawable/music_soundalive_card_room_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_concert_hall" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/concert_hall" android:layout_marginLeft="17.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_concert_hall" android:src="@drawable/music_soundalive_card_hall_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
</LinearLayout>


and here's the parts of styles.xml file that is referred to in layout file above:

Quote:

<style name="SoundAliveEffectTitle">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@color/soundAlive_effect_text_color</item>
<item name="android:ellipsize">marquee</item>
<item name="androidaddingLeft">@dimen/new_soundalive_effect_subtext_paddingLeft</item>
<item name="android:layout_width">@dimen/new_soundalive_effect_subtext_width</item>
<item name="android:focusable">true</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginTop">7.0dip</item>
<item name="android:singleLine">true</item>
<item name="android:fontFamily">sec-roboto-regular</item>

<style name="SoundAliveEffectLayout">
<item name="android:background">@drawable/soundalive_indicator_ripple_material</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">210.0dip</item>
<item name="android:layout_height">88.0dip</item>
<item name="android:layout_marginLeft">3.0dip</item>
<item name="android:layout_marginTop">5.0dip</item>
<item name="android:layout_marginBottom">5.0dip</item>

<style name="SoundAliveEffectBottomLine">
<item name="android:background">@color/sound_alive_card_line_off</item>
<item name="android:layout_width">198.0dip</item>
<item name="android:layout_height">3.0dip</item>
<item name="android:layout_marginBottom">4.0dip</item>
<item name="android:layout_alignParentBottom">true</item>
<item name="android:layout_centerHorizontal">true</item>

<style name="SoundAliveEffectImage">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginTop">12.0dip</item>
<item name="android:layout_alignParentRight">true</item>
<item name="android:layout_marginEnd">12.0dip</item>

I also create a xml file in color folder by the name of "soundAlive_effect_text_color" and here's it's contents:

Quote:

<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:color="#ffffffff" />
<item android:color="#ff555555" />
</selector>

I also used "state_checked" and "state_checkable" and "state_activated" but nothing work and I couldn't get the color of button I choose to change

but "state_pressed" work fine here


I want the color of selected button text to be white and others be 50% transparent white ( a little darker)

*** buttons nature function is like this:
ether "None" button could be selected or one of the other effect buttons


can anyone help me fix this problem???

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by isobel93
3 hours ago
Last post by pierce97
4 hours ago
[Q]
Started by dvonrueden
Last post by dayna88
2 hours ago
Last post by zachariah11
29 minutes ago
Last post by mstark
59 minutes ago