Reformat XML

This commit is contained in:
Alexey Pelykh 2015-01-30 15:26:15 +02:00
parent 311c067665
commit 080ed51a5a
3 changed files with 73 additions and 57 deletions

View file

@ -1,25 +1,30 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/card_bg"
android:orientation="vertical">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout
android:orientation="vertical" android:layout_width="match_parent"
android:background="?attr/card_bg" android:layout_height="@dimen/dashHeaderHeight"
android:layout_width="match_parent" android:orientation="horizontal">
android:layout_height="match_parent">
<LinearLayout android:orientation="horizontal" <TextView
android:layout_width="fill_parent" android:id="@+id/plugin_text"
android:layout_height="@dimen/dashHeaderHeight"> style="@style/DashboardSubHeader"
<TextView android:id="@+id/plugin_text" android:text="@string/prefs_plugins"/>
android:text="@string/prefs_plugins"
style="@style/DashboardSubHeader"/> <Button
<Button android:id="@+id/show_all" android:id="@+id/show_all"
android:text="@string/show_all" style="@style/DashboardGeneralButton"
style="@style/DashboardGeneralButton"/> android:text="@string/show_all"/>
</LinearLayout> </LinearLayout>
<LinearLayout android:id="@+id/plugins" <LinearLayout
android:orientation="vertical" android:id="@+id/plugins"
android:layout_width="fill_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
android:orientation="vertical" />
</LinearLayout>
</LinearLayout> </LinearLayout>

View file

@ -1,17 +1,19 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout
xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" xmlns:tools="http://schemas.android.com/tools"
android:layout_height="fill_parent" android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="?attr/actionBarSize" android:layout_marginTop="?attr/actionBarSize"
android:orientation="vertical"> android:orientation="vertical">
<ListView
android:id="@android:id/list" <ListView
android:layout_width="fill_parent" android:id="@android:id/list"
android:layout_weight="1" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_margin="6dp" android:layout_margin="6dp"
android:layout_weight="1"
android:divider="@null" android:divider="@null"
android:dividerHeight="4dp" android:dividerHeight="4dp"
tools:listitem="@layout/plugins_list_item" /> tools:listitem="@layout/plugins_list_item"/>
</LinearLayout> </LinearLayout>

View file

@ -1,65 +1,73 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout
xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" xmlns:tools="http://schemas.android.com/tools"
android:layout_height="84dp" android:layout_width="match_parent"
android:layout_height="84dp"
android:background="?attr/card_bg" android:background="?attr/card_bg"
android:padding="2dp" android:descendantFocusability="blocksDescendants"
android:descendantFocusability="blocksDescendants"> android:padding="2dp">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
android:id="@+id/plugin_logo" android:id="@+id/plugin_logo"
android:layout_width="64dp" android:layout_width="64dp"
android:layout_height="64dp" android:layout_height="64dp"
android:layout_margin="8dp" android:layout_margin="8dp"
android:background="@drawable/bg_plugin_logo" android:background="@drawable/bg_plugin_logo"
android:src="@drawable/ic_extension_dark" android:scaleType="center"
android:scaleType="center"/> android:src="@drawable/ic_extension_dark"/>
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
android:layout_marginEnd="16dp"
android:layout_marginLeft="6dp" android:layout_marginLeft="6dp"
android:layout_marginStart="6dp"
android:layout_marginRight="16dp" android:layout_marginRight="16dp"
android:layout_marginEnd="16dp"> android:layout_marginStart="6dp"
android:layout_marginTop="8dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView <TextView
android:id="@+id/plugin_name" android:id="@+id/plugin_name"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_marginEnd="50dp"
android:layout_marginRight="50dp"
android:ellipsize="end"
android:lines="1"
android:maxLines="1"
android:textColor="?android:textColorPrimary" android:textColor="?android:textColorPrimary"
android:textSize="19sp" android:textSize="19sp"
android:textStyle="bold" android:textStyle="bold"
android:lines="1" tools:text="@string/lorem_ipsum"/>
android:maxLines="1"
android:ellipsize="end"
android:layout_marginBottom="4dp"
android:layout_marginRight="50dp"
android:layout_marginEnd="50dp"
tools:text="@string/lorem_ipsum" />
<TextView <TextView
android:id="@+id/plugin_description" android:id="@+id/plugin_description"
android:layout_width="fill_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="?android:textColorSecondary" android:ellipsize="end"
android:textSize="14sp"
android:lines="2" android:lines="2"
android:maxLines="2" android:maxLines="2"
android:ellipsize="end" android:textColor="?android:textColorSecondary"
tools:text="@string/lorem_ipsum" /> android:textSize="14sp"
tools:text="@string/lorem_ipsum"/>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="top|end" android:layout_gravity="top|end"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
android:id="@+id/plugin_is_enabled" android:id="@+id/plugin_is_enabled"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -67,7 +75,8 @@
android:layout_marginTop="6dp" android:layout_marginTop="6dp"
android:src="?attr/ic_action_check" android:src="?attr/ic_action_check"
android:visibility="invisible" android:visibility="invisible"
tools:visibility="visible" /> tools:visibility="visible"/>
<ImageButton <ImageButton
android:id="@+id/plugin_options" android:id="@+id/plugin_options"
android:layout_width="36dp" android:layout_width="36dp"