opt share ui
This commit is contained in:
@@ -30,13 +30,13 @@ public class LaucherShareDialog extends Dialog implements View.OnClickListener {
|
||||
|
||||
|
||||
public LaucherShareDialog(@NonNull Context context) {
|
||||
super(context);
|
||||
super(context, R.style.BottomDialog);
|
||||
this.mContext = context;
|
||||
getWindow().setBackgroundDrawableResource(android.R.color.transparent);
|
||||
}
|
||||
|
||||
public LaucherShareDialog(@NonNull Context context, int themeResId) {
|
||||
super(context, R.style.Theme_AppCompat_Dialog);
|
||||
super(context, R.style.BottomDialog);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 6.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.0 KiB |
@@ -1,21 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="@dimen/dp_1300"
|
||||
android:layout_height="@dimen/dp_600"
|
||||
android:layout_width="@dimen/share_module_width"
|
||||
android:layout_height="@dimen/share_module_height"
|
||||
android:background="@drawable/shape_bg_222533_20px">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_share_title"
|
||||
android:layout_width="1300dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_marginTop="@dimen/dp_80"
|
||||
android:layout_marginTop="@dimen/share_module_title_margin_top"
|
||||
android:gravity="center"
|
||||
android:text="一 我要分享 一"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/dp_40" />
|
||||
android:textSize="@dimen/share_module_title_content" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/tu_block_layout"
|
||||
@@ -23,30 +23,30 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/btn_share_title"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp_64">
|
||||
android:layout_marginTop="@dimen/share_module_margin_top">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/btn_block_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_150">
|
||||
android:layout_marginLeft="@dimen/share_module_first_margin_left">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/block_up_iv"
|
||||
android:layout_width="@dimen/dp_160"
|
||||
android:layout_height="@dimen/dp_160"
|
||||
android:layout_width="@dimen/share_module_image_width"
|
||||
android:layout_height="@dimen/share_module_image_width"
|
||||
android:src="@drawable/share_block_up" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/block_up_tv"
|
||||
android:layout_width="@dimen/dp_160"
|
||||
android:layout_width="@dimen/share_module_image_width"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/block_up_iv"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:layout_marginTop="@dimen/share_module_tv_margin_top"
|
||||
android:gravity="center"
|
||||
android:text="拥堵"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/dp_32"
|
||||
android:textSize="@dimen/share_module_item"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -54,25 +54,25 @@
|
||||
android:id="@+id/oil_price_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_120"
|
||||
android:layout_marginLeft="@dimen/share_module_margin_left"
|
||||
android:layout_toRightOf="@+id/btn_block_layout">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/oil_price_iv"
|
||||
android:layout_width="@dimen/dp_160"
|
||||
android:layout_height="@dimen/dp_160"
|
||||
android:layout_width="@dimen/share_module_image_width"
|
||||
android:layout_height="@dimen/share_module_image_width"
|
||||
android:src="@drawable/share_oil_price" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/oil_price_tv"
|
||||
android:layout_width="@dimen/dp_160"
|
||||
android:layout_width="@dimen/share_module_image_width"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/oil_price_iv"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:layout_marginTop="@dimen/share_module_tv_margin_top"
|
||||
android:gravity="center"
|
||||
android:text="油价"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/dp_32"
|
||||
android:textSize="@dimen/share_module_item"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -80,25 +80,25 @@
|
||||
android:id="@+id/traffic_check_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_120"
|
||||
android:layout_marginLeft="@dimen/share_module_margin_left"
|
||||
android:layout_toRightOf="@+id/oil_price_layout">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/traffic_check_iv"
|
||||
android:layout_width="@dimen/dp_160"
|
||||
android:layout_height="@dimen/dp_160"
|
||||
android:layout_width="@dimen/share_module_image_width"
|
||||
android:layout_height="@dimen/share_module_image_width"
|
||||
android:src="@drawable/share_traffic_check" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/traffic_check_tv"
|
||||
android:layout_width="@dimen/dp_160"
|
||||
android:layout_width="@dimen/share_module_image_width"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/traffic_check_iv"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:layout_marginTop="@dimen/share_module_tv_margin_top"
|
||||
android:gravity="center"
|
||||
android:text="交通检查"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/dp_32"
|
||||
android:textSize="@dimen/share_module_item"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -106,25 +106,25 @@
|
||||
android:id="@+id/road_closure_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_120"
|
||||
android:layout_marginLeft="@dimen/share_module_margin_left"
|
||||
android:layout_toRightOf="@+id/traffic_check_layout">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/road_closure_iv"
|
||||
android:layout_width="@dimen/dp_160"
|
||||
android:layout_height="@dimen/dp_160"
|
||||
android:layout_width="@dimen/share_module_image_width"
|
||||
android:layout_height="@dimen/share_module_image_width"
|
||||
android:src="@drawable/share_road_closure" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/road_closure_tv"
|
||||
android:layout_width="@dimen/dp_160"
|
||||
android:layout_width="@dimen/share_module_image_width"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/road_closure_iv"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:layout_marginTop="@dimen/share_module_tv_margin_top"
|
||||
android:gravity="center"
|
||||
android:text="封路"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/dp_32"
|
||||
android:textSize="@dimen/share_module_item"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -133,11 +133,11 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/btn_block_layout"
|
||||
android:layout_marginTop="@dimen/dp_55"
|
||||
android:layout_marginTop="@dimen/share_module_bottom_margin_top"
|
||||
android:gravity="center"
|
||||
android:text="可以对小智说:分享拥堵、分享油价、分享查车、分享封路"
|
||||
android:textColor="@color/white_40"
|
||||
android:textSize="@dimen/dp_28"
|
||||
android:textSize="@dimen/share_module_bottom_size"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="share_module_width">693px</dimen>
|
||||
<dimen name="share_module_height">320px</dimen>
|
||||
<dimen name="share_module_margin_top">34px</dimen>
|
||||
<dimen name="share_module_title_margin_top">43px</dimen>
|
||||
<dimen name="share_module_first_margin_left">80px</dimen>
|
||||
<dimen name="share_module_margin_left">64px</dimen>
|
||||
<dimen name="share_module_tv_margin_top">15px</dimen>
|
||||
<dimen name="share_module_image_width">85px</dimen>
|
||||
<dimen name="share_module_bottom_margin_top">28px</dimen>
|
||||
|
||||
<!--字体-->
|
||||
<dimen name="share_module_title_content">22px</dimen>
|
||||
<dimen name="share_module_item">18px</dimen>
|
||||
<dimen name="share_module_bottom_size">15px</dimen>
|
||||
|
||||
</resources>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="share_module_width">1300px</dimen>
|
||||
<dimen name="share_module_height">600px</dimen>
|
||||
<dimen name="share_module_margin_top">64px</dimen>
|
||||
<dimen name="share_module_title_margin_top">80px</dimen>
|
||||
<dimen name="share_module_first_margin_left">150px</dimen>
|
||||
<dimen name="share_module_margin_left">120px</dimen>
|
||||
<dimen name="share_module_tv_margin_top">30px</dimen>
|
||||
<dimen name="share_module_image_width">160px</dimen>
|
||||
<dimen name="share_module_bottom_margin_top">55px</dimen>
|
||||
|
||||
<!--字体-->
|
||||
<dimen name="share_module_title_content">40px</dimen>
|
||||
<dimen name="share_module_item">32px</dimen>
|
||||
<dimen name="share_module_bottom_size">28px</dimen>
|
||||
|
||||
</resources>
|
||||
|
||||
|
||||
@@ -16,5 +16,6 @@
|
||||
<color name="color_666666">#666666</color>
|
||||
<color name="color_999999">#999999</color>
|
||||
<color name="color_000000">#000000</color>
|
||||
<color name="all_transparent_white">#00FFFFFF</color>
|
||||
|
||||
</resources>
|
||||
|
||||
20
modules/mogo-module-share/src/main/res/values/dimens.xml
Normal file
20
modules/mogo-module-share/src/main/res/values/dimens.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="share_module_width">1300px</dimen>
|
||||
<dimen name="share_module_height">600px</dimen>
|
||||
<dimen name="share_module_margin_top">64px</dimen>
|
||||
<dimen name="share_module_title_margin_top">80px</dimen>
|
||||
<dimen name="share_module_first_margin_left">150px</dimen>
|
||||
<dimen name="share_module_margin_left">120px</dimen>
|
||||
<dimen name="share_module_tv_margin_top">30px</dimen>
|
||||
<dimen name="share_module_image_width">160px</dimen>
|
||||
<dimen name="share_module_bottom_margin_top">55px</dimen>
|
||||
|
||||
<!--字体-->
|
||||
<dimen name="share_module_title_content">40px</dimen>
|
||||
<dimen name="share_module_item">32px</dimen>
|
||||
<dimen name="share_module_bottom_size">28px</dimen>
|
||||
|
||||
</resources>
|
||||
|
||||
|
||||
16
modules/mogo-module-share/src/main/res/values/styles.xml
Normal file
16
modules/mogo-module-share/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<style name="BottomDialog" parent="AlertDialog.AppCompat">
|
||||
<item name="android:windowIsFloating">true</item>
|
||||
<item name="android:windowFrame">@null</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
<item name="android:backgroundDimEnabled">true</item>
|
||||
<item name="android:windowContentOverlay">@null</item>
|
||||
<item name="android:fullBright">@color/all_transparent_white</item>
|
||||
<item name="android:fullDark">@color/all_transparent_white</item>
|
||||
<item name="android:topBright">@color/all_transparent_white</item>
|
||||
<item name="android:topDark">@color/all_transparent_white</item>
|
||||
<item name="android:borderlessButtonStyle">@color/all_transparent_white</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user