138 lines
4.9 KiB
XML
138 lines
4.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2014 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/parentPanel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:background="@drawable/dialog_background_material" >
|
|
|
|
<ScrollView android:id="@+id/scroll_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:clipToPadding="false" >
|
|
|
|
<LinearLayout
|
|
android:id="@+id/top_panel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="24dp"
|
|
android:paddingTop="24dp"
|
|
android:paddingRight="24dp"
|
|
android:paddingBottom="12dp" >
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:textAppearance="@style/TextAppearance.DialogTitle"
|
|
android:singleLine="true"
|
|
android:ellipsize="end"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="start"
|
|
android:layout_marginBottom="24dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/message"
|
|
style="@style/DialogMessage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center" />
|
|
|
|
<!-- custom view add here -->
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/top_panel_noscroll"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="24dp"
|
|
android:paddingTop="24dp"
|
|
android:paddingRight="24dp"
|
|
android:paddingBottom="12dp" >
|
|
|
|
<TextView android:id="@+id/title2"
|
|
android:textAppearance="@style/TextAppearance.DialogTitle"
|
|
android:singleLine="true"
|
|
android:ellipsize="end"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="start"
|
|
android:layout_marginBottom="24dp" />
|
|
|
|
<ListView
|
|
android:id="@+id/list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<!-- custom view add here -->
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/button_panel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginBottom="12dp" >
|
|
|
|
<Button android:id="@+id/button_action"
|
|
style="@style/DialogButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:gravity="center" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/non_action_panel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_alignParentRight="true"
|
|
android:orientation="horizontal" >
|
|
|
|
<Button android:id="@+id/button_negative"
|
|
style="@style/DialogButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center" />
|
|
|
|
<Button android:id="@+id/button_neutral"
|
|
style="@style/DialogButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center" />
|
|
|
|
<Button android:id="@+id/button_positive"
|
|
style="@style/DialogButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@android:color/holo_blue_light"
|
|
android:gravity="center" />
|
|
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|