いつもお世話になっています
今回はAndroidStudioを使ったアプリ開発を行っています
そこでAndroidアプリのウィンドウ上部に出るタイトルバーを消したいのですがうまく行きません
一応検索をかけて調べても見て試したのですがだめでした
何か足りない部分があれば教えてください
以下ソースです
AndroidManifest
xml
1<?xml version="1.0" encoding="utf-8"?> 2<manifest xmlns:android="http://schemas.android.com/apk/res/android" 3 package="com.github.tumizuki.jinrotool"> 4 5 <application 6 android:allowBackup="true" 7 android:icon="@mipmap/ic_launcher" 8 android:label="@string/app_name" 9 android:supportsRtl="true" 10 android:theme="@style/AppTheme"> 11 <activity 12 android:name=".SetPosition" 13 android:theme="@android:style/Theme.Translucent.NoTitleBar"> 14 <intent-filter> 15 <action android:name="android.intent.action.MAIN"></action> 16 <category android:name="android.intent.category.LAUNCHER"></category> 17 </intent-filter> 18 </activity> 19 </application> 20 21</manifest>
activity_set_position
xml
1<?xml version="1.0" encoding="utf-8"?> 2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:tools="http://schemas.android.com/tools" 4 android:id="@+id/activity_set_position" 5 android:layout_width="match_parent" 6 android:layout_height="match_parent" 7 android:paddingBottom="@dimen/activity_vertical_margin" 8 android:paddingLeft="@dimen/activity_horizontal_margin" 9 android:paddingRight="@dimen/activity_horizontal_margin" 10 android:paddingTop="@dimen/activity_vertical_margin" 11 tools:context="com.github.tumizuki.jinrotool.SetPosition"> 12</RelativeLayout>
SetPosition
java
1package com.github.tumizuki.jinrotool; 2 3import android.app.Activity; 4import android.os.Bundle; 5 6public class SetPosition extends Activity { 7 8 @Override 9 protected void onCreate(Bundle savedInstanceState) { 10 super.onCreate(savedInstanceState); 11 setContentView(R.layout.activity_set_position); 12 } 13}
よろしくお願いします
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。