Files
vtosters/smali/res/layout/fragment_new_poster.xml
T
2022-06-19 13:11:07 +03:00

164 lines
7.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="?background_content"
android:orientation="vertical">
<com.google.android.material.appbar.AppBarLayout
android:id="@id/attach_appbar_layout"
style="@style/VKAppBar"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.Toolbar
android:id="@id/toolbar"
android:layout_width="fill_parent"
android:layout_height="?actionBarSize"
android:background="?header_alternate_background"
app:contentInsetStartWithNavigation="0.0dip"
app:title="@string/newposter_title"
app:titleTextAppearance="@style/ToolbarTitle" />
</com.google.android.material.appbar.AppBarLayout>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<LinearLayout
android:id="@id/newposter_content_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingTop="20.0dip"
android:paddingBottom="68.0dip">
<TextView
android:id="@id/newposter_qualitive_text"
style="@style/VKUIText.Text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16.0dip"
android:layout_marginRight="16.0dip"
android:layout_marginBottom="20.0dip"
android:gravity="center_horizontal"
android:text="@string/newposter_qualitative_poster"
android:textColor="?text_primary" />
<com.vk.attachpicker.widget.AspectRatioLinearLayout
android:id="@id/newposter_placeholder_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16.0dip"
android:layout_marginRight="16.0dip"
android:background="@drawable/newposter_placeholder_ripple_background"
android:gravity="center"
android:orientation="vertical"
android:paddingLeft="16.0dip"
android:paddingRight="16.0dip">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_add_outline_28"
android:tint="?accent" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16.0dip"
android:fontFamily="sans-serif-medium"
android:text="@string/newposter_add_poster"
android:textAllCaps="true"
android:textColor="?accent" />
<TextView
style="@style/VKUIText.Text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8.0dip"
android:gravity="center"
android:text="@string/newposter_text"
android:textColor="?text_secondary" />
</com.vk.attachpicker.widget.AspectRatioLinearLayout>
<com.vk.attachpicker.widget.AspectRatioFrameLayout
android:id="@id/newposter_image_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16.0dip"
android:layout_marginRight="16.0dip"
android:visibility="gone">
<com.vk.newsfeed.posting.newposter.NewPosterImageView
android:id="@id/newposter_image_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="?background_content"
app:roundAsCircle="false"
app:roundBottomLeft="true"
app:roundBottomRight="true"
app:roundTopLeft="true"
app:roundTopRight="true"
app:roundedCornerRadius="@dimen/newposter_image_radius" />
<TextView
android:id="@id/newposter_placeholder_text_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:text="@string/what_new"
android:textSize="22.0sp" />
</com.vk.attachpicker.widget.AspectRatioFrameLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@id/newposter_colors_recycler_view"
android:layout_width="wrap_content"
android:layout_height="32.0dip"
android:layout_marginTop="20.0dip"
android:clipToPadding="false"
android:visibility="gone" />
<TextView
android:id="@id/newposter_result_text"
style="@style/VKUIText.Text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16.0dip"
android:layout_marginTop="20.0dip"
android:layout_marginRight="16.0dip"
android:gravity="center_horizontal"
android:text="@string/newposter_after_load"
android:textColor="?text_primary" />
</LinearLayout>
</ScrollView>
<View
android:id="@id/newposter_save_button_shadow"
android:layout_width="fill_parent"
android:layout_height="8.0dip"
android:layout_gravity="bottom"
android:layout_marginBottom="48.0dip"
android:background="@drawable/picker_bg_attach_bottom_toolbar_shadow"
android:visibility="gone" />
<TextView
android:id="@id/newposter_save_button"
android:layout_width="fill_parent"
android:layout_height="48.0dip"
android:layout_gravity="bottom"
android:background="@drawable/picker_btn_blue"
android:fontFamily="sans-serif-medium"
android:foreground="?selectableItemBackground"
android:gravity="center"
android:text="@string/save"
android:textAllCaps="true"
android:textColor="?button_primary_foreground"
android:textSize="16.0sp"
android:visibility="gone" />
<com.vk.core.view.AppBarShadowView style="@style/PostingAppBarShadow" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>