diff --git a/app/src/main/java/com/topjohnwu/magisk/adapters/ReposAdapter.java b/app/src/main/java/com/topjohnwu/magisk/adapters/ReposAdapter.java index 9cb23771e..d1525b474 100644 --- a/app/src/main/java/com/topjohnwu/magisk/adapters/ReposAdapter.java +++ b/app/src/main/java/com/topjohnwu/magisk/adapters/ReposAdapter.java @@ -136,7 +136,6 @@ public class ReposAdapter extends RecyclerView.Adapter @BindView(R.id.author) TextView author; @BindView(R.id.expand_layout) LinearLayout expandLayout; @BindView(R.id.update) ImageView updateImage; - @BindView(R.id.installed) ImageView installedImage; @BindView(R.id.changeLog) ImageView changeLog; @BindView(R.id.authorLink) ImageView authorLink; @BindView(R.id.supportLink) ImageView supportLink; @@ -179,6 +178,11 @@ public class ReposAdapter extends RecyclerView.Adapter layoutParams.height = expanded ? expandHeight : 0; expandLayout.setLayoutParams(layoutParams); expandLayout.setVisibility(expanded ? View.VISIBLE : View.GONE); + if (expanded) { + updateImage.setTranslationY(expandHeight / 2); + } else { + updateImage.setTranslationY(0); + } } private void expand() { diff --git a/app/src/main/res/layout/list_item_module.xml b/app/src/main/res/layout/list_item_module.xml index 6bb5fd6cb..b53f90b93 100644 --- a/app/src/main/res/layout/list_item_module.xml +++ b/app/src/main/res/layout/list_item_module.xml @@ -20,9 +20,7 @@ android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:minHeight="?android:attr/listPreferredItemHeight" - android:padding="@dimen/card_layout_padding" - android:paddingEnd="@dimen/card_layout_padding" - android:paddingStart="@dimen/card_layout_padding"> + android:padding="@dimen/card_layout_padding"> - - - - - - - - - - - - + android:layout_gravity="center_vertical" + android:id="@+id/info_layout"> + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + android:layout_weight="1"> - + android:layout_marginTop="0dp" + android:maxLines="1" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textIsSelectable="false"/> - + android:text="@string/no_info_provided" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@android:color/tertiary_text_dark" + android:textIsSelectable="false" + android:textStyle="bold|italic"/> - + android:text="@string/no_info_provided" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@android:color/tertiary_text_dark" + android:textIsSelectable="false" + android:textStyle="bold|italic"/> + + + + + - - - + android:layout_alignParentStart="true" + android:layout_below="@id/info_layout" + android:orientation="vertical"> + + + + + + + + + + + +