학교 프로젝트 용 Android 애플리케이션 (API 19)을 제작 중이며 앱 본문 상단이 제목으로 막혀 있습니다. this picture에서 내가하려는 일을 볼 수 있습니다. 제목을 모두 없애는 것도 바람직 할 수 있습니다. (android : theme = "@ android : style/Theme.Black.NoTitleBar"은 효과가없는 것 같습니다.제목이 Android 앱의 기본 애플리케이션 본문과 겹칩니다.
여기 내 코드입니다 :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:background="#707070"
android:orientation="vertical"
android:theme="@android:style/Theme.Black.NoTitleBar"
tools:context=".FullscreenActivity" >
<!-- this is here only to display the first line correctly (zero container)-->
<LinearLayout
android:layout_width="match_parent"
android:gravity="right"
android:layout_height="50dp" >
<!--some functionality was necessary to avoid warnings-->
<TextClock
android:id="@+id/textClock1"
android:layout_gravity="right|center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/textClock" />
</LinearLayout>
<!-- this is the first container -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp" >
<!-- this is the heart rate interval progress bar -->
<ProgressBar
android:id="@+id/progressBar1"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1.06" />
<!-- this is a blue heart icon -->
<ImageButton
android:contentDescription="@string/heartIcon"
android:id="@+id/imageButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/button_heart_blue" />
</LinearLayout>
<!-- code omitted -->
</LinearLayout>
나는 "솔루션"행복하지 않다 나는 함께했다. 이 기능을 코딩하는 더 깨끗한 방법이 있습니까?
나는 어떤 도움을 주셔서 감사합니다! 고맙습니다!
내 대답을 확인했습니다 – kId
네, 효과가 있습니다! 감사! – GiannisKuopio