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 Search | Active Topics | Log In | Register

Set chart clickable Options · View
duyanhth
#1 Posted : Wednesday, September 15, 2010 1:13:36 PM
Rank: Member

Groups: Registered

Joined: 6/10/2010
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();
}
});



Baydalka Volodymyr
#2 Posted : Monday, September 20, 2010 1:44:55 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
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).
Volodymyr Baydalka
Andriod development and support team
duyanhth
#3 Posted : Wednesday, September 29, 2010 11:00:28 AM
Rank: Member

Groups: Registered

Joined: 6/10/2010
Posts: 14
Location: VietNam
thanks, it helps.
Users browsing this topic
Guest
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-2016 ArtfulBits. All rights reserved.