put the different xml files to different
directory: layout or layout-land

or
this.getResource().getConfiguration.orientation== ....

On Feb 16, 3:15 pm, Gulfam <[email protected]> wrote:
> Hi all,
>
>     I have two splash screens for my android app one for horizontal
> and second for vertical
> and also have two xml layout file like h_splash.xml and second is
> v_splash.
>
> and i want to show these file like this in my code
>
> if(horizontal or event which for horizontal )
> {
>   setContentView(R.layout.h_splash)}
>
> else
> {
>   setContentView(R.layout.v_splash)
>
> }
>
> issue is this how i can get horizontal and vertical event in my code?
> On the base of that event i want to show my splash.
>  i have used also getOrientation()or like this method in my code but
> it give same value on both horizontal and vertical.
> any one can help ragarding this.
>
> Thanks and Regards,
> Gulfam Hassan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to