actvitiy_main:

<LinearLayout xmlns:andro >

 

<android.support.v4.view.ViewPager
android:

<include layout="@layout/button" />

</LinearLayout>

button:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:andro />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="主页"
/>
</LinearLayout>

<LinearLayout
android: >

<ImageButton
android: />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="游戏"
/>
</LinearLayout>

<LinearLayout
android: >

<ImageButton
android: />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="设置"
/>
</LinearLayout>

<LinearLayout
android: >

<ImageButton
android: />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="关于"
/>
</LinearLayout>

</LinearLayout>

fragment_main:

<RelativeLayout xmlns:andro >

 

</RelativeLayout>

operashscreen:

 

<RelativeLayout xmlns:andro >

 

<Button
android: />

<Button
android: />

<Button
android: />

<TextView
android: />

<EditText
android: >

<requestFocus />
</EditText>

<EditText
android: />

<EditText
android: />

<Chronometer
android: />

</RelativeLayout>

 

 

<!--
android:gravity是对元素本身说的,元素本身的文本显示在什么地方靠着换个属性设置,不过不设置默认是在左侧的。
android:layout_gravity是相对与它的父元素说的,说明元素显示在父元素的什么位置
-->
<LinearLayout android:>
</TextView>
</LinearLayout>

 

 

tab01:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:andro >


<ImageButton
android: />

</LinearLayout>

 

 

tab02:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:andro
/>

</LinearLayout>

 

tab03:

 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:andro
/>

</LinearLayout>

 

 

tab04:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:andro
/>

</LinearLayout>

 

相关文章:

  • 2021-05-31
  • 2021-05-08
  • 2021-05-12
  • 2022-02-16
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-25
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案