Java 具有以下文本的视图翻转器
我有以下xml布局:Java 具有以下文本的视图翻转器,java,android,Java,Android,我有以下xml布局: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:weightSum="1" android
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="1"
android:orientation="vertical" >
<ViewFlipper
android:id="@+id/viewFlipper1"
android:layout_width="match_parent"
android:layout_height="150dp" >
</ViewFlipper>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView" />
</LinearLayout>
在我的java类中,我在ViewFlipper中加载在线图像,并开始制作动画。重点是,我还希望两个文本视图与ViewFlipper向左滑动一起设置动画,条件是它们仍在ViewFlipper下方
有什么帮助吗?请将该文本包装在viewflipper中,因为viewflipper是ViewGroups的子对象。包装viewflipper中的文本将使他在旁边滑动。我希望文本保持在viewflipper下,同时在viewflipper内滑动使用linearlayout