0
我在对话框片段的创建对话框方法中创建了一个警告对话框。我正在使用阵列适配器填充警报对话框。我的问题是警报对话框大小取决于适配器中的文本。我想要以默认大小修复警报对话框。请帮助。警报对话框的大小因列表视图而异
我在对话框片段的创建对话框方法中创建了一个警告对话框。我正在使用阵列适配器填充警报对话框。我的问题是警报对话框大小取决于适配器中的文本。我想要以默认大小修复警报对话框。请帮助。警报对话框的大小因列表视图而异
place the textview in scrollview with fixed height.
they are two methods to do that
1)by using the ScrollView
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res /android">
<ScrollView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_weight="1">
<TextView android:id="@+id/TextView01" android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Venkata Reddy,"
</ScrollView>
</LinearLayout>
2方法
<TextView
android:text="Single-line text view that scrolls automatically if the text is too long to fit in the widget"
android:singleLine="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit ="marquee_forever"
android:focusable="true"
android:focusableInTouchMode="true"
android:scrollHorizontally="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
使用的方法中的任一项...