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

A message reminder in tabhost

res\drawable\shapecount.xml

<?xml version="1.0" encoding="utf-8"?>     <shape     	  xmlns:android="http://schemas.android.com/apk/res/android"    	   android:shape="rectangle">     	  <corners android:radius="20dp"  />         	<solid android:color="#ff2233" />     </shape>


res\layout\tab_indicator.xml

<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="0dip"android:layout_height="64dip"android:layout_weight="1"android:orientation="vertical"android:background="@drawable/tab_indicator"android:padding="5dp">		<ImageView android:id="@+id/icon"	android:layout_width="wrap_content"	android:layout_height="wrap_content"	android:layout_centerHorizontal="true"	/>			<TextView	     android:layout_width="wrap_content" android:layout_height="wrap_content"           android:text="20" android:textSize="12dp" android:textStyle="bold"               android:background="@drawable/shapecount"           android:textColor="#FFFFFF"           android:paddingLeft="3dp"        android:paddingRight="3dp"           android:layout_margin="0dp"           android:id="@+id/txtCount" />			<TextView android:id="@+id/title"	android:layout_width="wrap_content"	android:layout_height="wrap_content"	android:layout_alignParentBottom="true"	android:layout_centerHorizontal="true"	style="?android:attr/tabWidgetStyle"	/>	</RelativeLayout>


in java code:

		TabHost.TabSpec tSpecGames = tHost.newTabSpec("games");		View tabGamesIndicator = LayoutInflater.from(this).inflate(				R.layout.tab_indicator, tHost.getTabWidget(), false);		((TextView) tabGamesIndicator.findViewById(R.id.title))				.setText(getString(R.string.gameTitle));		((ImageView) tabGamesIndicator.findViewById(R.id.icon))				.setImageResource(R.drawable.ic_launcher);		gameMessageNum=(TextView)tabGamesIndicator.findViewById(R.id.txtCount);		tSpecGames.setIndicator(tabGamesIndicator);		tSpecGames.setContent(new DummyTabContent(getBaseContext()));		tHost.addTab(tSpecGames);


...

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

1852 views    1 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-09-23
>>Back to Android group


Latest Posts


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