- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
If you want to show your user a tutorial screen, you can do it like this:
1. Create a xml file, and then call it from Activity.
When you call this Activity from another one.
it shows overlap on the another one.
Code:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".Tutorial_Activity"
android:background="#000"
android:alpha="0.5">
-----------------
---------------------
</RelativeLayout>
In AndroidManifest,xml
<activity
android:name="----------------"
android:theme="@android:style/Theme.Translucent.NoTitleBar">
</activity>
1. Create a xml file, and then call it from Activity.
When you call this Activity from another one.
it shows overlap on the another one.
Code:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".Tutorial_Activity"
android:background="#000"
android:alpha="0.5">
-----------------
---------------------
</RelativeLayout>
In AndroidManifest,xml
<activity
android:name="----------------"
android:theme="@android:style/Theme.Translucent.NoTitleBar">
</activity>
- Get link
- X
- Other Apps
Comments
Post a Comment