<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:id="@+id/
topPanel" android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="14px"
android:layout_marginRight="14px">
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5px"
android:layout_marginTop="5px"
android:layout_marginRight="5px"
android:layout_marginBottom="5px">
<ImageView android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</ImageView>
<TextView
android:layout_gravity="center_vertical" android:id="@+id/
alertTitle" android:layout_width="fill_parent"
android:layout_height="wrap_content" :style="?android:attr/
textAppearanceMedium">
</TextView>
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@+id/
contentPanel" android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="14px"
android:layout_marginRight="14px">
<ScrollView android:id="@+id/scrollView"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView android:id="@+id/message"
android:padding="5px"
android:layout_width="fill_parent"
android:layout_height="wrap_content" :style="?android:attr/
textAppearanceMedium">
</TextView>
</ScrollView>
</LinearLayout>
<RelativeLayout android:id="@+id/buttonPanel"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="14px"
android:layout_marginRight="14px">
<LinearLayout android:orientation="vertical"
android:id="@+id/separatorBottom"
android:background="@drawable/divider_horizontal_bright"
android:layout_width="fill_parent"
android:layout_height="1px" android:layout_marginBottom="2px">
</LinearLayout>
<Button android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_below="@id/
separatorBottom" android:layout_alignParentLeft="true">
</Button>
<Button android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_below="@id/
separatorBottom" android:layout_centerHorizontal="true">
</Button>
<Button android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_below="@id/
separatorBottom" android:layout_alignParentRight="true">
</Button>
</RelativeLayout>
</LinearLayout>
On Mar 23, 3:27 pm, Lucius Fox <[email protected]> wrote:
> Can you please tell me where I can the layout xml file for the AlertDialog?
> I try to do a 'grep for 'alert1' in all the files in the source tree,
> it does not return anything.
>
> Thanks for tips.
>
> On Sun, Mar 22, 2009 at 11:56 AM, Dianne Hackborn <[email protected]> wrote:
> > The layout is an xml file, and an implementation detail. If you want to
> > have your own kind of alert dialog, just subclass from Dialog and make it
> > yourself. Given how customizable AlertDialog is (with the ability to stick
> > in your own layouts and such), I think trying to do something beyond what it
> > supports is probably best done as just a custom dialog.
>
> > On Sat, Mar 21, 2009 at 11:56 PM, Lucius Fox <[email protected]> wrote:
>
> >> Hi,
>
> >> How is android's AlertDialog layout define? Is there a layout.xml file
> >> corresponding to the AlertDialog?
> >> I have looked at AlertDialog implementation, But i don't figure out
> >> how that is being layout (e.g. the location of the button, the
> >> location of text) Where are they defined? And how can I change that?
>
> >> Thank you.
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > [email protected]
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support. All such questions should be posted on public
> > forums, where I and others can see and answer them.
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---