0
这是我abc.xml在我使用的是相对布局内滚动型父布局,我用fillviewport和滚动条的参数很多次,但它不工作...ScrollView内相对布局不工作...!
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:scrollbars="none">
<RelativeLayout
android:id="@+id/SU_user_detail_parent_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/custom_background">
<More Components here..../>
</RelativeLayout>
</ScrollView>
这是我如何实现这...
AlertDialog.Builder alertBuilder = new AlertDialog.Builder(SelectorActivity.this);
View view = LayoutInflater.from(SelectorActivity.this).inflate(R.layout.abc, null);
alertBuilder.setView(view);
AlertDialog d = alertBuilder.create();
d.show();
什么不起作用? –
ScrollView无法正常工作... –
您是否尝试过在活动中实现此布局,如果不善于执行调试目的... – Jeevanandhan