Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

[Help] Making an android app in full screen

Status
Not open for further replies.

ChiefBoy

Proficient
Advanced Member
Messages
265
Reaction score
0
Points
26
So I have another problem. Di pa ako makalayo layo dahil sa mga issue. :slap:

So meron akong book na sinusundan about learning android dev. Doon sa book meron part na maglalandscape at fullscreen yung app and the code looks like this.
Code:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:screenOrientation="landscape"
Bale sa AndroidManifest.xml daw yan. Ngayon ang problema the program when build ay success nama. na install narin sa phone. Pero ng nagrun, "Oh! my gulay", nagcrash. Kaya sinubukan ko remedyohan. Kapag niremove ko yung first line. So ganito na lang natira.
Code:
android:screenOrientation="landscape"
It runs sucessfully. kaya lang nakalandscape lang yung app at di full screen. :slap:

So papaano ko kaya magagawang fullscreen din yung app habang nakalandscape. BTW the book is a little bit old na.

- - - Updated - - -

Na solved ko na siya. Dito ko nakuha yung idea. https://stackoverflow.com/questions/5752619/about-the-full-screen-and-no-titlebar-from-manifest

Instead of adding
Code:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:screenOrientation="landscape"
to AndroidManifest.xml e ganito na lang nilagay ko.
Code:
android:screenOrientation="landscape"
Then saka ko enedit yung styles.xml. naglagay ako ng ganito
Code:
<item name="android:windowNoTitle">true</item>
        <item name="android:windowFullscreen">true</item>
Saka ko pinalitan itong line na ito.
Code:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
to
Code:
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
para mawala yung action bar sa tuktok. At pwesto nag full screen na siya na nakalandscape. :thumbsup:
 
Status
Not open for further replies.
Back
Top Bottom