Android实现标题显示隐藏功能

2019-12-10 19:05:36王旭

布局

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:layout_width="match_parent"
 android:layout_height="match_parent"
 android:orientation="vertical"
 xmlns:android="http://www.easck.com/apk/res/android">
 <RelativeLayout
 android:id="@+id/id_title"
 android:background="#00ccff"
 android:layout_width="match_parent"
 android:layout_height="40dp">
 <TextView
 android:text="Ace "
 android:layout_centerInParent="true"
 android:textSize="22sp"
 android:textColor="#ffffff"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content" />
 </RelativeLayout>
 <ListView
 android:id="@+id/id_lv"
 android:layout_width="match_parent"
 android:layout_height="match_parent"/>


</RelativeLayout>

希望本文所述对大家学习Android软件编程有所帮助。



注:相关教程知识阅读请移步到Android开发频道。