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

456 lines
21 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:id="@id/posting_root_layout"
style="@style/WhiteTheme"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<androidx.core.widget.NestedScrollView
android:id="@id/posting_scroll_content"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginTop="?actionBarSize"
android:layout_marginBottom="@dimen/newsfeed_newpost_bottom_panel_height"
android:background="?background_content"
android:fillViewport="true"
android:scrollbars="vertical">
<LinearLayout
android:id="@id/posting_linear_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:clipChildren="false"
android:orientation="vertical">
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<com.vk.common.view.SelectionChangeEditText
android:id="@id/posting_edit_text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@null"
android:fontFamily="sans-serif-light"
android:hint="@string/what_new"
android:inputType="textCapSentences|textMultiLine"
android:maxLength="16384"
android:paddingLeft="16.0dip"
android:paddingTop="14.0dip"
android:paddingRight="16.0dip"
android:paddingBottom="14.0dip"
android:scrollbars="none"
android:textColor="?text_primary"
android:textColorHint="@color/light_gray"
android:textSize="23.0dip">
<requestFocus />
</com.vk.common.view.SelectionChangeEditText>
<com.vtosters.lite.ui.widget.RatioFrameLayout
android:id="@id/posting_poster_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="gone"
app:orientation="horizontal"
app:ratio="0.75">
<com.vk.core.view.VKViewPager
android:id="@id/posting_poster_background_pager"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:importantForAccessibility="no" />
<com.vk.newsfeed.views.poster.PosterEditText
android:id="@id/posting_poster_edit_text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:hint="@string/what_new"
android:inputType="textCapSentences|textMultiLine" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@id/posting_poster_mode_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="4.0dip"
android:background="@drawable/bg_color_posts_mode"
android:fontFamily="sans-serif-medium"
android:gravity="center"
android:letterSpacing="0.02"
android:paddingLeft="@dimen/poster_action_button_left_right_space"
android:paddingTop="@dimen/poster_action_button_top_bottom_space"
android:paddingRight="@dimen/poster_action_button_left_right_space"
android:paddingBottom="@dimen/poster_action_button_top_bottom_space"
android:textColor="@color/black"
android:textSize="14.0dip"
android:visibility="gone" />
</com.vtosters.lite.ui.widget.RatioFrameLayout>
</FrameLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@id/posting_attachments_recycler_view"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:clipChildren="false"
android:clipToPadding="false" />
<Space
android:layout_width="fill_parent"
android:layout_height="0.0dip"
android:layout_weight="1.0" />
<HorizontalScrollView
android:id="@id/posting_settings_scroll_view"
android:layout_width="fill_parent"
android:layout_height="@dimen/newsfeed_newpost_settings_layout_height"
android:layout_gravity="bottom"
android:clipToPadding="false"
android:paddingLeft="16.0dip"
android:paddingRight="16.0dip"
android:scrollbars="none">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:divider="@drawable/divider_post_suggest_list"
android:orientation="horizontal"
android:showDividers="middle">
<com.vk.core.view.TintTextView
android:id="@id/posting_setting_copyright_text"
style="@style/PostingSettingsTextView"
android:layout_width="wrap_content"
android:drawableStart="@drawable/link_16"
android:drawableEnd="@drawable/ic_dropdown_12"
android:text="@string/posting_settings_source"
android:textColor="@color/accent_blue"
android:visibility="gone"
app:backgroundTint="?accent"
app:drawableTint="?accent" />
<com.vk.core.view.TintTextView
android:id="@id/posting_setting_ad_text"
style="@style/PostingSettingsTextView"
android:layout_width="wrap_content"
android:drawableEnd="@drawable/ic_close_16"
android:text="@string/posting_settings_this_ad"
android:textColor="@color/accent_blue"
android:visibility="gone"
app:drawableLeftTint="?accent"
app:drawableRightTint="?accent" />
<com.vk.core.view.TintTextView
android:id="@id/posting_setting_visibility_text"
style="@style/PostingSettingsTextView"
android:layout_width="wrap_content"
android:drawableStart="@drawable/ic_user_outline_16"
android:drawableEnd="@drawable/ic_dropdown_12"
android:text="@string/newsfeed_newpost_for_all" />
<com.vk.core.view.TintTextView
android:id="@id/posting_setting_group_signature_text"
style="@style/PostingSettingsTextView"
android:layout_width="wrap_content"
android:drawableStart="@drawable/ic_user_outline_16"
android:text="@string/newsfeed_newpost_without_sign"
android:visibility="gone" />
<com.vk.core.view.TintTextView
android:id="@id/posting_setting_postpone_text"
style="@style/PostingSettingsTextView"
android:layout_width="wrap_content"
android:drawableStart="@drawable/ic_time_16"
android:drawableEnd="@drawable/ic_dropdown_12"
android:text="@string/posting_settings_now" />
<com.vk.core.view.TintTextView
android:id="@id/posting_setting_topic_text"
style="@style/PostingSettingsTextView.Iconless"
android:layout_width="wrap_content"
android:drawableEnd="@drawable/ic_dropdown_12"
android:drawableRight="@drawable/ic_dropdown_12"
android:text="@string/posting_settings_topic"
android:visibility="gone" />
</LinearLayout>
</HorizontalScrollView>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
<View
android:id="@id/posting_mention_select_stub"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@id/posting_author_layout"
android:layout_width="fill_parent"
android:layout_height="@dimen/newsfeed_newpost_authors_layout_height"
android:clickable="true"
android:focusable="true"
android:visibility="gone">
<TextView
style="@style/VKUIText.Deprecated.Subtitle"
android:layout_width="fill_parent"
android:layout_height="44.0dip"
android:background="?header_alternate_background"
android:fontFamily="sans-serif-medium"
android:gravity="center_vertical"
android:paddingLeft="16.0dip"
android:paddingRight="16.0dip"
android:text="@string/newsfeed_newpost_author"
android:textAllCaps="true"
android:textColor="?text_secondary"
android:textSize="13.0dip" />
<com.vk.lists.RecyclerPaginatedView
android:id="@id/posting_author_recycler_paginated_view"
android:layout_width="fill_parent"
android:layout_height="108.0dip"
android:layout_marginTop="44.0dip"
android:background="?header_alternate_background" />
<View
android:layout_width="fill_parent"
android:layout_height="24.0dip"
android:layout_marginTop="156.0dip"
android:background="@drawable/posting_shadow_toolbar" />
</FrameLayout>
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="?actionBarSize"
android:background="?header_alternate_background">
<androidx.appcompat.widget.AppCompatImageView
android:id="@id/posting_close_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="start|center"
android:layout_marginStart="2.0dip"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/close"
android:padding="12.0dip"
android:src="@drawable/ic_cancel_outline_28"
android:tint="?header_tint_alternate" />
<TextView
android:id="@id/posting_header_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="64.0dip"
android:fontFamily="?toolbar_font"
android:text="@string/new_status"
android:textColor="?text_muted"
android:textSize="23.0dip"
android:visibility="gone" />
<LinearLayout
android:id="@id/posting_sender_layout"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_marginStart="52.0dip"
android:layout_marginEnd="52.0dip"
android:background="?selectableItemBackground"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="12.0dip"
android:paddingRight="12.0dip"
android:visibility="gone">
<com.vk.imageloader.view.VKImageView
android:id="@id/posting_avatar_image"
android:layout_width="36.0dip"
android:layout_height="36.0dip"
app:placeholderImage="@drawable/user_placeholder"
app:roundAsCircle="true" />
<FrameLayout
android:id="@id/posting_user_name_layout"
android:layout_width="0.0dip"
android:layout_height="fill_parent"
android:layout_marginStart="12.0dip"
android:layout_marginEnd="6.0dip"
android:layout_weight="1.0">
<com.vtosters.lite.ui.CorrectlyMeasuringTextView
android:id="@id/posting_user_name_text"
style="@style/VKUIText.Title1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:ellipsize="end"
android:singleLine="true"
android:textColor="?text_muted"
android:textSize="16.0dip" />
<TextView
android:id="@id/posting_post_editing_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginTop="28.0dip"
android:fontFamily="sans-serif"
android:singleLine="true"
android:text="@string/newsfeed_newpost_post_editing"
android:textColor="?text_secondary"
android:textSize="14.0dip"
android:visibility="gone" />
</FrameLayout>
<androidx.appcompat.widget.AppCompatImageView
android:id="@id/posting_author_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_dropdown_16"
android:tint="?header_tint_alternate" />
</LinearLayout>
<ImageView
android:id="@id/posting_done_button"
android:layout_width="48.0dip"
android:layout_height="48.0dip"
android:layout_gravity="end|center"
android:layout_marginEnd="4.0dip"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/publish_now"
android:scaleType="center"
android:src="@drawable/ic_done_outline_28" />
</FrameLayout>
<View
android:id="@id/top_divider"
android:layout_width="fill_parent"
android:layout_height="@dimen/newsfeed_newpost_header_divider_height"
android:layout_marginStart="16.0dip"
android:layout_marginTop="56.0dip"
android:layout_marginEnd="16.0dip"
android:background="?separator_alpha" />
<FrameLayout
android:id="@id/posting_bottom_layout"
android:layout_width="fill_parent"
android:layout_height="@dimen/newsfeed_newpost_bottom_panel_height"
android:layout_gravity="bottom"
android:clipChildren="false"
android:clipToPadding="false"
android:paddingStart="2.0dip"
android:paddingEnd="2.0dip">
<androidx.appcompat.widget.AppCompatImageView
android:id="@id/posting_poster_button"
android:layout_width="@dimen/newsfeed_newpost_bottom_panel_button_width"
android:layout_height="fill_parent"
android:background="@drawable/highlight_unlimited"
android:contentDescription="@string/accessibility_posting_poster"
android:scaleType="center"
android:src="@drawable/ic_color_mode_24"
android:visibility="gone" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@id/posting_tab_photo_button"
style="@style/PostingAttachCategoryItem"
android:layout_width="@dimen/newsfeed_newpost_bottom_panel_button_width"
android:layout_height="fill_parent"
android:contentDescription="@string/newsfeed_newpost_tab_gallery"
android:src="@drawable/ic_picture_outline_28" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@id/posting_tab_market_button"
style="@style/PostingAttachCategoryItem"
android:layout_width="@dimen/newsfeed_newpost_bottom_panel_button_width"
android:layout_height="fill_parent"
android:contentDescription="@string/goods"
android:src="@drawable/ic_market_outline_28" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@id/posting_tab_music_button"
style="@style/PostingAttachCategoryItem"
android:layout_width="@dimen/newsfeed_newpost_bottom_panel_button_width"
android:layout_height="fill_parent"
android:contentDescription="@string/music"
android:src="@drawable/ic_music_outline_28" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@id/posting_tab_more_button"
style="@style/PostingAttachCategoryItem"
android:layout_width="@dimen/newsfeed_newpost_bottom_panel_button_width"
android:layout_height="fill_parent"
android:contentDescription="@string/more"
android:src="@drawable/ic_more_horizontal_28" />
<androidx.recyclerview.widget.RecyclerView
android:id="@id/posting_poster_preview_recycler_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginEnd="@dimen/newsfeed_newpost_bottom_panel_settings_button_width"
android:clipToPadding="false"
android:visibility="gone" />
<View
android:id="@id/posting_poster_preview_shadow_view"
android:layout_width="32.0dip"
android:layout_height="fill_parent"
android:layout_gravity="end"
android:layout_marginEnd="@dimen/newsfeed_newpost_bottom_panel_settings_button_width"
android:visibility="gone" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@id/posting_bottom_mention_button"
style="@style/PostingAttachCategoryItem"
android:layout_width="@dimen/newsfeed_newpost_bottom_panel_button_width"
android:layout_height="fill_parent"
android:layout_gravity="end"
android:layout_marginEnd="@dimen/newsfeed_newpost_bottom_panel_settings_button_width"
android:contentDescription="@string/mentions"
android:src="@drawable/ic_mention_outline_28" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@id/posting_bottom_settings_button"
style="@style/PostingAttachCategoryItem"
android:layout_width="@dimen/newsfeed_newpost_bottom_panel_settings_button_width"
android:layout_height="fill_parent"
android:layout_gravity="end"
android:contentDescription="@string/posting_settings_title"
android:foreground="@drawable/highlight_unlimited"
android:src="@drawable/ic_settings_outline_28" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@id/posting_bottom_name_hint_text"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:background="?background_content"
android:gravity="center"
android:paddingLeft="56.0dip"
android:paddingRight="56.0dip"
android:text="@string/posting_name_or_address"
android:textColor="?text_secondary"
android:textSize="14.0dip"
android:visibility="gone" />
<com.vk.im.ui.views.ColorProgressBar
android:id="@id/posting_bottom_progress_bar"
android:layout_width="20.0dip"
android:layout_height="20.0dip"
android:layout_gravity="center_vertical"
android:layout_marginStart="18.0dip"
android:color="?icon_secondary"
android:visibility="gone" />
</FrameLayout>
<View
android:id="@id/bottom_divider"
android:layout_width="fill_parent"
android:layout_height="0.5dip"
android:layout_gravity="bottom"
android:layout_marginStart="16.0dip"
android:layout_marginEnd="16.0dip"
android:layout_marginBottom="@dimen/newsfeed_newpost_bottom_panel_height"
android:background="?separator_alpha" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>