activity_banner
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <com.youth.banner.Banner android:id="@+id/banner" android:layout_width="match_parent" android:layout_height="160dp"> </com.youth.banner.Banner> </LinearLayout>antivity
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="com.bwie.action.banner.MainActivity"> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:background="@mipmap/a" /> <TextView android:id="@+id/activity_main_time" android:layout_margin="20dp" android:textColor="#0080ff" android:textSize="25sp" android:layout_alignParentRight="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="11" /> </RelativeLayout>activity_second
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <me.maxwin.view.XListView android:id="@+id/xlistview" android:layout_width="match_parent" android:layout_height="match_parent" android:divider="#0080ff" android:dividerHeight="6dp" > </me.maxwin.view.XListView> </LinearLayout>list_item
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:textColor="#0080ff" android:textSize="25sp" android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <ImageView android:id="@+id/img" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout>list_item02
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="20dp" > <TextView android:textSize="25sp" android:text="11" android:id="@+id/listview_item2_title" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <TextView android:textSize="25sp" android:text="11" android:id="@+id/listview_item2_end_at" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout>