最近做一个项目,类似于去哪儿的一个界面,
他的HorizontalScrollView在滑动中右边并没有滑动,我认为在右边应该就是有个imageview。但是按照我的想法做下来是这样我的部分布局如下 <LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<ImageView
android:id="@+id/testy_1"
android:layout_width="25px"
android:layout_height="match_parent"
/>
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/testy_img"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
</HorizontalScrollView>
<ImageView
android:id="@+id/testy_2"
android:layout_width="40px"
android:layout_height="match_parent"
/>
</LinearLayout>左边的ImageView有,右边无。请问像去哪儿那样的应该如何实现
他的HorizontalScrollView在滑动中右边并没有滑动,我认为在右边应该就是有个imageview。但是按照我的想法做下来是这样我的部分布局如下 <LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<ImageView
android:id="@+id/testy_1"
android:layout_width="25px"
android:layout_height="match_parent"
/>
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/testy_img"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
</HorizontalScrollView>
<ImageView
android:id="@+id/testy_2"
android:layout_width="40px"
android:layout_height="match_parent"
/>
</LinearLayout>左边的ImageView有,右边无。请问像去哪儿那样的应该如何实现
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货