【发布时间】:2016-08-29 09:13:47
【问题描述】:
我在自定义的谷歌信息窗口中有一个 Textview。
在文本视图中添加选取框
<TextView
android:id="@+id/scroll"
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" />
还添加了 setSelected 来滚动。
View v = LayoutInflater.from( getActivity() ).inflate( R.layout.view_info_window, null );
TextView scroll = (TextView) v.findViewById( R.id.scroll );
scroll.setSelected(true);
但文本没有在信息窗口中滚动。请帮忙
【问题讨论】:
标签: android google-maps infowindow