Updates view checkbox & textbox -> center vertical

This commit is contained in:
Denis 2014-09-17 12:03:28 +03:00
parent 52859b6b0a
commit c71c207319
2 changed files with 32 additions and 1 deletions

View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="1dp"
android:paddingBottom="1dp"
android:paddingRight="8dp">
<CheckBox android:id="@+id/check_download_item"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:focusable="false"/>
<TextView android:layout_width="0dp"
android:layout_height="match_parent"
android:id="@+id/download_item"
android:gravity="center_vertical"
android:maxLines="7"
android:layout_weight="1"
style="@style/ListText.Small"/>
<TextView android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/download_descr"
android:layout_marginLeft="3dp"
android:gravity="right|center_vertical"
style="@style/ListText.Small"/>
</LinearLayout>

View file

@ -170,7 +170,7 @@ public class UpdatesIndexFragment extends SherlockListFragment {
if (v == null) {
LayoutInflater inflater = (LayoutInflater) getDownloadActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = inflater.inflate(R.layout.download_index_list_item, null);
v = inflater.inflate(R.layout.update_index_list_item, null);
}
TextView name = (TextView) v.findViewById(R.id.download_item);