Skip to content

Instantly share code, notes, and snippets.

@simrandotdev
Created January 4, 2020 04:07
Show Gist options
  • Select an option

  • Save simrandotdev/79c601dfc11aeaa026bbfccd2d992211 to your computer and use it in GitHub Desktop.

Select an option

Save simrandotdev/79c601dfc11aeaa026bbfccd2d992211 to your computer and use it in GitHub Desktop.
XML Properties in Android

Android Manifest

android:screenOrientation="portrait"

This property is used in AndroidManifest file inside the activity tag to fix the orientation of the activity at all times.

android:theme="@style/AppTheme.NoActionBar"

This property will set a custom theme to the app or the Activity it is applied to.

android:windowSoftInputMode="adjustResize"

This will adjust the window size when the keyboard appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment