I work in an Android application and I made the action transparent by applying a style in the manifest file. But after applying this screen, my layout seems to be cut left and right and seems to show only in the center.
In the emulator, this looks fine, but in ma android device (ICS) it only appears in the middle. Please help me. Thanks in advance.
My theme style:
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.Transparent" parent="android:Theme"> <item name="android:windowIsTranslucent">true</item> <item name="android:windowBackground">@android:color/transparent</item> <item name="android:windowContentOverlay">@null</item> <item name="android:windowNoTitle">true</item> <item name="android:windowIsFloating">true</item> <item name="android:backgroundDimEnabled">false</item> </style> </resources>
Manifest file:
<activity android:name=".SharescreenActivity" android:theme="@style/Theme.Transparent" android:screenOrientation="landscape" > </activity>
source share