<?xml version="1.0" encoding="utf-8"?> <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:layout_width="match_parent" android:layout_height="match_parent" tools:context="androidpermission.com.bw.test.day0630.MainActivity" android:orientation="vertical" > <LinearLayout android:background="#28B8F7" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <RadioGroup android:layout_width="match_parent" android:layout_height="50dp" android:id="@+id/rg" android:orientation="horizontal" android:gravity="center_horizontal" android:padding="10dp" > <ImageButton android:layout_marginRight="50dp" android:layout_width="30dp" android:layout_height="30dp" android:id="@+id/iv1" android:src="@mipmap/ic_launcher" /> <RadioButton android:id="@+id/rb1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" android:text="报纸版面" android:textSize="25dp" /> <RadioButton android:id="@+id/rb2" android:layout_marginLeft="20dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" android:text="本期目录" android:textSize="25dp" /> <ImageButton android:layout_marginLeft="50dp" android:layout_width="30dp" android:layout_height="30dp" android:id="@+id/iv2" android:src="@mipmap/ic_launcher" /> </RadioGroup> </LinearLayout> <android.support.v4.view.ViewPager android:id="@+id/view_pager" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@+id/group" /> </LinearLayout>
布局文件
最新推荐文章于 2024-04-29 16:31:42 发布