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
Barthels  
#1 Posted : Friday, November 26, 2010 3:48:36 AM(UTC)
Barthels
Rank: Newbie

Groups: Registered
Joined: 8/11/2010(UTC)
Posts: 2
Location: Germany

Is it possible to place buttons in a chart (e.g. move forward and backward)?
Baydalka Volodymyr  
#2 Posted : Friday, November 26, 2010 3:44:19 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

ChartView class isn't derived from ViewGroup and can't contain inner views. However you may display buttons over ChartView in other ViewGroup.

Example XML :
Code:
	<RelativeLayout
		android:layout_width="fill_parent"
		android:layout_height="fill_parent">
		<com.artfulbits.aiCharts.ChartView
			android:id="@+id/chartView"
			android:layout_width="fill_parent"
			android:layout_height="fill_parent"/>
		<Button
			android:id="@+id/bttn_forward"
			android:text="Backward"
			android:layout_alignParentLeft="true"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"></Button>
		<Button
			android:id="@+id/bttn_backward"
			android:text="Forward"
			android:layout_alignParentRight="true"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"></Button>
	</RelativeLayout>


Best regards,

Edited by user Friday, November 26, 2010 3:45:21 PM(UTC)  | Reason: Not specified

Volodymyr Baydalka
Andriod development and support team
Barthels  
#3 Posted : Friday, November 26, 2010 3:57:43 PM(UTC)
Barthels
Rank: Newbie

Groups: Registered
Joined: 8/11/2010(UTC)
Posts: 2
Location: Germany

Hello Volodymyr,

thank you very much! I will try this.

Greetings!

Thomas
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-2017 ArtfulBits. All rights reserved.