1
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -22,7 +22,7 @@ import java.util.ArrayList;
|
|||||||
import tools.Config;
|
import tools.Config;
|
||||||
|
|
||||||
public class MainTabActivity extends BaseActivity<ActivityMainTabBinding>
|
public class MainTabActivity extends BaseActivity<ActivityMainTabBinding>
|
||||||
implements View.OnClickListener, MainFragment.OnFragmentInteractionListener,
|
implements View.OnClickListener,
|
||||||
Main1Fragment.OnFragmentInteractionListener,
|
Main1Fragment.OnFragmentInteractionListener,
|
||||||
Main2Fragment.OnFragmentInteractionListener,
|
Main2Fragment.OnFragmentInteractionListener,
|
||||||
Main3Fragment.OnFragmentInteractionListener,
|
Main3Fragment.OnFragmentInteractionListener,
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ public class GoodsInfoDialog extends BottomPopupView {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface OnGoodsSelectPropertyListener {
|
public interface OnGoodsSelectPropertyListener {
|
||||||
void onSelect(String code, int num);
|
void onSelect(String code, int num);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,265 +1,255 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
xmlns:tools="http://schemas.android.com/tools">
|
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
|
|
||||||
android:layout_width="match_parent"
|
<!-- TODO: Update blank fragment layout -->
|
||||||
android:layout_height="match_parent"
|
<RelativeLayout
|
||||||
|
android:id="@+id/myl1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
tools:context=".Main1Fragment">
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
<!-- TODO: Update blank fragment layout -->
|
android:layout_height="match_parent"
|
||||||
<RelativeLayout
|
android:layout_marginTop="@dimen/mystatusbar"
|
||||||
android:id="@+id/myl1"
|
android:orientation="vertical">
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content">
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/l1"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="50dip"
|
||||||
android:layout_marginTop="@dimen/mystatusbar"
|
android:orientation="horizontal"
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:id="@+id/l1"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="50dip"
|
|
||||||
|
|
||||||
|
|
||||||
android:theme="@style/AppTheme.AppBarOverlay">
|
android:theme="@style/AppTheme.AppBarOverlay">
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tv1_address"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:gravity="center"
|
|
||||||
android:text="@string/app_name"
|
|
||||||
android:textColor="@color/background_color_white"
|
|
||||||
android:textSize="17sp" />
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:visibility="gone"
|
|
||||||
android:id="@+id/scan"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_marginRight="15dip"
|
|
||||||
android:src="@mipmap/shaomiao" />
|
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv1_address"
|
||||||
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@color/f7">
|
android:layout_weight="1"
|
||||||
<com.scwang.smartrefresh.layout.SmartRefreshLayout
|
android:gravity="center"
|
||||||
android:id="@+id/taobao_refresh_layout"
|
android:text="@string/app_name"
|
||||||
|
android:textColor="@color/background_color_white"
|
||||||
|
android:textSize="17sp" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/scan"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_marginRight="15dip"
|
||||||
|
android:src="@mipmap/shaomiao"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
<com.scwang.smartrefresh.layout.SmartRefreshLayout
|
||||||
|
android:id="@+id/taobao_refresh_layout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@color/white"
|
||||||
|
app:srlDisableContentWhenLoading="true"
|
||||||
|
app:srlEnableLoadMore="true"
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
<com.scwang.smartrefresh.layout.header.ClassicsHeader
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
<ScrollView
|
||||||
|
android:id="@+id/scroll_view_extend"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/l2"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
app:srlEnableLoadMore="false"
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
>
|
android:id="@+id/l3"
|
||||||
<com.scwang.smartrefresh.layout.header.ClassicsHeader
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content" />
|
|
||||||
|
|
||||||
<my_view.tao_bao_refresh.ScrollViewExtend
|
|
||||||
android:id="@+id/scroll_view_extend"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="150dp"
|
||||||
android:fillViewport="true">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<LinearLayout
|
<com.youth.banner.Banner
|
||||||
android:id="@+id/l2"
|
android:id="@+id/banner"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical">
|
app:image_scale_type="center_crop"
|
||||||
|
app:indicator_drawable_selected="@drawable/ic_banner_point"
|
||||||
|
app:indicator_drawable_unselected="@drawable/ic_banner_point_grey"
|
||||||
|
app:indicator_height="6dp"
|
||||||
|
app:indicator_margin="6dp"
|
||||||
|
app:indicator_width="6dp"
|
||||||
|
app:is_auto_play="true"
|
||||||
|
app:title_background="#00000000" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/l3"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="150dp"
|
android:layout_gravity="center"
|
||||||
android:orientation="vertical">
|
android:orientation="horizontal">
|
||||||
<com.youth.banner.Banner
|
|
||||||
android:id="@+id/banner"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
app:image_scale_type="center_crop"
|
|
||||||
app:indicator_drawable_selected="@drawable/ic_banner_point"
|
|
||||||
app:indicator_drawable_unselected="@drawable/ic_banner_point_grey"
|
|
||||||
app:indicator_height="6dp"
|
|
||||||
app:indicator_margin="6dp"
|
|
||||||
app:indicator_width="6dp"
|
|
||||||
app:is_auto_play="true"
|
|
||||||
app:title_background="#00000000"
|
|
||||||
/>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/entrancegurd"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="10dip"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@mipmap/door">
|
||||||
|
|
||||||
<RelativeLayout
|
<TextView
|
||||||
android:id="@+id/entrancegurd"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="10dip"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:background="@mipmap/door">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="10dip"
|
|
||||||
android:text="@string/door"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
android:textSize="15sp" />
|
|
||||||
</RelativeLayout>
|
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/service"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="10dip"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:background="@mipmap/garage">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="10dip"
|
|
||||||
android:text="物业服务"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
android:textSize="15sp" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/cargara"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="10dip"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:background="@mipmap/garage">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="10dip"
|
|
||||||
android:text="@string/carroom"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
android:textSize="15sp" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="10dip">
|
android:layout_margin="10dip"
|
||||||
|
android:text="@string/door"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<View
|
<RelativeLayout
|
||||||
android:id="@+id/view"
|
android:id="@+id/service"
|
||||||
android:layout_width="5dip"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="14dip"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_margin="10dip"
|
||||||
android:layout_marginLeft="5dip"
|
android:layout_weight="1"
|
||||||
android:layout_marginTop="2dip"
|
android:background="@mipmap/garage">
|
||||||
android:background="@color/colorPrimary" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/usershoptextid"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignLeft="@+id/view"
|
|
||||||
android:layout_marginLeft="8dp"
|
|
||||||
android:text="@string/usershop" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/moew1"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:layout_marginRight="10dip"
|
|
||||||
android:text="@string/more"
|
|
||||||
android:textColor="@color/gray" />
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<my_view.tao_bao_refresh.RecyView
|
|
||||||
android:id="@+id/fragmentRecyclerviewHorization"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginLeft="10dip"
|
android:layout_margin="10dip"
|
||||||
|
android:text="物业服务"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
|
||||||
android:layout_marginRight="10dip">
|
</RelativeLayout>
|
||||||
|
|
||||||
</my_view.tao_bao_refresh.RecyView>
|
<RelativeLayout
|
||||||
|
android:id="@+id/cargara"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="10dip"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@mipmap/garage">
|
||||||
|
|
||||||
<LinearLayout
|
<TextView
|
||||||
android:id="@+id/myversion"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:layout_margin="10dip"
|
||||||
android:visibility="gone">
|
android:text="@string/carroom"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="15sp" />
|
||||||
|
|
||||||
<RelativeLayout
|
</RelativeLayout>
|
||||||
android:layout_width="wrap_content"
|
</LinearLayout>
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="10dip">
|
|
||||||
|
|
||||||
<View
|
<RelativeLayout
|
||||||
android:id="@+id/view2"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="5dip"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="14dip"
|
android:layout_margin="10dip">
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:layout_marginLeft="5dip"
|
|
||||||
android:layout_marginTop="2dip"
|
|
||||||
android:background="@color/colorPrimary" />
|
|
||||||
|
|
||||||
<TextView
|
<View
|
||||||
android:id="@+id/userommunitybutextid"
|
android:id="@+id/view"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="5dip"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="14dip"
|
||||||
android:layout_alignLeft="@+id/view2"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_marginLeft="6dp"
|
android:layout_marginLeft="5dip"
|
||||||
android:text="@string/ommunitybulletin" />
|
android:layout_marginTop="2dip"
|
||||||
|
android:background="@color/colorPrimary" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/moew2"
|
android:id="@+id/usershoptextid"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignLeft="@+id/view"
|
||||||
android:layout_marginRight="10dip"
|
android:layout_marginLeft="8dp"
|
||||||
android:text="@string/more"
|
android:text="发现精彩" />
|
||||||
android:textColor="@color/gray" />
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
<TextView
|
||||||
|
android:id="@+id/moew1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_marginRight="10dip"
|
||||||
|
android:text="@string/more"
|
||||||
|
android:textColor="@color/gray"
|
||||||
|
android:visibility="gone" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<my_view.tao_bao_refresh.RecyView
|
<RelativeLayout
|
||||||
android:id="@+id/recyView"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginLeft="0dip"
|
|
||||||
android:layout_marginRight="0dip"
|
|
||||||
android:background="@color/white"
|
|
||||||
android:focusable="true"></my_view.tao_bao_refresh.RecyView>
|
|
||||||
</LinearLayout>
|
|
||||||
</my_view.tao_bao_refresh.ScrollViewExtend>
|
|
||||||
|
|
||||||
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
|
<android.support.v7.widget.RecyclerView
|
||||||
|
android:id="@+id/recyView"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content" />
|
||||||
|
</RelativeLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
<com.scwang.smartrefresh.layout.footer.ClassicsFooter
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content" />
|
||||||
|
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/ll_comment"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="45dp"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:layout_gravity="bottom"
|
||||||
|
android:background="#f6f6f6"
|
||||||
|
android:elevation="3dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/et_comment"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginLeft="15dp"
|
||||||
|
android:layout_marginRight="7dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@drawable/shape_comment_bg"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:hint="说点什么"
|
||||||
|
android:maxLength="300"
|
||||||
|
android:paddingLeft="10dp"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:textColorHint="#a2a2a2"
|
||||||
|
android:textSize="13sp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_send_comment"
|
||||||
|
android:layout_width="60dp"
|
||||||
|
android:layout_height="30dp"
|
||||||
|
android:layout_marginLeft="5dp"
|
||||||
|
android:layout_marginRight="5dp"
|
||||||
|
android:background="@drawable/shape_comment"
|
||||||
|
android:gravity="center"
|
||||||
|
android:paddingLeft="10dp"
|
||||||
|
android:paddingTop="5dp"
|
||||||
|
android:paddingRight="10dp"
|
||||||
|
android:paddingBottom="5dp"
|
||||||
|
android:text="发送"
|
||||||
|
android:textColor="#fff"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
</LinearLayout>
|
|
||||||
</RelativeLayout>
|
|
||||||
</FrameLayout>
|
|
||||||
</layout>
|
</layout>
|
||||||
Reference in New Issue
Block a user