diff options
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/rendering-configs.xml')
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/rendering-configs.xml | 382 |
1 files changed, 382 insertions, 0 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/rendering-configs.xml b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/rendering-configs.xml new file mode 100644 index 000000000..96c7fe7d2 --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/rendering-configs.xml @@ -0,0 +1,382 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Default configuration for various views to be rendered + TODO: Remove views that don't have custom configuration + TODO: Parameterize the custom width (200dip) in the below? +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + <AnalogClock + android:layout_width="wrap_content" + android:id="@+id/android_widget_AnalogClock" + android:layout_height="75dip"> + </AnalogClock> + <AutoCompleteTextView + android:layout_height="wrap_content" + android:layout_width="200dip" + android:text="AutoComplete" + android:id="@+id/android_widget_AutoCompleteTextView"> + </AutoCompleteTextView> + <Button + android:text="Button" + android:id="@+id/android_widget_Button" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + </Button> + <Button + android:text="Small" + style="?android:attr/buttonStyleSmall" + android:id="@+id/android_widget_SmallButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + </Button> + <CheckBox + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="CheckBox" + android:id="@+id/android_widget_CheckBox" + android:checked="true"> + </CheckBox> + <CheckedTextView + android:text="CheckedTextView" + android:id="@+id/android_widget_CheckedTextView" + android:layout_height="wrap_content" + android:layout_width="wrap_content"> + </CheckedTextView> + <!-- + <Chronometer + android:text="Chronometer" + android:id="@+id/android_widget_Chronometer" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + </Chronometer> + --> + <DigitalClock + android:text="DigitalClock" + android:id="@+id/android_widget_DigitalClock" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + </DigitalClock> + + <EditText + android:id="@+id/PlainText" + android:text="abc" + android:layout_width="200dip" + android:layout_height="wrap_content"> + </EditText> + + <EditText + android:id="@+id/Password" + android:inputType="textPassword" + android:text="••••••••" + android:layout_width="200dip" + android:layout_height="wrap_content"> + </EditText> + + <!-- android:inputType="numberPassword" not used here to allow digits in preview only --> + <EditText + android:id="@+id/PasswordNumeric" + android:text="1•••2•••3" + android:layout_width="200dip" + android:layout_height="wrap_content"> + </EditText> + + <EditText + android:id="@+id/PersonName" + android:inputType="textPersonName" + android:text="Firstname Lastname" + android:layout_width="200dip" + android:layout_height="wrap_content"> + </EditText> + + <EditText + android:id="@+id/Phone" + android:inputType="phone" + android:text="(555) 0100" + android:layout_width="200dip" + android:layout_height="wrap_content"> + </EditText> + + <EditText + android:id="@+id/PostalAddress" + android:inputType="textPostalAddress" + android:text="Address" + android:layout_width="200dip" + android:layout_height="100dip"> + </EditText> + + <EditText + android:id="@+id/MultilineText" + android:inputType="textMultiLine" + android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor" + android:layout_width="200dip" + android:layout_height="100dip"> + </EditText> + + <EditText + android:id="@+id/Date" + android:inputType="date" + android:text="1/1/2011" + android:layout_width="200dip" + android:layout_height="wrap_content"> + </EditText> + + <EditText + android:id="@+id/Time" + android:inputType="time" + android:text="12:00am" + android:layout_width="200dip" + android:layout_height="wrap_content"> + </EditText> + + <EditText + android:id="@+id/Email" + android:inputType="textEmailAddress" + android:text="user@domain" + android:layout_width="200dip" + android:layout_height="wrap_content"> + </EditText> + + <EditText + android:id="@+id/Number" + android:inputType="number" + android:text="42" + android:layout_width="200dip" + android:layout_height="wrap_content"> + </EditText> + + <EditText + android:id="@+id/NumberSigned" + android:inputType="numberSigned" + android:text="-42" + android:layout_width="200dip" + android:layout_height="wrap_content"> + </EditText> + + <EditText + android:id="@+id/NumberDecimal" + android:inputType="numberDecimal" + android:text="42.0" + android:layout_width="200dip" + android:layout_height="wrap_content"> + </EditText> + + <TextView + android:text="Large" + android:id="@+id/LargeText" + android:textAppearance="?android:attr/textAppearanceLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + </TextView> + + <TextView + android:text="Medium" + android:id="@+id/MediumText" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + </TextView> + + <TextView + android:text="Small" + android:id="@+id/SmallText" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + </TextView> + + <MultiAutoCompleteTextView + android:layout_height="wrap_content" + android:layout_width="200dip" + android:text="MultiAutoComplete" + android:id="@+id/android_widget_MultiAutoCompleteTextView"> + </MultiAutoCompleteTextView> + <ProgressBar + android:id="@+id/android_widget_ProgressBarNormal" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + </ProgressBar> + <ProgressBar + android:id="@+id/android_widget_ProgressBarHorizontal" + android:layout_width="200dip" + android:layout_height="wrap_content" + android:progress="30" + style="?android:attr/progressBarStyleHorizontal"> + </ProgressBar> + <ProgressBar + android:id="@+id/android_widget_ProgressBarLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + style="?android:attr/progressBarStyleLarge"> + </ProgressBar> + <ProgressBar + android:id="@+id/android_widget_ProgressBarSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + style="?android:attr/progressBarStyleSmall"> + </ProgressBar> + <QuickContactBadge + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:id="@+id/android_widget_QuickContactBadge"> + </QuickContactBadge> + <RadioButton + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:id="@+id/android_widget_RadioButton" + android:text="RadioButton" + android:checked="true"> + </RadioButton> + <RatingBar + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:id="@+id/android_widget_RatingBar" + android:rating="1"> + </RatingBar> + <SeekBar + android:layout_height="wrap_content" + android:id="@+id/android_widget_SeekBar" + android:layout_width="200dip" + android:progress="30"> + </SeekBar> + <ListView + android:id="@+id/android_widget_ListView" + android:layout_width="200dip" + android:layout_height="60dip" + android:divider="#333333" + android:dividerHeight="1px" + > + </ListView> + <ExpandableListView + android:id="@+id/android_widget_ExpandableListView" + android:layout_width="200dip" + android:layout_height="60dip" + android:divider="#333333" + android:dividerHeight="1px" + > + </ExpandableListView> + <Spinner + android:layout_height="wrap_content" + android:id="@+id/android_widget_Spinner" + android:layout_width="200dip"> + </Spinner> + <TextView + android:text="TextView" + android:id="@+id/android_widget_TextView" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + </TextView> + <ToggleButton + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:checked="false" + android:id="@+id/android_widget_ToggleButton" + android:text="ToggleButton"> + </ToggleButton> + <ZoomButton + android:id="@+id/android_widget_ZoomButton" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:src="@android:drawable/btn_plus"> + </ZoomButton> + <ZoomControls + android:id="@+id/android_widget_ZoomControls" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + </ZoomControls> + <Switch + android:id="@+id/android_widget_Switch" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + <TimePicker + android:id="@+id/android_widget_TimePicker" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + </TimePicker> + <DatePicker + android:id="@+id/android_widget_DatePicker" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + </DatePicker> + <CalendarView + android:id="@+id/android_widget_CalendarView" + android:layout_width="200dip" + android:layout_height="200dip"> + </CalendarView> + <RadioGroup + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:orientation="horizontal" + android:id="@+id/android_widget_RadioGroup"> + <RadioButton + android:checked="true"> + </RadioButton> + <RadioButton></RadioButton> + <RadioButton></RadioButton> + </RadioGroup> + <TabHost + android:id="@android:id/tabhost" + android:layout_width="200dip" + android:layout_height="100dip"> + <LinearLayout + android:id="@+id/linearLayout1" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + <TabWidget + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@android:id/tabs"> + </TabWidget> + <FrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@android:id/tabcontent"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/Tab1"> + </LinearLayout> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/Tab2"> + </LinearLayout> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/Tab3"> + </LinearLayout> + </FrameLayout> + </LinearLayout> + </TabHost> + <TabHost + android:id="@android:id/tabhost" + android:layout_width="70dip" + android:layout_height="100dip"> + <LinearLayout + android:id="@+id/android_widget_TabWidget" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + <TabWidget + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@android:id/tabs"> + </TabWidget> + <FrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@android:id/tabcontent"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/Tab1"> + </LinearLayout> + </FrameLayout> + </LinearLayout> + </TabHost> +</LinearLayout> |