1

I have following transparent activity with linear layout:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:background="#80000000"
    android:layout_height="match_parent"
    android:orientation="vertical" >
</LinearLayout>

I would like to create layout like this (Yes, i know that background is from iOS device, but does not matter in this case) It means, how to style content of the activity, "modal window" to be centered, to have margins, icons, etc:

enter image description here

Could somebody tell me how i should easy and effectively style layout like this?

Many Thanks for any advice.

redrom
  • 11,502
  • 31
  • 157
  • 264
  • 1
    Create a transparent `Activity` and show whatever you want in it: http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android/2700683#2700683 – M-Wajeeh Jan 07 '15 at 07:19
  • Yes, i have transparent activity already created, but i asked about how to style content of the activity, it means. "modal window" to be centered, to have margins, etc.. – redrom Jan 07 '15 at 07:26
  • Just design your layout and then put it inside a `FrameLayout` with your margins. e.g. ` ` – M-Wajeeh Jan 07 '15 at 07:34
  • And included layout modal_dialog inside is FrameLaout, Linear layout or what? – redrom Jan 07 '15 at 08:09

0 Answers0