diff options
Diffstat (limited to 'mobile/android/base/resources/layout/activity_stream_topsites_card.xml')
-rw-r--r-- | mobile/android/base/resources/layout/activity_stream_topsites_card.xml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/mobile/android/base/resources/layout/activity_stream_topsites_card.xml b/mobile/android/base/resources/layout/activity_stream_topsites_card.xml new file mode 100644 index 000000000..8cb288b2f --- /dev/null +++ b/mobile/android/base/resources/layout/activity_stream_topsites_card.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<org.mozilla.gecko.widget.FilledCardView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:gecko="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <RelativeLayout + android:id="@+id/content" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="?android:attr/selectableItemBackground"> + + <org.mozilla.gecko.widget.FaviconView + android:id="@+id/favicon" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_above="@+id/title" + android:layout_alignParentTop="true" + android:layout_centerHorizontal="true" + android:layout_gravity="center" + gecko:enableRoundCorners="false" + tools:background="@drawable/favicon_globe" /> + + <View + android:layout_width="match_parent" + android:layout_height="0.5dp" + android:layout_below="@id/favicon" + android:background="@color/activity_stream_divider" /> + + <TextView + android:id="@+id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentEnd="true" + android:layout_alignParentLeft="true" + android:layout_alignParentRight="true" + android:layout_alignParentStart="true" + android:ellipsize="end" + android:gravity="center" + android:lines="1" + android:padding="4dp" + android:textSize="12sp" + android:textColor="@android:color/black" + tools:text="Lorem Ipsum here is a title" /> + + <ImageView + android:id="@+id/menu" + android:layout_width="wrap_content" + android:layout_height="28dp" + android:layout_alignParentEnd="true" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:layout_gravity="right|top" + android:padding="6dp" + android:contentDescription="@string/menu" + android:src="@drawable/menu" /> + + </RelativeLayout> +</org.mozilla.gecko.widget.FilledCardView>
\ No newline at end of file |