The dim value is defined as com.android.internal.R.dimen.navigation_bar_height.
final int naviHeight = mContext.getResources().getDimensionPixelSize(
com.android.internal.R.dimen.navigation_bar_height);
Thursday, April 24, 2014
Monday, April 14, 2014
How to exclude activity from recent application list on Android
To forbidden your activity in the recent application list, just define this parameter in AndroidManifest.xml for the activity:
for example:
<activity
android:name="com.test.MainActivity"
android:noHistory="true"
android:screenOrientation="portrait"
android:excludeFromRecents="true"
android:label="@string/app_name">
......
</activity>
android:excludeFromRecents="true"
for example:
<activity
android:name="com.test.MainActivity"
android:noHistory="true"
android:screenOrientation="portrait"
android:excludeFromRecents="true"
android:label="@string/app_name">
......
</activity>
Subscribe to:
Posts (Atom)
Enable HP Zbook Thunderbolt 3 Dock on Ubuntu
As mention in previously post, I installed Ubuntu on my HP ZBook. After two days used all things work just fine, but the Thunderbolt 3 Dock ...
-
As mention in previously post, I installed Ubuntu on my HP ZBook. After two days used all things work just fine, but the Thunderbolt 3 Dock ...
-
To create a button in Android app like this: The layout XML: <Button android:layout_width="match_parent" andro...
-
Recently I tried to setup and build react-native app (mostly for Android), behind a proxy server. To pass the gradle build, need set proxy c...