And,actually what I want is :- If we press login button then it will luanch a login activity screen and that screen layout should be smaller then actual device size ,so login activity will appear something like alert at the center of the screen and we can see the top,bottom,left,right view part of activity that launches this login screen.
Find the attachment for clear view what I want
where home activity is the main activity where login button is present and on press of login button it will launch login screen something like alert at the center of the screen.
So, actually how to do this?
On Fri, Mar 25, 2011 at 12:44 AM, Cliff Davies <cliff.davies@gmail.com> wrote:
The way I go about this is to use a theme such as ---<style name="ModifiedDialog" parent="android:Theme.Dialog"><item name="android:windowNoTitle">true</item><item name="android:windowBackground">@color/transparent</item></style>Setting windowNoTitle prevents the dialog title from being displayed. Setting windowBackground to transparent stops the white border from being displayed around the dialog. Transparent is set in my colours.xml file as -<color name="transparent">#00000000</color>Then in your manifest file set the theme for your activity to @style/ModifiedDialogRegards,Cliff Davies
On Fri, Mar 25, 2011 at 8:28 AM, Deepak Kumar <deepak.kumar.jt@gmail.com> wrote:--Hi All,I am creating one login screen that should have to appear at the center of the screen(smaller in size as compared to actual device size eg:150*150 for dev size 320*480) .It will look something like alert dialog that have options for username textview & passwd textview & 2 buttons.But now I am using an activity & if I will give value for height & width as 150dip instead of fill_parent then it will reduce the size but I can't see the part of previous background activity screen & that area will appear as black.So,anyone can tell me what alternative I have to use? Or how to do this?Thanks,
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment