Fix SuLog UI
This commit is contained in:
parent
874ababb9f
commit
58acc75cf6
@ -74,7 +74,7 @@ public class SuLogAdapter extends SectionedAdapter<SuLogAdapter.SectionHolder, S
|
|||||||
} else {
|
} else {
|
||||||
rotate = new RotateAnimation(0, 180, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
|
rotate = new RotateAnimation(0, 180, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
|
||||||
sectionExpanded.add(section);
|
sectionExpanded.add(section);
|
||||||
notifyItemRangeChanged(getItemPosition(section, 0), logEntryList.get(section).size());
|
notifyItemRangeInserted(getItemPosition(section, 0), logEntryList.get(section).size());
|
||||||
}
|
}
|
||||||
rotate.setDuration(300);
|
rotate.setDuration(300);
|
||||||
rotate.setFillAfter(true);
|
rotate.setFillAfter(true);
|
||||||
|
@ -1,23 +1,26 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:orientation="horizontal"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/selectableItemBackground"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:orientation="horizontal"
|
||||||
android:padding="5dp">
|
android:padding="5dp">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
android:id="@+id/arrow"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="25dp"
|
android:layout_height="25dp"
|
||||||
android:src="@drawable/ic_arrow"
|
android:layout_marginEnd="10dp"
|
||||||
android:id="@+id/arrow"
|
android:src="@drawable/ic_arrow" />
|
||||||
android:layout_marginEnd="10dp" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:text="2017/1/1"
|
android:id="@+id/date"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:id="@+id/date"
|
android:gravity="center_vertical"
|
||||||
android:textColor="?android:attr/textColorPrimary"
|
android:text="2017/1/1"
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||||
android:gravity="center_vertical" />
|
android:textColor="?android:attr/textColorPrimary" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
Loading…
Reference in New Issue
Block a user