-Added styles list for dark and light themes -Updated libs -Auto refactored resources for easy editing -Improved amoled theme
104 lines
4.2 KiB
XML
104 lines
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout android:paddingBottom="6.0dip"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:vk="http://schemas.android.com/apk/res-auto">
|
|
|
|
<com.vk.imageloader.view.VKCircleImageView
|
|
android:id="@id/user_photo"
|
|
android:layout_width="48.0dip"
|
|
android:layout_height="48.0dip"
|
|
android:layout_marginTop="14.0dip"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_marginStart="@dimen/post_side_padding" />
|
|
|
|
<TextView
|
|
android:id="@id/tv_new_label"
|
|
android:visibility="gone"
|
|
android:layout_marginTop="2.5dip"
|
|
android:layout_alignTop="@id/user_photo"
|
|
android:layout_marginStart="-3.5dip"
|
|
android:layout_alignStart="@id/user_photo"
|
|
style="@style/NewLabel" />
|
|
|
|
<com.vtosters.lite.ui.OverlayLinearLayout
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical"
|
|
android:id="@id/post_profile_btn"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="48.0dip"
|
|
android:layout_alignTop="@id/user_photo"
|
|
android:layout_alignBottom="@id/user_photo"
|
|
android:paddingStart="48.0dip"
|
|
android:paddingEnd="16.0dip"
|
|
android:layout_marginEnd="@dimen/post_side_padding_info"
|
|
android:layout_alignStart="@id/user_photo"
|
|
vk:overlay="@drawable/highlight_post_header">
|
|
|
|
<TextView
|
|
android:textSize="15.0sp"
|
|
android:textColor="?text_name"
|
|
android:ellipsize="end"
|
|
android:id="@id/poster_name_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:layout_alignParentTop="true"
|
|
android:fontFamily="@string/font_family_medium"
|
|
android:paddingStart="12.0dip"
|
|
android:layout_toEndOf="@id/user_photo" />
|
|
|
|
<com.vtosters.lite.ui.LinkedTextView
|
|
android:textSize="14.0sp"
|
|
android:textColor="?text_subhead"
|
|
android:ellipsize="end"
|
|
android:gravity="start"
|
|
android:id="@id/post_info_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:layout_below="@id/poster_name_view"
|
|
android:layout_alignBottom="@id/user_photo"
|
|
android:lineSpacingExtra="2.0dip"
|
|
android:paddingStart="12.0dip"
|
|
android:layout_toEndOf="@id/user_photo" />
|
|
</com.vtosters.lite.ui.OverlayLinearLayout>
|
|
|
|
<ImageView
|
|
android:id="@id/subscribe_btn"
|
|
android:background="@drawable/highlight_circle"
|
|
android:layout_width="48.0dip"
|
|
android:layout_height="48.0dip"
|
|
android:layout_marginTop="4.0dip"
|
|
android:src="@drawable/ic_user_add_outline_24"
|
|
android:scaleType="center"
|
|
android:tint="?control_foreground"
|
|
android:layout_alignWithParentIfMissing="true"
|
|
android:contentDescription="@string/profile_subscribe"
|
|
android:layout_toStartOf="@id/post_options_btn" />
|
|
|
|
<ImageView
|
|
android:id="@id/unsubscribe_btn"
|
|
android:background="@drawable/highlight_circle"
|
|
android:layout_width="48.0dip"
|
|
android:layout_height="48.0dip"
|
|
android:layout_marginTop="4.0dip"
|
|
android:src="@drawable/ic_user_added_outline_24"
|
|
android:scaleType="center"
|
|
android:tint="?icon_secondary"
|
|
android:layout_alignWithParentIfMissing="true"
|
|
android:contentDescription="@string/profile_unsubscribe"
|
|
android:layout_toStartOf="@id/post_options_btn" />
|
|
|
|
<ImageView
|
|
android:id="@id/post_options_btn"
|
|
android:layout_width="36.0dip"
|
|
android:layout_height="48.0dip"
|
|
android:layout_marginTop="4.0dip"
|
|
android:scaleType="centerInside"
|
|
android:layout_alignParentTop="true"
|
|
android:contentDescription="@string/common_actions"
|
|
android:layout_marginEnd="@dimen/post_side_padding_menu"
|
|
android:layout_alignParentEnd="true" />
|
|
</RelativeLayout> |