Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <?xml version="1.0" encoding="utf-8"?> | |
| 2 <!-- Copyright 2015 Google Inc. All Rights Reserved. | |
| 3 | |
| 4 Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 you may not use this file except in compliance with the License. | |
| 6 You may obtain a copy of the License at | |
| 7 | |
| 8 http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | |
| 10 Unless required by applicable law or agreed to in writing, software | |
| 11 distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 See the License for the specific language governing permissions and | |
| 14 limitations under the License. | |
| 15 --> | |
| 16 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 17 xmlns:tools="http://schemas.android.com/tools" | |
| 18 android:layout_width="match_parent" | |
|
Ian Wen
2016/03/21 18:46:28
A general guideline for all of the xml layout file
| |
| 19 android:layout_height="match_parent" | |
| 20 android:orientation="vertical" | |
| 21 android:id="@+id/actiona_bar_item" | |
| 22 tools:context=".advanced_ui_setting"> | |
| 23 | |
| 24 <LinearLayout | |
| 25 android:layout_width="fill_parent" | |
| 26 android:orientation="horizontal" | |
| 27 android:layout_height="@dimen/view_height"> | |
| 28 <TextView | |
| 29 android:layout_width="wrap_content" | |
| 30 android:text='Description ' | |
| 31 android:textSize="@dimen/abc_text_size_medium_material" | |
| 32 android:layout_height="@dimen/view_height" /> | |
| 33 <EditText | |
| 34 android:id="@+id/item_description" | |
| 35 android:hint="Description for the action." | |
| 36 android:layout_width="wrap_content" | |
| 37 android:textSize="@dimen/abc_text_size_medium_material" | |
| 38 android:layout_height="wrap_content" | |
| 39 android:inputType="text" /> | |
| 40 <LinearLayout | |
| 41 android:layout_width="match_parent" | |
| 42 android:layout_height="wrap_content" | |
| 43 android:gravity="right"> | |
| 44 <Button | |
| 45 android:id="@+id/select_file" | |
| 46 android:layout_width="30dp" | |
| 47 android:layout_height="45dp" | |
| 48 android:background="@android:drawable/ic_menu_search" /> | |
| 49 | |
| 50 <Button | |
| 51 android:id="@+id/item_delete" | |
| 52 android:layout_width="30dp" | |
| 53 android:layout_height="45dp" | |
| 54 android:background="@android:drawable/ic_menu_delete" /> | |
| 55 </LinearLayout> | |
| 56 </LinearLayout> | |
| 57 | |
| 58 <LinearLayout | |
| 59 android:layout_width="fill_parent" | |
| 60 android:orientation="horizontal" | |
| 61 android:layout_height="@dimen/view_height"> | |
| 62 <TextView | |
| 63 android:layout_width="wrap_content" | |
| 64 android:text="Intent " | |
| 65 android:textSize="@dimen/abc_text_size_medium_material" | |
| 66 android:layout_height="@dimen/view_height" /> | |
| 67 <Spinner | |
| 68 android:paddingLeft="@dimen/spinner_padding_left" | |
| 69 android:layout_width="match_parent" | |
| 70 android:layout_height="wrap_content" | |
| 71 android:id="@+id/item_intent" /> | |
| 72 </LinearLayout> | |
| 73 | |
| 74 <ImageView | |
| 75 android:paddingTop="@dimen/view_vertical_margin" | |
| 76 android:id="@+id/item_image" | |
| 77 android:layout_gravity="center" | |
| 78 android:layout_width="100dp" | |
| 79 android:layout_height="100dp" /> | |
| 80 </LinearLayout> | |
| OLD | NEW |