0
이미지와 같이 카테고리를 표시해야합니다. 화면에 3 개의 옵션이있는 가로 스크롤보기
가로로 스크롤해야하며 카테고리가 중간에 오면 이벤트가 발생해야합니다.
뷰 페이지가 없어도 필요합니다.
감사합니다.
이미지와 같이 카테고리를 표시해야합니다. 화면에 3 개의 옵션이있는 가로 스크롤보기
가로로 스크롤해야하며 카테고리가 중간에 오면 이벤트가 발생해야합니다.
뷰 페이지가 없어도 필요합니다.
감사합니다.
사용 다음 레이아웃은 응용 프로그램
<HorizontalScrollView android:id="@+id/hsv" android:background="@null" android:visibility="visible" android:scrollbars="none" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:background="@null" android:layout_width="fill_parent" android:layout_height="wrap_content">
<Textview android:id="@+id/about" android:text="POPULARITY" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<Textview android:id="@+id/color"
android:clickable="true" android:text="NEW ARRIVAL" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<Textview android:id="@+id/kids" android:text="DISCOUNTED" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</HorizontalScrollView>
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="POPULARITY"
android:padding="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="NEW ARRIVAL"
android:padding="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="DISCOUNTED"
android:padding="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="LOW PRICE"
android:padding="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="LOW PRICE"
android:padding="10dp"/>
</LinearLayout>
</HorizontalScrollView>
당신은 수평 스크롤이 사용할 수 유용 할 수있다.
자세히 알아보기 - http://viewpagerindicator.com/