Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBackgroundDark"
- android:fillViewport="true">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <ImageView
- android:id="@+id/create_post_image_view"
- android:layout_width="0dp"
- android:layout_height="280dp"
- android:scaleType="fitXY"
- android:visibility="gone"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/manage_notification_toolbar"
- tools:visibility="gone" />
- <ProgressBar
- android:id="@+id/create_photo_drama_post_progressbar"
- style="?android:attr/progressBarStyleLarge"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:visibility="gone"
- app:layout_constraintBottom_toBottomOf="@+id/create_post_image_view"
- app:layout_constraintEnd_toEndOf="@+id/create_post_image_view"
- app:layout_constraintStart_toStartOf="@+id/create_post_image_view"
- app:layout_constraintTop_toTopOf="@+id/create_post_image_view"
- tools:visibility="gone" />
- <FrameLayout
- android:id="@+id/video_view_frame_layout"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:visibility="gone"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/manage_notification_toolbar"
- tools:visibility="visible">
- <VideoView
- android:id="@+id/create_post_video_view"
- android:layout_width="match_parent"
- android:layout_height="260dp" />
- </FrameLayout>
- <ProgressBar
- android:id="@+id/create_video_post_progressbar"
- style="?android:attr/progressBarStyleLarge"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:visibility="gone"
- app:layout_constraintBottom_toBottomOf="@+id/video_view_frame_layout"
- app:layout_constraintEnd_toEndOf="@+id/video_view_frame_layout"
- app:layout_constraintStart_toStartOf="@+id/video_view_frame_layout"
- app:layout_constraintTop_toTopOf="@+id/video_view_frame_layout"
- tools:visibility="visible" />
- <EditText
- android:id="@+id/create_post_edit_text"
- android:layout_width="0dp"
- android:layout_height="110dp"
- android:gravity="start|top"
- android:hint="Enter your text"
- android:textColor="@color/colorWhite"
- android:justificationMode="inter_word"
- android:textColorHint="@color/colorHint"
- android:textSize="@dimen/font_size_16sp"
- android:fontFamily="@font/poppins_regular"
- android:background="@drawable/border_stroke_rounder"
- android:layout_margin="@dimen/margin_or_padding_5dp"
- android:paddingTop="@dimen/margin_or_padding_5dp"
- android:paddingBottom="@dimen/margin_or_padding_5dp"
- android:paddingStart="@dimen/margin_or_padding_10dp"
- android:paddingEnd="@dimen/margin_or_padding_10dp"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/create_post_barrier"
- tools:targetApi="o" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/margin_or_padding_16dp"
- android:layout_marginBottom="@dimen/margin_or_padding_16dp"
- android:background="@drawable/border_radius_rounder_dark"
- android:fontFamily="@font/poppins_regular"
- android:paddingStart="@dimen/margin_or_padding_18dp"
- android:paddingTop="@dimen/margin_or_padding_5dp"
- android:paddingEnd="@dimen/margin_or_padding_18dp"
- android:paddingBottom="@dimen/margin_or_padding_5dp"
- android:text="@string/edit"
- android:textAlignment="center"
- android:textColor="@color/colorWhite"
- android:textSize="@dimen/font_size_14sp"
- app:layout_constraintBottom_toBottomOf="@+id/create_post_image_view"
- app:layout_constraintStart_toStartOf="parent" />
- <TextView
- android:id="@+id/post_visibility_text_view"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:fontFamily="@font/poppins_regular"
- android:gravity="center_vertical"
- android:padding="@dimen/margin_or_padding_12dp"
- android:text="@string/post_visibility"
- android:textColor="@color/colorWhite"
- android:textSize="@dimen/font_size_14sp"
- app:layout_constraintEnd_toStartOf="@+id/post_visibility_option_text_view"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/create_post_edit_text" />
- <TextView
- android:id="@+id/post_visibility_option_text_view"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/margin_or_padding_5dp"
- android:drawableEnd="@drawable/ic_arrow_drop_down"
- android:fontFamily="@font/poppins_bold"
- android:gravity="center"
- android:padding="@dimen/margin_or_padding_10dp"
- android:text="@string/friends"
- android:textColor="@color/colorWhite"
- android:textSize="@dimen/font_size_16sp"
- app:layout_constraintBottom_toBottomOf="@id/post_visibility_text_view"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="@+id/post_visibility_text_view" />
- <!--post visibility start-->
- <TextView
- android:id="@+id/comment_on_off_text_view"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:fontFamily="@font/poppins_regular"
- android:gravity="center_vertical"
- android:paddingTop="@dimen/margin_or_padding_12dp"
- android:paddingBottom="@dimen/margin_or_padding_12dp"
- android:text="@string/comments"
- android:textColor="@color/colorWhite"
- android:textSize="@dimen/font_size_14sp"
- app:layout_constraintEnd_toStartOf="@+id/comment_on_off_switch_text_view"
- app:layout_constraintStart_toStartOf="@+id/post_visibility_divider_view"
- app:layout_constraintTop_toBottomOf="@+id/post_visibility_divider_view" />
- <TextView
- android:id="@+id/share_location_on_off_text_view"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:fontFamily="@font/poppins_regular"
- android:gravity="center_vertical"
- android:paddingTop="@dimen/margin_or_padding_12dp"
- android:paddingBottom="@dimen/margin_or_padding_12dp"
- android:text="@string/share_location"
- android:textColor="@color/colorWhite"
- android:textSize="@dimen/font_size_14sp"
- app:layout_constraintEnd_toStartOf="@+id/comment_on_off_switch_text_view"
- app:layout_constraintStart_toStartOf="@+id/comment_on_off_divider_view"
- app:layout_constraintTop_toBottomOf="@+id/comment_on_off_divider_view" />
- <TextView
- android:id="@+id/gender_visibility_text_view"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:fontFamily="@font/poppins_regular"
- android:gravity="center_vertical"
- android:paddingTop="@dimen/margin_or_padding_12dp"
- android:paddingBottom="@dimen/margin_or_padding_12dp"
- android:text="@string/gender"
- android:textColor="@color/colorWhite"
- android:textSize="@dimen/font_size_14sp"
- app:layout_constraintEnd_toStartOf="@+id/gender_visibility_option_text_view"
- app:layout_constraintStart_toStartOf="@+id/share_location_on_off_divider_view"
- app:layout_constraintTop_toBottomOf="@+id/share_location_on_off_divider_view" />
- <!--post visibility end-->
- <!--comments enable start-->
- <TextView
- android:id="@+id/gender_visibility_option_text_view"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/margin_or_padding_5dp"
- android:drawableEnd="@drawable/ic_arrow_drop_down"
- android:fontFamily="@font/poppins_bold"
- android:gravity="center"
- android:padding="@dimen/margin_or_padding_10dp"
- android:text="@string/all"
- android:textColor="@color/colorWhite"
- android:textSize="@dimen/font_size_16sp"
- app:layout_constraintBottom_toBottomOf="@id/gender_visibility_text_view"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="@+id/gender_visibility_text_view" />
- <View
- android:id="@+id/post_visibility_divider_view"
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:layout_marginStart="@dimen/margin_or_padding_12dp"
- android:layout_marginEnd="@dimen/margin_or_padding_12dp"
- android:background="@color/colorWhiteTranslucent"
- app:layout_constraintEnd_toEndOf="@+id/post_visibility_option_text_view"
- app:layout_constraintStart_toStartOf="@+id/post_visibility_text_view"
- app:layout_constraintTop_toBottomOf="@+id/post_visibility_text_view" />
- <View
- android:id="@+id/comment_on_off_divider_view"
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:background="@color/colorWhiteTranslucent"
- app:layout_constraintEnd_toEndOf="@+id/comment_on_off_switch_text_view"
- app:layout_constraintStart_toStartOf="@+id/comment_on_off_text_view"
- app:layout_constraintTop_toBottomOf="@+id/comment_on_off_text_view" />
- <!--comments enable end-->
- <!--share location enable start-->
- <View
- android:id="@+id/share_location_on_off_divider_view"
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:background="@color/colorWhiteTranslucent"
- app:layout_constraintEnd_toEndOf="@+id/share_location_on_off_switch_text_view"
- app:layout_constraintStart_toStartOf="@+id/share_location_on_off_text_view"
- app:layout_constraintTop_toBottomOf="@+id/share_location_on_off_text_view" />
- <androidx.appcompat.widget.SwitchCompat
- android:id="@+id/comment_on_off_switch_text_view"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/margin_or_padding_16dp"
- android:checked="true"
- android:padding="@dimen/margin_or_padding_10dp"
- android:textColor="@color/colorWhite"
- android:thumb="@drawable/item_switch_thumbs"
- app:layout_constraintBottom_toBottomOf="@+id/comment_on_off_text_view"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="@+id/comment_on_off_text_view"
- app:track="@drawable/item_switch_track" />
- <androidx.appcompat.widget.SwitchCompat
- android:id="@+id/share_location_on_off_switch_text_view"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/margin_or_padding_16dp"
- android:checked="true"
- android:padding="@dimen/margin_or_padding_10dp"
- android:textColor="@color/colorWhite"
- android:thumb="@drawable/item_switch_thumbs"
- app:layout_constraintBottom_toBottomOf="@id/share_location_on_off_text_view"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="@+id/share_location_on_off_text_view"
- app:track="@drawable/item_switch_track" />
- <!--share location enable end-->
- <!--gender visibility end-->
- <androidx.constraintlayout.widget.Barrier
- android:id="@+id/create_post_barrier"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:barrierDirection="bottom"
- app:constraint_referenced_ids="create_post_image_view,video_view_frame_layout" />
- <include
- android:id="@+id/manage_notification_toolbar"
- layout="@layout/item_toolbar_with_navigate_cell"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <!--gender visibility end-->
- </androidx.constraintlayout.widget.ConstraintLayout>
- </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement