버튼을보기 위해 androidplot을 함께 스크롤 뷰에 넣을 수없는 것 같습니다. androidplot 0.9.8을 사용하고 있습니다.스크롤 뷰에 버튼과 androidplot 추가하기
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:ap="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="example.example.MainActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/plotLayout">
<com.androidplot.xy.XYPlot
android:id="@+id/plot"
android:layout_width="match_parent"
android:layout_height="match_parent"
ap:Label="test"
ap:domainLabel="test"
ap:rangeLabel="test"
ap:renderMode="use_main_thread"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_below="@id/plot">
<Button
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="test"/>
<Button
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="test"/>
</LinearLayout>
</RelativeLayout>
</ScrollView>
편집 : 그것은 내가 (androidplot에 대한 특정 높이를 지정할 때 그러나 보인다 예를 들어 안드로이드 : = "가 600dp"대신 안드로이드의 layout_height : layout_height = 여기
내 XML 파일입니다 "match_parent") 잘 스크롤됩니다. 왜 match_parent를 사용하면 스크롤하는 것을 막을 수 있습니까?
RelativeView가 제대로 닫히지 않았습니다. –
죄송합니다. 오타입니다. 여전히 동일한 문제가 발생했습니다 –