/frameworks/base/docs/html/guide/tutorials/views/ |
hello-relativelayout.jd | 6 <p>A {@link android.widget.RelativeLayout} is a ViewGroup that allows you to layout child elements 11 <li>Open the layout file. Make it like so: 50 usual width and height, which are required for all elements). When using relative layout, 55 <li>Make sure your Activity loads this layout in the <code>onCreate()</code> method:</p> 59 setContentView(R.layout.main); 62 <p><code>R.layout.main</code> refers to the <code>main.xml</code> layout file.</p>
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/ |
XmlFormatStyle.java | 26 * different preferred formats. For example, in layout files there is typically always a 30 * included on the same line whereas for other layout styles the children are typically 34 /** Layout formatting style: blank lines between elements, attributes on separate lines */ 35 LAYOUT, 41 * Similar to layout style, but no newlines between related elements such as 70 return LAYOUT; 85 return LAYOUT;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/uimodel/ |
UiViewElementNode.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.uimodel; 19 import static com.android.ide.common.layout.LayoutConstants.FQCN_FRAME_LAYOUT; 21 import com.android.ide.common.layout.LayoutConstants; 24 import com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors; 25 import com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor; 50 * The array merges both "direct" attributes with the descriptor layout attributes. 67 // Limitation: right now the layout behaves as if everything was
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
ChangeLayoutRefactoringTest.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 18 import static com.android.ide.common.layout.LayoutConstants.FQCN_GRID_LAYOUT; 19 import static com.android.ide.common.layout.LayoutConstants.FQCN_LINEAR_LAYOUT; 20 import static com.android.ide.common.layout.LayoutConstants.FQCN_RELATIVE_LAYOUT; 22 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo; 36 // Test a basic layout which performs some nesting -- tests basic grid layout conversion
|
/sdk/eclipse/ |
changes.txt | 31 - Changes made by the layout editor are automatically run through 36 - Layout Editor 39 example, when dragging in a relative layout, the proposed 44 namespace and layout attributes if necessary. 49 view, and layout attributes only or all attributes alphabetically. 70 - Visual Layout Editor: 87 views with a new layout, and transfers namespace and layout 91 in the visual layout editor makes it easy to select siblings as 92 well as views anywhere in the layout that have the same type) [all...] |
/frameworks/base/docs/html/guide/topics/ui/ |
declaring-layout.jd | 15 <li><a href="#layout-params">Layout Parameters</a></li> 31 <p>Your layout is the architecture for the user interface in an Activity. 32 It defines the layout structure and holds all the elements that appear to the user. 33 You can declare your layout in two ways:</p> 37 <li><strong>Instantiate layout elements at runtime</strong>. Your 47 Plugin for Eclipse</a> offers a layout preview of your XML — 48 with the XML file opened, select the <strong>Layout</strong> tab.</li> 51 for debugging layouts — it reveals layout property values, 59 <p>The advantage to declaring your UI in XML is that it enables you to better separate the presentation of your application from the code that controls its behavior. Your UI descriptions are external to your application code, which means that you can modify or adapt it without having to modify your source code and recompile. For example, you can create XML layouts for different screen orientations, different device screen sizes, and different languages. Additionally, declaring the layout in XML makes it easier to visualize the structure of your UI, so it's easier to debug problems. As (…) [all...] |
index.jd | 10 <li><a href="#Layout">Layout</a></li> 38 which offer different kinds of layout architecture, like linear, tabular and relative.</p> 40 <p>A View object is a data structure whose properties store the layout parameters and content for a specific 41 rectangular area of the screen. A View object handles its own measurement, layout, drawing, focus change, 65 the elements of your layout in-order (from the top of the hierarchy tree), instantiating the Views and 73 <h2 id="Layout">Layout</h2> 75 <p>The most common way to define your layout and express the view hierarchy is with an XML layout file [all...] |
/external/chromium/chrome/browser/ui/views/ |
page_info_bubble_view.cc | 23 #include "views/layout/grid_layout.h" 29 // Layout constants. 57 virtual void Layout(); 63 // Calculate the layout if |compute_bounds_only|, otherwise does Layout also. 124 views::GridLayout* layout = new views::GridLayout(this); local 125 SetLayoutManager(layout); 126 views::ColumnSet* columns = layout->AddColumnSet(0); 135 columns = layout->AddColumnSet(1); 148 layout->StartRow(0, 0) [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
SlideshowActivity.java | 76 * @return whether the Smil has MMS conformance layout. 90 Node layout = children.item(0); local 91 if (layout == null || !"layout".equals(layout.getNodeName())) { 92 // The child is not layout element 95 NodeList layoutChildren = layout.getChildNodes(); 97 // The 'layout' element has no child. 102 // The 'layout' element has no child. 108 // The 'layout' child is null [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
_package.html | 164 <td class="DescrColumn">Loads the linear_layout_1 layout resource</td> 167 <td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/assets/res/any/layout/linear_layout_1.xml</a></td> 168 <td class="DescrColumn">Defines the layout</td> 192 <td class="DescrColumn">Loads the linear_layout_2 layout resource</td> 195 <td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/assets/res/any/layout/linear_layout_2.xml</a></td> 196 <td class="DescrColumn">Defines the layout</td> 220 <td class="DescrColumn">Loads the linear_layout_3 layout resource</td> 223 <td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/assets/res/any/layout/linear_layout_3.xml</a></td> 224 <td class="DescrColumn">Defines the layout</td> 250 <td class="DescrColumn">Loads the linear_layout_4 layout resource</td [all...] |
/external/chromium/chrome/browser/chromeos/input_method/ |
xkeyboard_unittest.cc | 139 // CreateFullXkbLayoutName should accept a layout with a variant name. 155 // When the layout name is not "us", the second layout should be added. 173 const std::string layout = CreateFullXkbLayoutName( local 176 EXPECT_STREQ("us+", layout.substr(0, 3).c_str()) 177 << "layout: " << layout; 179 EXPECT_TRUE(layouts.insert(layout).second) << "layout: " << layout; [all...] |
/frameworks/base/core/java/android/text/method/ |
BaseMovementMethod.java | 19 import android.text.Layout; 423 final Layout layout = widget.getLayout(); local 431 final int lineLeft = (int) Math.floor(layout.getLineLeft(line)); 440 final Layout layout = widget.getLayout(); local 448 final int lineRight = (int) Math.ceil(layout.getLineRight(line)); 509 final Layout layout = widget.getLayout(); local 511 int topLine = layout.getLineForVertical(top) 536 final Layout layout = widget.getLayout(); local 566 final Layout layout = widget.getLayout(); local 586 final Layout layout = widget.getLayout(); local 608 final Layout layout = widget.getLayout(); local 626 final Layout layout = widget.getLayout(); local [all...] |
/frameworks/base/core/java/android/widget/ |
AbsoluteLayout.java | 28 * A layout that lets you specify exact locations (x/y coordinates) of its 37 * or a custom layout instead. 96 * Returns a set of layout parameters with a width of 120 child.layout(childLeft, childTop, 150 * Per-child layout information associated with AbsoluteLayout. 152 * {@link android.R.styleable#AbsoluteLayout_Layout Absolute Layout Attributes} 166 * Creates a new set of layout parameters with the specified width, 183 * Creates a new set of layout parameters. The values are extracted from 185 * to this set of layout parameters are: 195 * @param attrs the set of attributes from which to extract the layout [all...] |
/frameworks/base/docs/html/resources/articles/ |
ui-1.6.jd | 12 <p>RelativeLayout is the most versatile layout offered by the Android UI toolkit 14 applications. This layout used to suffer from various bugs and limitations, 22 XML layout:</p> 65 <p>This code builds a very simple layout?an image on the left with two lines of 66 text stacked vertically. This XML layout is perfectly fine and contains no 72 <p>The problem is that this layout uses forward references. For instance, the 75 this case. Now look at the exact same layout running on Android 1.6:</p> 81 layout.</p> 97 requires giving each button an id in your XML layout file:</p> 123 <p>And then reference this method from your XML layout:</p [all...] |
/frameworks/base/docs/html/resources/tutorials/views/ |
hello-relativelayout.jd | 1 page.title=Relative Layout 19 <li>Open the <code>res/layout/main.xml</code> file and insert the following: 61 <p>All of the available layout attributes are defined in {@link 64 <li>Make sure you load this layout in the 69 setContentView(R.layout.main); 73 layout file for the {@link android.app.Activity}, specified by the resource 74 ID — <code>R.layout.main</code> refers to the <code>res/layout/main.xml</code> layout 79 <p>You should see the following layout:</p [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/resources/ |
ResourceHelperTest.java | 20 import static com.android.resources.ResourceType.LAYOUT; 126 assertEquals(LAYOUT, ResourceHelper.parseResource("@layout/foo").getFirst()); 129 assertEquals("foo", ResourceHelper.parseResource("@layout/foo").getSecond()); 137 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.LAYOUT)); 153 assertFalse(ResourceHelper.isValueBasedResourceType(ResourceType.LAYOUT)); 161 assertTrue(ResourceHelper.canCreateResource("@layout/foo")); 167 assertFalse(ResourceHelper.canCreateResource("@layout/foo bar")); // space 168 assertFalse(ResourceHelper.canCreateResource("@layout/new")); // keyword 175 assertTrue(ResourceHelper.canCreateResourceType(ResourceType.LAYOUT)); [all...] |
/external/chromium/chrome/browser/chromeos/login/ |
screen_lock_view.cc | 28 #include "views/layout/grid_layout.h" 107 void ScreenLockView::Layout() { 155 GridLayout* layout = new GridLayout(main_); local 156 main_->SetLayoutManager(layout); 157 views::ColumnSet* column_set = layout->AddColumnSet(0); 163 column_set = layout->AddColumnSet(1); 169 layout->AddPaddingRow(0, kBorderSize); 170 layout->StartRow(0, 0); 171 layout->AddView(user_view_); 172 layout->AddPaddingRow(0, kBorderSize) [all...] |
/frameworks/base/core/tests/coretests/src/android/text/ |
StaticLayoutTest.java | 21 import android.text.Layout.Alignment; 22 import static android.text.Layout.Alignment.*; 49 Layout l = b.build(); 55 assertEquals(Layout.DIR_LEFT_TO_RIGHT, l.getParagraphDirection(0)); 57 assertEquals(Layout.DIRS_ALL_LEFT_TO_RIGHT, l.getLineDirections(0)); 73 Layout l = b.build(); 89 Layout l = b.build(); 107 Layout l = b.build(); 135 Layout l = b.build(); 156 Layout l = b.build() [all...] |
StaticLayoutBidiTest.java | 29 public static final int REQ_DL = 2; // Layout.DIR_REQUEST_DEFAULT_LTR; 30 public static final int REQ_DR = -2; // Layout.DIR_REQUEST_DEFAULT_RTL; 31 public static final int REQ_L = 1; // Layout.DIR_REQUEST_LTR; 32 public static final int REQ_R = -1; // Layout.DIR_REQUEST_RTL; 33 public static final int L = Layout.DIR_LEFT_TO_RIGHT; 34 public static final int R = Layout.DIR_RIGHT_TO_LEFT;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
WrapInWizard.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 19 import static com.android.ide.common.layout.LayoutConstants.FQCN_GESTURE_OVERLAY_VIEW; 20 import static com.android.ide.common.layout.LayoutConstants.FQCN_LINEAR_LAYOUT; 21 import static com.android.ide.common.layout.LayoutConstants.FQCN_RADIO_BUTTON; 22 import static com.android.ide.common.layout.LayoutConstants.GESTURE_OVERLAY_VIEW; 23 import static com.android.ide.common.layout.LayoutConstants.RADIO_GROUP; 24 import static com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_INCLUDE; 26 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor; 27 import com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor; 28 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CustomViewFinder [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
IncludeFinder.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.gle2; 23 import static com.android.resources.ResourceType.LAYOUT; 34 import com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors; 90 /** Map from a layout resource name to a set of layouts included by the given resource */ 154 * Gets the list of all other layouts that are including the given layout. 182 * Returns true if the given resource is included from some other layout in the 186 * @return true if the file is included by some other layout 231 * it strips out the @layout/ prefix, and eliminates the values for empty string 358 // hit this -- even with an average layout root name of 20 characters 408 * Scan the whole project for XML layout resources that are performing includes [all...] |
/cts/tests/tests/text/src/android/text/cts/ |
BoringLayoutTest.java | 25 import android.text.Layout; 28 import android.text.Layout.Alignment; 48 private static final Layout.Alignment DEFAULT_ALIGN = Layout.Alignment.ALIGN_CENTER; 70 android.text.Layout.Alignment.class, float.class, float.class, 77 android.text.Layout.Alignment.class, float.class, float.class, 198 + " 1. One line text layout." 268 assertEquals(Layout.DIR_LEFT_TO_RIGHT, mBoringLayout.getParagraphDirection(0)); 271 assertEquals(Layout.DIR_LEFT_TO_RIGHT, mBoringLayout.getParagraphDirection(0)); 284 + " 1. Alignment is {@link android.text.Layout.Alignment#ALIGN_CENTER} and the [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/preference/ |
LaunchingPreferences.java | 56 // Simple layout 57 LinearLayout layout = new LinearLayout(this); local 58 layout.setOrientation(LinearLayout.VERTICAL); 59 setContentView(layout); 65 layout.addView(launchPreferences, new LayoutParams(LayoutParams.MATCH_PARENT, 69 layout.addView(mCounterText, new LayoutParams(LayoutParams.MATCH_PARENT,
|
/external/chromium/chrome/browser/ui/views/frame/ |
contents_container.cc | 64 Layout(); 79 Layout(); 87 // Make sure we layout next time around. We need this in case our bounds 140 void ContentsContainer::Layout() { 149 // still need a layout. 150 views::View::Layout();
|
/external/webkit/Source/WebCore/rendering/svg/ |
SVGMarkerLayoutInfo.cpp | 90 MarkerLayout& layout = *it; local 92 RenderSVGResourceMarker* markerContent = layout.marker; 95 bounds.unite(markerContent->markerBoundaries(layout.matrix)); 119 MarkerLayout& layout = *it; local 120 layout.marker->draw(paintInfo, layout.matrix);
|