人的一生,没有一味的苦,没有永远的痛;没有迈不过的坎,没有闯不过的关。
这是在浏览一篇博客时看到的,感觉很励志,就拿来跟大家共勉。
下面是主界面main_index.xml布局文件:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
>
</android.support.v4.view.ViewPager>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/gray"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
>
<LinearLayout
android:id="@+id/ll_contact"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center_horizontal"
>
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginTop="2dp"
android:src="@drawable/contact"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/contact"
/>
</LinearLayout>
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:background="@color/gray"
/>
<LinearLayout
android:id="@+id/ll_project"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_paren

这篇博客分享了如何在项目中综合使用ViewPager、Fragment和ListView。作者提到在布局文件main_index.xml中应用了这些组件,并指出使用FragmentActivity作为基类。尽管Fragment布局仅包含一个简单的ListView,但文中表达了作者对技术学习的热情,欢迎读者提出建议和指正。
最低0.47元/天 解锁文章
1190

被折叠的 条评论
为什么被折叠?



