Note that there are some explanatory texts on larger screens.

plurals
  1. POchange android label name and gravity in androidmanifestfile
    text
    copied!<p>Hi i have to developed one sample app.Here i wish to select the app name is Admin Login and gravity is center.here i have to run the app means the app name is diplayed successfully.but the gravity is not worked for me.here i wish to align the app name is center.how can i do.please give me solutions.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.androidlogin.ws" android:versionCode="1" android:versionName="1.0" &gt; &lt;uses-sdk android:minSdkVersion="8" /&gt; &lt;application android:icon="@drawable/ic_launcher" android:label="@string/app_name" &gt; &lt;activity android:name=".AndroidLoginExampleActivity" android:label="Admin Login" android:theme="@style/CustomTheme" android:gravity="center"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; &lt;/manifest&gt; </code></pre> <p><strong>Edit:</strong></p> <pre><code> &lt;style name="CustomWindowTitleBackground"&gt; &lt;item name="android:background"&gt;#093f7c&lt;/item&gt; &lt;item name="android:gravity"&gt;center&lt;/item&gt; &lt;/style&gt; &lt;style name="CustomTheme" parent="android:Theme"&gt; &lt;item name="android:windowTitleSize"&gt;35dip&lt;/item&gt; &lt;item name="android:windowTitleBackgroundStyle"&gt;@style/CustomWindowTitleBackground&lt;/item&gt; &lt;/style&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload