Share to EffectHub.com

You can earn money or coins from your share:)

Tips: you can use Sparticle for uploading away3D effects.

Tips: you can download Sparticle for uploading effects.

Tips: The ActionScript editor is supporting Away3D, Starling, Dragonbones and Flex frameworks.

Tips: paste the web page URL then click button:)

EffectHub.com: Your Best Source for Gaming
Login    or

Android:Button with different textcolor and background in different states

@drawable/bottom_button.xml<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android" >    <item android:state_enabled="false"        >        <color android:color="@color/download_button_disable_background"></color>    </item>    	<item android:state_enabled="true">	   <color android:color="@color/download_button_enable_background"></color>	</item>		</selector>

@drawable/bottom_button_textcolor.xml

<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android" >        <item android:state_enabled="true" android:color="@color/download_button_enable_textcolor" />    <item android:state_enabled="false" android:color="@color/download_button_disable_textcolor" />    </selector>


@style

	<style name="bottom_button">	    <item name="android:textColor">@drawable/bottom_button_textcolor</item>	    <item name="android:background">@drawable/bottom_button</item>	</style>


layout.xml

        <LinearLayout            android:layout_width="match_parent"            android:layout_height="50dp"            android:layout_alignParentBottom="true"            android:layout_alignParentLeft="true"            android:layout_alignParentRight="true"            android:layout_gravity="bottom|center_horizontal"            android:background="@color/download_layout_background"            android:orientation="vertical"            android:paddingLeft="0dp" >            <Button                android:id="@+id/about_bt_update"                style="@style/bottom_button"                android:layout_width="wrap_content"                android:layout_height="40dp"                android:layout_gravity="center_horizontal"                android:layout_margin="7dp"                android:text="@string/update" />        </LinearLayout>


...

You must Sign up as a member of Effecthub to view the content.

3567 views    2 comments

You must Sign up as a member of Effecthub to join the conversation.

ChOw

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: helpers/time_helper.php

Line Number: 22

2013-10-28
>>Back to Android group


Latest Topics


Sponsor


They are waiting for your help



Share

Join Effecthub.com


Or Login with Your Email Address:

Or Sign Up with Your Email Address:
This field must contain a valid email
Password should be at least 1 character

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: views/footer.php

Line Number: 6

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/topic.php

Line Number: 21

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/topic.php

Line Number: 85