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