whitespace COMPANY whitespace SERVICES whitespace PRODUCTS whitespace PURCHASE whitespace SUPPORT whitespace CONTACTS whitespace Home whitespace Contact Us whitespace Site Map whitespace
whitespace
SUPPORT
whitespace
FORUM
whitespace
FAQS
whitespace
SUBSCRIPTION
whitespace
REQUEST ON-LINE
whitespace
whitespace

Technical Support Forum

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
duyanhth  
#1 Posted : Wednesday, September 15, 2010 3:13:36 PM(UTC)
duyanhth
Rank: Member

Groups: Registered
Joined: 6/10/2010(UTC)
Posts: 14
Location: VietNam

Hi,

I found that the chart api has provided click-able feature however I can't make it work.
Could you please help me out.
Thanks a lot.

Here is my code snippet


chartView.setClickable(true);

chartView.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v)
{
Toast.makeText( getContext(),
getContext().getResources()
.getString( R.string.label_rotate_to_fulscreen )
+ "sfd", Toast.LENGTH_LONG).show();
}
});

chartView.getRootView().setClickable(true);

chartView.getRootView().setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
Toast.makeText(getContext(),
getContext().getResources()
.getString( R.string.label_rotate_to_fulscreen ), Toast.LENGTH_LONG).show();
}
});


Edited by moderator Wednesday, September 29, 2010 8:47:26 PM(UTC)  | Reason: Not specified

Baydalka Volodymyr  
#2 Posted : Monday, September 20, 2010 3:44:55 PM(UTC)
Baydalka Volodymyr
Rank: Member

Groups: Registered
Joined: 7/28/2009(UTC)
Posts: 447
Man

Hi,

Please, check next sample. It contains helper class OnPointClickListener that may be helpful for you.

Best regards,
File Attachment(s):
aiCharts.HitTestSampleV2.zip (15kb) downloaded 12 time(s).

You cannot view/download attachments. Try to login or register.
Volodymyr Baydalka
Andriod development and support team
duyanhth  
#3 Posted : Wednesday, September 29, 2010 1:00:28 PM(UTC)
duyanhth
Rank: Member

Groups: Registered
Joined: 6/10/2010(UTC)
Posts: 14
Location: VietNam

thanks, it helps.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Company | Services | Practices | Technologies | Career | Contacts | Privacy
© 2005-2017 ArtfulBits. All rights reserved.