mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-02 17:56:56 +01:00
adjusted activity card
This commit is contained in:
parent
80f75f8521
commit
bba95cafbc
@ -200,7 +200,7 @@ public abstract class AbsActivitiesAdapter<Data> extends LoadMoreSupportAdapter<
|
|||||||
case ITEM_VIEW_TYPE_TITLE_SUMMARY: {
|
case ITEM_VIEW_TYPE_TITLE_SUMMARY: {
|
||||||
final View view;
|
final View view;
|
||||||
if (mCompactCards) {
|
if (mCompactCards) {
|
||||||
view = mInflater.inflate(R.layout.card_item_activity_summary_common, parent, false);
|
view = mInflater.inflate(R.layout.card_item_activity_summary_compact, parent, false);
|
||||||
} else {
|
} else {
|
||||||
view = mInflater.inflate(R.layout.card_item_activity_summary, parent, false);
|
view = mInflater.inflate(R.layout.card_item_activity_summary, parent, false);
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<FrameLayout
|
<org.mariotaku.twidere.view.ColorLabelFrameLayout
|
||||||
|
android:id="@+id/item_content"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="@dimen/element_spacing_normal">
|
android:background="?selectableItemBackground"
|
||||||
|
android:focusable="true"
|
||||||
|
android:focusableInTouchMode="false"
|
||||||
|
android:paddingLeft="@dimen/element_spacing_normal"
|
||||||
|
android:paddingRight="@dimen/element_spacing_normal">
|
||||||
|
|
||||||
<include layout="@layout/card_item_activity_summary_common"/>
|
<include layout="@layout/card_item_activity_summary_common"/>
|
||||||
</FrameLayout>
|
</org.mariotaku.twidere.view.ColorLabelFrameLayout>
|
@ -17,16 +17,11 @@
|
|||||||
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<org.mariotaku.twidere.view.ColorLabelRelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/item_content"
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?selectableItemBackground"
|
|
||||||
android:focusable="true"
|
|
||||||
android:focusableInTouchMode="false"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:padding="@dimen/element_spacing_normal">
|
android:padding="@dimen/element_spacing_normal">
|
||||||
|
|
||||||
<org.mariotaku.twidere.view.ActionIconView
|
<org.mariotaku.twidere.view.ActionIconView
|
||||||
@ -142,4 +137,4 @@
|
|||||||
tools:text="@string/sample_status_text"
|
tools:text="@string/sample_status_text"
|
||||||
tools:textSize="@dimen/text_size_extra_small"/>
|
tools:textSize="@dimen/text_size_extra_small"/>
|
||||||
|
|
||||||
</org.mariotaku.twidere.view.ColorLabelRelativeLayout>
|
</RelativeLayout>
|
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<org.mariotaku.twidere.view.ColorLabelFrameLayout
|
||||||
|
android:id="@+id/item_content"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?selectableItemBackground"
|
||||||
|
android:focusable="true"
|
||||||
|
android:focusableInTouchMode="false">
|
||||||
|
|
||||||
|
<include layout="@layout/card_item_activity_summary_common"/>
|
||||||
|
</org.mariotaku.twidere.view.ColorLabelFrameLayout>
|
Loading…
x
Reference in New Issue
Block a user