Skip to content

Commit

Permalink
List view now shows all required information
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-san committed Nov 14, 2018
1 parent dc7e3e6 commit 18d2dce
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Expand Up @@ -19,7 +19,7 @@ android {
dataBinding {
enabled = true
}
versionName "0.5.a2-favorLocation"
versionName "0.6.a2-favorList"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
Expand Down
32 changes: 19 additions & 13 deletions app/src/main/res/layout/favor_item.xml
Expand Up @@ -43,19 +43,18 @@
android:textAlignment="textEnd"
android:textColor="#000000"
android:textSize="20dp" />

</LinearLayout>

<LinearLayout
android:id="@+id/informationBlob"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/title"
android:orientation="horizontal">
android:layout_height="match_parent">

<LinearLayout
android:layout_width="240dp"
android:layout_width="230dp"
android:layout_height="match_parent"
android:orientation="vertical">
android:orientation="vertical"
android:paddingRight="10dp">

<TextView
android:id="@+id/description"
Expand All @@ -80,13 +79,21 @@
android:id="@+id/iconCategory"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="left" />
android:layout_alignParentTop="true"
android:layout_gravity="left"
android:layout_marginStart="-240dp"
android:layout_marginTop="0dp"
android:layout_marginEnd="2dp"
android:layout_toStartOf="@+id/LocationBlob"
android:contentDescription="hwllo" />

<LinearLayout
android:id="@+id/LocationBlob"
android:layout_width="80dp"
android:layout_width="88dp"
android:layout_height="wrap_content"
android:orientation="vertical">
android:layout_alignParentRight="true"
android:orientation="vertical"
android:paddingLeft="10dp">

<TextView
android:id="@+id/location"
Expand All @@ -100,14 +107,13 @@
<TextView
android:id="@+id/distance"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="20dp"
android:layout_below="@id/location"
android:layout_weight="1"
android:text="distance"
android:textAlignment="textEnd" />
</LinearLayout>

</LinearLayout>
</RelativeLayout>

</LinearLayout>

Expand Down

0 comments on commit 18d2dce

Please sign in to comment.