Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Layout improvement
Browse files Browse the repository at this point in the history
Closes #1933
  • Loading branch information
M66B committed Aug 28, 2014
1 parent a65780e commit 2abd21d
Showing 1 changed file with 32 additions and 42 deletions.
74 changes: 32 additions & 42 deletions res/layout/mainentry.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeightSmall"
Expand Down Expand Up @@ -71,54 +70,45 @@
android:src="?attr/icon_frozen" />
</LinearLayout>

<LinearLayout
<TextView
android:id="@+id/tvName"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:orientation="horizontal" >

<TextView
android:id="@+id/tvName"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:background="@drawable/list_item_pressed"
android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="NestedWeights" />
android:background="@drawable/list_item_pressed"
android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:textAppearance="?android:attr/textAppearanceSmall" />

<ImageView
android:id="@+id/imgSettings"
android:layout_width="24dip"
android:layout_height="24dip"
android:layout_gravity="center_vertical"
android:contentDescription="@string/help_application"
android:paddingLeft="3dip"
android:src="@android:drawable/btn_star_big_off"
android:visibility="gone" />
<ImageView
android:id="@+id/imgSettings"
android:layout_width="24dip"
android:layout_height="24dip"
android:layout_gravity="center_vertical"
android:contentDescription="@string/help_application"
android:paddingLeft="3dip"
android:src="@android:drawable/btn_star_big_off"
android:visibility="gone" />

<ImageView
android:id="@+id/imgCbRestricted"
android:layout_width="32dip"
android:layout_height="32dip"
android:layout_gravity="center_vertical"
android:layout_marginLeft="3dip"
android:layout_marginRight="3dip"
android:contentDescription="@string/title_restrict"
android:visibility="invisible" />
<ImageView
android:id="@+id/imgCbRestricted"
android:layout_width="32dip"
android:layout_height="32dip"
android:layout_gravity="center_vertical"
android:layout_marginLeft="3dip"
android:layout_marginRight="3dip"
android:contentDescription="@string/title_restrict"
android:visibility="invisible" />

<ProgressBar
android:id="@+id/pbRunning"
style="?android:attr/progressBarStyleInverse"
android:layout_width="32dip"
android:layout_height="32dip"
android:layout_gravity="center_vertical"
android:layout_marginLeft="3dip"
android:visibility="gone" />
</LinearLayout>
<ProgressBar
android:id="@+id/pbRunning"
style="?android:attr/progressBarStyleInverse"
android:layout_width="32dip"
android:layout_height="32dip"
android:layout_gravity="center_vertical"
android:layout_marginLeft="3dip"
android:visibility="gone" />

<ImageView
android:id="@+id/imgCbAsk"
Expand Down

0 comments on commit 2abd21d

Please sign in to comment.