opt share
This commit is contained in:
@@ -1013,6 +1013,8 @@
|
||||
<dimen name="dp_997">498.5000px</dimen>
|
||||
<dimen name="dp_998">499.0000px</dimen>
|
||||
<dimen name="dp_999">499.5000px</dimen>
|
||||
<dimen name="dp_1300">650.0000px</dimen>
|
||||
|
||||
<dimen name="sp_6">3.0000px</dimen>
|
||||
<dimen name="sp_7">3.5000px</dimen>
|
||||
<dimen name="sp_8">4.0000px</dimen>
|
||||
|
||||
@@ -1016,6 +1016,7 @@
|
||||
<dimen name="dp_997">997px</dimen>
|
||||
<dimen name="dp_998">998px</dimen>
|
||||
<dimen name="dp_999">999px</dimen>
|
||||
<dimen name="dp_1300">1300px</dimen>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1016,6 +1016,7 @@
|
||||
<dimen name="dp_997">997px</dimen>
|
||||
<dimen name="dp_998">998px</dimen>
|
||||
<dimen name="dp_999">999px</dimen>
|
||||
<dimen name="dp_1300">1300px</dimen>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -5,11 +5,10 @@ import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.mogo.module.share.R;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
|
||||
@@ -21,7 +20,10 @@ import com.mogo.utils.logger.Logger;
|
||||
*/
|
||||
public class LaucherShareDialog extends Dialog implements View.OnClickListener {
|
||||
private TextView txtOk;
|
||||
private ImageView mBackImage;
|
||||
private RelativeLayout mBlockLayout;
|
||||
private RelativeLayout mOilPriceLayout;
|
||||
private RelativeLayout mTrafficCheckLayout;
|
||||
private RelativeLayout mRoadClosureLayout;
|
||||
private Context mContext;
|
||||
|
||||
|
||||
@@ -44,22 +46,38 @@ public class LaucherShareDialog extends Dialog implements View.OnClickListener {
|
||||
private void initView() {
|
||||
setContentView(R.layout.launcher_dialog_share);
|
||||
txtOk = findViewById(R.id.btn_share_title);
|
||||
mBackImage = findViewById(R.id.btn_back);
|
||||
mBlockLayout = findViewById(R.id.btn_block_layout);
|
||||
mOilPriceLayout = findViewById(R.id.oil_price_layout);
|
||||
mTrafficCheckLayout = findViewById(R.id.traffic_check_layout);
|
||||
mRoadClosureLayout = findViewById(R.id.road_closure_layout);
|
||||
}
|
||||
|
||||
private void initListener() {
|
||||
mBackImage.setOnClickListener(this);
|
||||
|
||||
private void initListener() {
|
||||
mBlockLayout.setOnClickListener(this);
|
||||
mOilPriceLayout.setOnClickListener(this);
|
||||
mTrafficCheckLayout.setOnClickListener(this);
|
||||
mRoadClosureLayout.setOnClickListener(this);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
int id = view.getId();
|
||||
if (id == R.id.btn_back) {
|
||||
if (id == R.id.btn_block_layout) {
|
||||
sendShareReceiver();
|
||||
dismiss();
|
||||
} else if (id == R.id.oil_price_layout) {
|
||||
//TODO
|
||||
|
||||
} else if (id == R.id.traffic_check_layout) {
|
||||
//TODO
|
||||
|
||||
} else if (id == R.id.road_closure_layout) {
|
||||
//TODO
|
||||
|
||||
}
|
||||
|
||||
dismiss();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -70,6 +88,7 @@ public class LaucherShareDialog extends Dialog implements View.OnClickListener {
|
||||
Intent intent = new Intent();
|
||||
intent.setAction("com.zhidao.roadcondition.share");
|
||||
intent.putExtra("type", "1");
|
||||
intent.putExtra("keyWords", "xx");
|
||||
mContext.sendBroadcast(intent);
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="@dimen/dp_20" />
|
||||
<solid android:color="@color/color_545362"/>
|
||||
</shape>
|
||||
@@ -1,41 +1,144 @@
|
||||
<?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:background="@color/color_545362"
|
||||
android:layout_width="1980dp"
|
||||
android:layout_height="1080dp">
|
||||
android:layout_width="@dimen/dp_1300"
|
||||
android:layout_height="@dimen/dp_600"
|
||||
android:background="@drawable/shape_bg_222533_20px">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_share_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="1300dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp_60"
|
||||
android:layout_marginBottom="@dimen/dp_35"
|
||||
android:clickable="true"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
android:text="我要分享"
|
||||
android:layout_marginTop="@dimen/dp_80"
|
||||
android:gravity="center"
|
||||
android:text="一 我要分享 一"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/dp_30" />
|
||||
|
||||
android:textSize="@dimen/dp_40" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_below="@+id/btn_share_title"
|
||||
android:id="@+id/tu_block_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/btn_share_title"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp_64">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_back"
|
||||
android:layout_width="@dimen/dp_90"
|
||||
android:layout_height="@dimen/dp_90"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_marginLeft="@dimen/dp_50"
|
||||
android:layout_marginTop="@dimen/dp_65"
|
||||
android:src="@drawable/main_video_play_btn_normal" />
|
||||
<RelativeLayout
|
||||
android:id="@+id/btn_block_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_150">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/block_up_iv"
|
||||
android:layout_width="@dimen/dp_160"
|
||||
android:layout_height="@dimen/dp_160"
|
||||
android:src="@drawable/share_block_up" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/block_up_tv"
|
||||
android:layout_width="@dimen/dp_160"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/block_up_iv"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:gravity="center"
|
||||
android:text="拥堵"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/dp_32"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/oil_price_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_120"
|
||||
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:src="@drawable/share_oil_price" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/oil_price_tv"
|
||||
android:layout_width="@dimen/dp_160"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/oil_price_iv"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:gravity="center"
|
||||
android:text="油价"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/dp_32"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/traffic_check_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_120"
|
||||
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:src="@drawable/share_traffic_check" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/traffic_check_tv"
|
||||
android:layout_width="@dimen/dp_160"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/traffic_check_iv"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:gravity="center"
|
||||
android:text="交通检查"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/dp_32"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/road_closure_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_120"
|
||||
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:src="@drawable/share_road_closure" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/road_closure_tv"
|
||||
android:layout_width="@dimen/dp_160"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/road_closure_iv"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:gravity="center"
|
||||
android:text="封路"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/dp_32"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/btn_block_layout"
|
||||
android:layout_marginTop="@dimen/dp_55"
|
||||
android:gravity="center"
|
||||
android:text="可以对小智说:分享拥堵、分享油价、分享查车、分享封路"
|
||||
android:textColor="@color/white_40"
|
||||
android:textSize="@dimen/dp_28"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -7,6 +7,7 @@
|
||||
<color name="red_tips">#FF1B1B</color>
|
||||
<color name="white">#FFFFFF</color>
|
||||
<color name="white_50">#80FFFFFF</color>
|
||||
<color name="white_40">#99FFFFFF</color>
|
||||
<color name="color_F8F8F8">#F8F8F8</color>
|
||||
<color name="color_3">#333333</color>
|
||||
<color name="color_DADAE2">#DADAE2</color>
|
||||
@@ -14,5 +15,6 @@
|
||||
<color name="color_191C25">#99191C25</color>
|
||||
<color name="color_666666">#666666</color>
|
||||
<color name="color_999999">#999999</color>
|
||||
<color name="color_000000">#000000</color>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -229,7 +229,7 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
|
||||
*/
|
||||
private void handleRoadLineMessage() {
|
||||
mMogoSocketManager = (IMogoSocketManager) ARouter.getInstance().build(MogoServicePaths.PATH_SOCKET_MANAGER).navigation();
|
||||
mMogoSocketManager.registerOnMessageListener(1, new IMogoOnMessageListener<MarkerResponse>() {
|
||||
mMogoSocketManager.registerOnMessageListener(401005, new IMogoOnMessageListener<MarkerResponse>() {
|
||||
@Override
|
||||
public Class<MarkerResponse> target() {
|
||||
return MarkerResponse.class;
|
||||
@@ -237,14 +237,13 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
|
||||
|
||||
@Override
|
||||
public void onMsgReceived(MarkerResponse obj) {
|
||||
Logger.e(TAG, "onMsgReceived obj= " + obj);
|
||||
Logger.e(TAG, "handleRoadLineMessage onMsgReceived obj= " + obj);
|
||||
getRoadLineData();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @param view
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user