main1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:background="@drawable/splash" android:layout_width="match_parent" android:orientation="vertical" android:layout_height="match_parent" tools:context="com.example.hello.myappzuoye20171024.MainActivity"> <TextView android:id="@+id/itme" android:textColor="#fff" android:layout_width="wrap_content" android:paddingTop="8dp" android:paddingRight="23dp" android:textSize="30dp" android:layout_gravity="right" android:layout_height="wrap_content" android:text="3" /> </LinearLayout> +++++++++++++++++++++++++++++++++++++++++++++++++++++++ main2<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:id="@+id/drawer_layout" android:layout_height="match_parent" tools:context="com.example.hello.myappzuoye20171024.Main2Activity"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/frame_layout" android:layout_above="@+id/radio_group" > </FrameLayout> <RadioGroup android:id="@+id/radio_group" android:layout_alignParentBottom="true" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="40dp" > <RadioButton android:id="@+id/rb1" android:button="@null" android:gravity="center" android:clickable="true" android:padding="10dp" android:background="@drawable/radio_selector" android:layout_width="wrap_content" android:layout_weight="1" android:layout_height="match_parent" /> <RadioButton android:id="@+id/rb2" android:button="@null" android:gravity="center" android:clickable="true" android:padding="10dp" android:background="@drawable/radio_selector2" android:layout_width="wrap_content" android:layout_weight="1" android:layout_height="match_parent" /> <RadioButton android:id="@+id/rb3" android:button="@null" android:gravity="center" android:clickable="true" android:padding="10dp" android:background="@drawable/radio_selector3" android:layout_width="wrap_content" android:layout_weight="1" android:layout_height="match_parent" /> <RadioButton android:id="@+id/rb4" android:button="@null" android:gravity="center" android:clickable="true" android:padding="10dp" android:background="@drawable/radio_selector3" android:layout_width="wrap_content" android:layout_weight="1" android:layout_height="match_parent" /> </RadioGroup> </RelativeLayout> <RelativeLayout android:background="#ffffff" android:id="@+id/drawer_relative" android:layout_gravity="left" android:layout_width="200dp" android:layout_height="match_parent"> <ImageView android:id="@+id/image_touxiang" android:layout_centerHorizontal="true" android:layout_margin="10dp" android:src="@mipmap/ic_launcher" android:layout_width="80dp" android:layout_height="80dp" /> <TextView android:layout_marginTop="80dp" android:layout_width="match_parent" android:layout_height="40dp" android:text="客服热线"/> <TextView android:id="@+id/qq" android:layout_marginTop="120dp" android:layout_width="match_parent" android:layout_height="40dp" android:text="QQ登录"/> <TextView android:id="@+id/wx" android:layout_marginTop="160dp" android:layout_width="match_parent" android:layout_height="40dp" android:text="微信登录"/> <TextView android:id="@+id/wb" android:layout_marginTop="200dp" android:layout_width="match_parent" android:layout_height="40dp" android:text="微博登陆"/> </RelativeLayout> </android.support.v4.widget.DrawerLayout>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
home<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_height="match_parent"> <android.support.design.widget.TabLayout android:id="@+id/tab" app:tabGravity="center" app:tabIndicatorColor="@color/colorAccent" app:tabMode="scrollable" app:tabSelectedTextColor="@color/colorPrimaryDark" app:tabTextColor="@color/colorPrimary" android:layout_width="match_parent" android:layout_height="40dp"> </android.support.design.widget.TabLayout> <android.support.v4.view.ViewPager android:id="@+id/view_pager" android:layout_width="match_parent" android:layout_height="match_parent" > </android.support.v4.view.ViewPager> </LinearLayout>++++++++++++++++++++++++++++++++++++++++++++++++++++++++
redian<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="#f89" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <com.handmark.pulltorefresh.library.PullToRefreshListView xmlns:ptr="http://schemas.android.com/apk/res-auto" android:layout_height="match_parent" android:layout_width="match_parent" android:id="@+id/redian_list_view" ptr:ptrDrawable="@drawable/default_ptr_flip" ptr:ptrAnimationStyle="flip" ptr:ptrHeaderBackground="#383838" ptr:ptrHeaderTextColor="#FFFFFF" > </com.handmark.pulltorefresh.library.PullToRefreshListView> </LinearLayout>+++++++++++++++++++++++++++++++++++++++++++++++++
tuijian<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <com.handmark.pulltorefresh.library.PullToRefreshListView xmlns:ptr="http://schemas.android.com/apk/res-auto" android:layout_height="match_parent" android:layout_width="match_parent" android:id="@+id/tuijian_list_view" ptr:ptrDrawable="@drawable/default_ptr_flip" ptr:ptrAnimationStyle="flip" ptr:ptrHeaderBackground="#383838" ptr:ptrHeaderTextColor="#FFFFFF" > </com.handmark.pulltorefresh.library.PullToRefreshListView> </LinearLayout> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ xiaoxi<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:background="#a76" android:layout_width="match_parent" android:layout_height="match_parent"> <com.handmark.pulltorefresh.library.PullToRefreshGridView xmlns:ptr="http://schemas.android.com/apk/res-auto" android:layout_height="match_parent" android:layout_width="match_parent" android:numColumns="2" android:id="@+id/refresh_grid_view" ptr:ptrDrawable="@drawable/default_ptr_flip" ptr:ptrAnimationStyle="flip" ptr:ptrHeaderBackground="#383838" ptr:ptrHeaderTextColor="#FFFFFF" > </com.handmark.pulltorefresh.library.PullToRefreshGridView> </LinearLayout>++++++++++++++++++++++++++++++++++++++++++++++++
xiazai<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:background="#c66" android:layout_width="match_parent" android:layout_height="match_parent"> <com.handmark.pulltorefresh.library.PullToRefreshScrollView xmlns:ptr="http://schemas.android.com/apk/res-auto" android:id="@+id/refresh2_scroll_view" android:layout_width="match_parent" android:layout_height="match_parent" ptr:ptrAnimationStyle="flip" ptr:ptrDrawable="@drawable/default_ptr_flip" ptr:ptrHeaderBackground="#383838" ptr:ptrHeaderTextColor="#FFFFFF"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <android.support.v4.view.ViewPager android:id="@+id/image_view_pager" android:layout_width="match_parent" android:layout_height="200dp"> </android.support.v4.view.ViewPager> <com.example.hello.myappzuoye20171024.util.MyGridView android:id="@+id/scroll_list_gview" android:numColumns="2" android:layout_width="match_parent" android:layout_height="match_parent"> </com.example.hello.myappzuoye20171024.util.MyGridView> </LinearLayout> </com.handmark.pulltorefresh.library.PullToRefreshScrollView> </LinearLayout>+++++++++++++++++++++++++++++++++++++++++++++++++++++
beijing<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="#a87" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> </LinearLayout>
跳转+侧拉+多条目+gridview+viewpager
最新推荐文章于 2021-09-23 22:57:12 发布