Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 2 xmlns:app="http://schemas.android.com/apk/res-auto" | |
| 3 xmlns:tools="http://schemas.android.com/tools" | |
| 4 android:layout_width="wrap_content" | |
| 5 android:layout_height="wrap_content" | |
| 6 android:orientation="vertical" | |
| 7 android:id="@+id/actiona_bar_item" | |
| 8 tools:context=".advanced_ui_setting"> | |
| 9 | |
| 10 <LinearLayout | |
| 11 android:layout_width="match_parent" | |
| 12 android:paddingTop="@dimen/view_vertical_margin" | |
| 13 android:orientation="horizontal" | |
| 14 | |
| 15 android:layout_height="@dimen/view_height"> | |
| 16 <TextView | |
| 17 android:id="@+id/item_description" | |
| 18 android:layout_width="wrap_content" | |
| 19 android:textSize="@dimen/abc_text_size_medium_material" | |
| 20 android:layout_height="@dimen/view_height" /> | |
| 21 <LinearLayout | |
| 22 android:orientation="horizontal" | |
| 23 android:layout_width="fill_parent" | |
| 24 android:layout_height="wrap_content" | |
| 25 android:gravity="right" > | |
| 26 <Button | |
| 27 android:id="@+id/item_delete" | |
|
Ian Wen
2016/02/09 00:14:16
If there is only one item in a layout, remove that
| |
| 28 android:layout_width="30sp" | |
| 29 android:layout_height="wrap_content" | |
| 30 android:background="@android:drawable/ic_menu_delete" /> | |
| 31 </LinearLayout> | |
| 32 </LinearLayout> | |
| 33 | |
| 34 <LinearLayout | |
| 35 android:layout_width="match_parent" | |
| 36 android:paddingTop="@dimen/view_vertical_margin" | |
| 37 android:orientation="horizontal" | |
| 38 android:layout_height="@dimen/view_height"> | |
| 39 <TextView | |
| 40 android:id="@+id/item_intent" | |
| 41 android:layout_width="match_parent" | |
| 42 android:textSize="@dimen/abc_text_size_medium_material" | |
| 43 android:layout_height="@dimen/view_height" /> | |
| 44 </LinearLayout> | |
| 45 | |
| 46 <LinearLayout | |
| 47 android:layout_width="match_parent" | |
| 48 android:paddingTop="@dimen/view_vertical_margin" | |
| 49 android:orientation="horizontal" | |
| 50 android:layout_height="@dimen/view_height"> | |
| 51 <TextView | |
| 52 android:id="@+id/item_image_title" | |
| 53 android:layout_width="match_parent" | |
| 54 android:textSize="@dimen/abc_text_size_medium_material" | |
| 55 android:layout_height="@dimen/view_height" | |
| 56 /> | |
| 57 </LinearLayout> | |
| 58 | |
| 59 <ImageView | |
| 60 android:id="@+id/item_image" | |
| 61 android:layout_gravity="center" | |
| 62 android:layout_width="100sp" | |
| 63 android:layout_height="100sp" /> | |
| 64 </LinearLayout> | |
| OLD | NEW |