2016-06-24 3 views
0

問題があります。私はactivityを持っていて、私はdialogとして写真を見せています。 アクティビティにはダイアログとして表示されるツールバーがあります

This image.

はこの絵では、私が思う小さな黒い toolbarは、どのようにそれを削除する必要が dialogあります。

私はこれはマニフェストファイルである

style name="MyAlertDialogStyle" parent="Theme.AppCompat.Dialog.Alert" 

活動のために、このスタイルを使用

:これを試してみてください

<?xml version="1.0" encoding="utf-8"?> 

<application 
    android:allowBackup="true" 
    android:icon="@mipmap/ic_launcher" 
    android:label="@string/app_name" 
    android:supportsRtl="true" 
    android:theme="@style/AppTheme" > 
    <activity android:name=".MainActivity" 
       android:configChanges="orientation|screenSize"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 

    /////////////// 
    <activity android:name=".Activity2" 
     /> 

    ////////////////////////////// 
    <activity android:name=".events.Wedding_Ceremony"/> 

    ///////////////// 

    <activity android:name=".events.GalleryView"/> 
    ///////////////////// 

    <activity android:name=".events.SingleViewActivity"/> 

    ///////////// this is my Dialog 
    <activity android:name=".downloadDialog.MainDialog" 
     android:theme="@style/Theme.AppCompat.Dialog.Alert" 
     /> 
</application> 

答えて

0

<style name="MyAlertDialogStyle" parent="Theme.AppCompat.Dialog.Alert"> 
    <item name="windowNoTitle">true</item> 
    <item name="windowActionBar">false</item> 
</style> 

あなたのスタイルファイルを参照する必要があります:reply.butため

<activity android:name=".downloadDialog.MainDialog" 
    android:theme="@style/MyAlertDialogStyle" 
/> 
+0

thnkxそれが問題を解決していませんでした。 –

+0

更新プログラムを試すと、windowNoTitleはAppCompatActivity – lubilis

+0

で動作するはずです。マニフェストファイル –

関連する問題