Commit 878c53ee authored by Mygod's avatar Mygod

Refine profile bandwidth gravity

parent eb7e608d
...@@ -63,7 +63,6 @@ ...@@ -63,7 +63,6 @@
<TextView android:id="@+id/address" <TextView android:id="@+id/address"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="top"
android:layout_weight="1" android:layout_weight="1"
android:maxLines="2" android:maxLines="2"
android:ellipsize="end" android:ellipsize="end"
...@@ -72,7 +71,7 @@ ...@@ -72,7 +71,7 @@
<TextView android:id="@+id/traffic" <TextView android:id="@+id/traffic"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="top" android:gravity="bottom"
android:ellipsize="end" android:ellipsize="end"
android:textAppearance="?android:attr/textAppearanceSmall" android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondary"/> android:textColor="?android:attr/textColorSecondary"/>
......
...@@ -178,7 +178,7 @@ final class ProfilesFragment extends ToolbarFragment with Toolbar.OnMenuItemClic ...@@ -178,7 +178,7 @@ final class ProfilesFragment extends ToolbarFragment with Toolbar.OnMenuItemClic
def onBindViewHolder(vh: ProfileViewHolder, i: Int): Unit = vh.bind(profiles(i)) def onBindViewHolder(vh: ProfileViewHolder, i: Int): Unit = vh.bind(profiles(i))
def onCreateViewHolder(vg: ViewGroup, i: Int) = def onCreateViewHolder(vg: ViewGroup, i: Int) =
new ProfileViewHolder(LayoutInflater.from(vg.getContext).inflate(R.layout.layout_profiles_item, vg, false)) new ProfileViewHolder(LayoutInflater.from(vg.getContext).inflate(R.layout.layout_profile, vg, false))
setHasStableIds(true) // Reason: http://stackoverflow.com/a/32488059/2245107 setHasStableIds(true) // Reason: http://stackoverflow.com/a/32488059/2245107
override def getItemId(position: Int): Long = profiles(position).id override def getItemId(position: Int): Long = profiles(position).id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment