Android 在scrollview中动态添加ImgeButton
在我的应用程序中,我正在动态地在滚动视图中添加图像按钮。但是我无法查看我的图像按钮。有人能帮忙吗。 这是我的密码-- 这是我的活动_main.xmlAndroid 在scrollview中动态添加ImgeButton,android,scrollview,Android,Scrollview,在我的应用程序中,我正在动态地在滚动视图中添加图像按钮。但是我无法查看我的图像按钮。有人能帮忙吗。 这是我的密码-- 这是我的活动_main.xml <ScrollView android:id="@+id/scrollview" android:layout_width="match_parent" android:layout_height="match_parent" > <LinearLayout android:i
<ScrollView
android:id="@+id/scrollview"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:id="@+id/scrollinear"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFCC99"
android:orientation="vertical">
</LinearLayout>
</ScrollView>
更改此代码
scrollview=(ScrollView)v.findViewById(R.id.scrollview);
LinearLayout ll =( LinearLayout)v.findViewById(R.id.scrollinear);
scrollview=(ScrollView)v.findViewById(R.id.scrollview);
LinearLayout ll =( LinearLayout)v.findViewById(R.id.scrollinear);