activity_main
<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:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="httpconnext.bw.com.yuekao.MainActivity">
<LinearLayout
android:background="#66b3ff"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:background="@drawable/jb"
android:id="@+id/my_touxiang"
android:layout_width="50dp"
android:layout_height="50dp" />
<TextView
android:textColor="#F3F3FA"
android:gravity="center"
android:textSize="20dp"
android:text="报纸版面"
android:layout_marginLeft="60dp"
android:id="@+id/my_title1"
android:layout_width="wrap_content"
android:layout_height="50dp" />
<TextView
android:textColor="#F3F3FA"
android:gravity="center"
android:textSize="20dp"
android:text="报纸版面"
android:layout_marginLeft="30dp"
android:id="@+id/my_title2"
android:layout_width="wrap_content"
android:layout_height="50dp" />
</LinearLayout>
<FrameLayout
android:id="@+id/my_frame_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"></FrameLayout>
</LinearLayout>
child_layout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_margin="20dp"
android:textSize="20dp"
android:id="@+id/my_text_child"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
father_layout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_marginLeft="20dp"
android:layout_margin="20dp"
android:textSize="30dp"
android:id="@+id/my_text_father"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
list_layout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:gravity="center"
android:textSize="16dp"
android:layout_margin="20dp"
android:id="@+id/my_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
mulv_layout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="#930093"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:textColor="#ca8eff"
android:textSize="20dp"
android:text="2017年08月30日 星期三"
android:gravity="left"
android:layout_margin="5dp"
android:id="@+id/my_text_date"
android:layout_weight="8"
android:layout_width="0dp"
android:layout_height="wrap_content" />
<TextView
android:textColor="#66b3ff"
android:textSize="20dp"
android:text="目录导航"
android:gravity="right"
android:layout_margin="5dp"
android:id="@+id/my_text_list"
android:layout_weight="2"
android:layout_width="0dp"
android:layout_height="wrap_content" />
</LinearLayout>
<ExpandableListView
android:id="@+id/my_expandable_listview"
android:layout_width="match_parent"
android:layout_height="match_parent"></ExpandableListView>
</LinearLayout>
news_layout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.stx.xhb.xbanner.XBanner
android:id="@+id/my_xbanner"
android:layout_width="match_parent"
android:layout_height="match_parent"></com.stx.xhb.xbanner.XBanner>
</LinearLayout>
pop_layout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/my_pop"
android:background="#E6cAff"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:id="@+id/my_list_view"
android:layout_width="match_parent"
android:layout_height="match_parent"></ListView>
</LinearLayout>