diff options
Diffstat (limited to 'app/src/main/res/layout/drawer_pixelfed_story.xml')
-rw-r--r-- | app/src/main/res/layout/drawer_pixelfed_story.xml | 62 |
1 files changed, 32 insertions, 30 deletions
diff --git a/app/src/main/res/layout/drawer_pixelfed_story.xml b/app/src/main/res/layout/drawer_pixelfed_story.xml index 9c4da2f4d..3ed9fd511 100644 --- a/app/src/main/res/layout/drawer_pixelfed_story.xml +++ b/app/src/main/res/layout/drawer_pixelfed_story.xml @@ -15,12 +15,12 @@ see <http://www.gnu.org/licenses>. --> <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:tools="http://schemas.android.com/tools" - android:layout_width="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" android:id="@+id/pf_cardview" - android:layout_marginBottom="20dp" - android:layout_height="wrap_content"> + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="20dp"> <LinearLayout android:layout_width="match_parent" @@ -30,35 +30,36 @@ <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingTop="5dp" android:layout_gravity="center" android:gravity="center" - android:paddingBottom="10dp" + android:orientation="horizontal" android:paddingLeft="10dp" + android:paddingTop="5dp" android:paddingRight="10dp" - android:orientation="horizontal"> + android:paddingBottom="10dp"> <ImageView android:id="@+id/pf_pp" - android:layout_gravity="center" android:layout_width="40dp" - android:layout_height="40dp" /> + android:layout_height="40dp" + android:layout_gravity="center" /> <TextView - android:layout_marginLeft="15dp" - android:layout_marginStart="15dp" android:id="@+id/pf_username" - android:textSize="16sp" - android:textStyle="bold" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_marginStart="15dp" + android:layout_marginLeft="15dp" + android:textSize="16sp" + android:textStyle="bold" tools:ignore="RtlHardcoded" /> </LinearLayout> + <com.smarteist.autoimageslider.SliderView android:id="@+id/imageSlider" - android:visibility="gone" android:layout_width="match_parent" android:layout_height="300dp" + android:visibility="gone" app:sliderAnimationDuration="1000" app:sliderAutoCycleDirection="back_and_forth" app:sliderAutoCycleEnabled="true" @@ -76,16 +77,17 @@ <RelativeLayout android:layout_width="match_parent" - android:layout_height="wrap_content" - > + android:layout_height="wrap_content"> + <ImageView - android:visibility="gone" android:id="@+id/art_media" - android:scaleType="fitCenter" - android:adjustViewBounds="true" android:layout_width="match_parent" android:layout_height="wrap_content" + android:adjustViewBounds="true" + android:scaleType="fitCenter" + android:visibility="gone" tools:ignore="ContentDescription" /> + <ImageView android:id="@+id/art_media_play" android:layout_width="30dp" @@ -99,12 +101,12 @@ <LinearLayout android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" android:paddingLeft="10dp" - android:paddingRight="10dp" android:paddingTop="10dp" - android:paddingBottom="5dp" - android:layout_height="wrap_content" - android:orientation="vertical"> + android:paddingRight="10dp" + android:paddingBottom="5dp"> <LinearLayout android:layout_width="match_parent" @@ -112,20 +114,20 @@ android:orientation="horizontal"> <com.varunest.sparkbutton.SparkButton - android:layout_marginStart="15dp" android:id="@+id/pf_share" - app:sparkbutton_activeImage="@drawable/ic_share_media" - app:sparkbutton_inActiveImage="@drawable/ic_share_media" - android:contentDescription="@string/share" android:layout_width="30dp" android:layout_height="30dp" - app:sparkbutton_iconSize="30dp" /> + android:layout_marginStart="15dp" + android:contentDescription="@string/share" + app:sparkbutton_activeImage="@drawable/ic_share_media" + app:sparkbutton_iconSize="30dp" + app:sparkbutton_inActiveImage="@drawable/ic_share_media" /> <TextView - android:layout_marginTop="5dp" android:id="@+id/pf_date" android:layout_width="wrap_content" - android:layout_height="wrap_content" /> + android:layout_height="wrap_content" + android:layout_marginTop="5dp" /> </LinearLayout> |