完成分享对话框动态添加的功能,待接入服务端
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/flShareDialogContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/share_module_height"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:minWidth="@dimen/module_share_container_min_width"
|
||||
android:background="@drawable/module_share_dialog_bg"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="65px"
|
||||
android:paddingRight="65px"
|
||||
android:paddingBottom="58px">
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_share_title"
|
||||
@@ -31,8 +31,12 @@
|
||||
android:id="@+id/moduleShareBtnGridLayout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/module_share_container_padding_bottom"
|
||||
android:clickable="true"
|
||||
android:columnCount="5"
|
||||
android:layout_marginTop="44px" />
|
||||
android:paddingLeft="@dimen/module_share_container_padding_left"
|
||||
android:paddingRight="@dimen/module_share_container_padding_right" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
||||
@@ -3,22 +3,31 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="@dimen/module_share_btn_margin_left"
|
||||
android:paddingTop="@dimen/module_share_btn_margin_top">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="@dimen/module_share_icon_bg_width"
|
||||
android:layout_height="@dimen/module_share_icon_bg_width"
|
||||
android:background="@drawable/module_share_btn_bg">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivShareIcon"
|
||||
android:layout_width="@dimen/module_share_icon_width"
|
||||
android:layout_height="@dimen/module_share_icon_width"
|
||||
android:layout_gravity="center" />
|
||||
</FrameLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_160"
|
||||
android:layout_height="@dimen/dp_160"
|
||||
android:id="@+id/ivShareIcon"
|
||||
android:src="@drawable/share_road_closure" />
|
||||
|
||||
<Space
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/share_module_tv_margin_top" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvShareContent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/tvShareContent"
|
||||
android:text="上报拥堵"
|
||||
android:textColor="@color/module_share_dialog_icon_text_color"
|
||||
android:textSize="@dimen/share_module_item"
|
||||
|
||||
@@ -21,6 +21,16 @@
|
||||
<dimen name="share_module_bottom_size">28px</dimen>
|
||||
<dimen name="share_module_btn_text_size">32px</dimen>
|
||||
|
||||
<dimen name="module_share_btn_margin_left">114px</dimen>
|
||||
<dimen name="module_share_btn_margin_top">83px</dimen>
|
||||
<dimen name="module_share_container_padding_left">6px</dimen>
|
||||
<dimen name="module_share_container_padding_right">123px</dimen>
|
||||
<dimen name="module_share_container_padding_bottom">110px</dimen>
|
||||
|
||||
<dimen name="module_share_icon_width">75px</dimen>
|
||||
<dimen name="module_share_icon_bg_width">165px</dimen>
|
||||
<dimen name="module_share_container_min_width">967px</dimen>
|
||||
|
||||
</resources>
|
||||
|
||||
|
||||
|
||||
@@ -22,4 +22,14 @@
|
||||
<dimen name="share_module_bottom_size">15px</dimen>
|
||||
<dimen name="share_module_btn_text_size">17.5px</dimen>
|
||||
|
||||
<dimen name="module_share_btn_margin_left">60px</dimen>
|
||||
<dimen name="module_share_btn_margin_top">44px</dimen>
|
||||
<dimen name="module_share_container_padding_left">5px</dimen>
|
||||
<dimen name="module_share_container_padding_right">65px</dimen>
|
||||
<dimen name="module_share_container_padding_bottom">58px</dimen>
|
||||
|
||||
<dimen name="module_share_icon_width">40px</dimen>
|
||||
<dimen name="module_share_icon_bg_width">89px</dimen>
|
||||
<dimen name="module_share_container_min_width">514px</dimen>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user