다른 게시물을 찾아 다니며 계속해서 바닥 글을 화면에 표시하려고합니다.Android - 간단한 바닥 글을 추가하는 방법은 무엇인가요?
하지만 모든 페이지에 꼬리말을 표시하고 싶습니다. 일부 페이지에는 스크롤 기능이 없지만 일부 기능은 스크롤 기능이 있습니다. 스크롤이있을 때마다 스크롤 바 아래에 꼬리말을 표시하고 싶습니다. 어떻게 할 수 있습니까? 예를 들어
,이 페이지가있는 경우 :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:id="@+id/page_exlain"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Some text that either extends far down or is pretty short."
android:layout_marginTop ="20dp"
/>
</LinearLayout>
</ScrollView>
</LinearLayout>
반드시 배 이상 나타나지 않도록이에 바닥 글을 추가하는 좋은 방법은 무엇입니까?
감사합니다.
+1 ... 앱 구조에 따라이 모든 것을 기본 활동으로 추상화하고 일반 '기본'레이아웃 파일에 콘텐츠를 추가하는 보호 된 메소드를 만드는 것이 좋습니다. 이렇게하면 향후 모든 활동이 setContentView()만큼 쉽게 채워집니다. – Phix