This commit is contained in:
jinyuer
2020-09-21 10:45:32 +08:00
parent c79e6751fe
commit a5b53ad5e9
4 changed files with 964 additions and 320 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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,

View File

@@ -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);
} }
} }

View File

@@ -1,14 +1,7 @@
<?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"
android:layout_height="match_parent"
tools:context=".Main1Fragment">
<!-- TODO: Update blank fragment layout --> <!-- TODO: Update blank fragment layout -->
<RelativeLayout <RelativeLayout
@@ -23,57 +16,55 @@
android:orientation="vertical"> android:orientation="vertical">
<LinearLayout <LinearLayout
android:orientation="horizontal"
android:id="@+id/l1" android:id="@+id/l1"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dip" android:layout_height="50dip"
android:orientation="horizontal"
android:theme="@style/AppTheme.AppBarOverlay"> android:theme="@style/AppTheme.AppBarOverlay">
<TextView <TextView
android:id="@+id/tv1_address" android:id="@+id/tv1_address"
android:layout_weight="1"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="@string/app_name" android:text="@string/app_name"
android:textColor="@color/background_color_white" android:textColor="@color/background_color_white"
android:textSize="17sp" /> android:textSize="17sp" />
<ImageView <ImageView
android:visibility="gone"
android:id="@+id/scan" android:id="@+id/scan"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginRight="15dip" android:layout_marginRight="15dip"
android:src="@mipmap/shaomiao" /> android:src="@mipmap/shaomiao"
android:visibility="gone" />
</LinearLayout> </LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/f7">
<com.scwang.smartrefresh.layout.SmartRefreshLayout <com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/taobao_refresh_layout" android:id="@+id/taobao_refresh_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="0dp"
app:srlEnableLoadMore="false" android:layout_weight="1"
android:background="@color/white"
app:srlDisableContentWhenLoading="true"
app:srlEnableLoadMore="true"
> >
<com.scwang.smartrefresh.layout.header.ClassicsHeader <com.scwang.smartrefresh.layout.header.ClassicsHeader
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
<my_view.tao_bao_refresh.ScrollViewExtend <ScrollView
android:id="@+id/scroll_view_extend" android:id="@+id/scroll_view_extend"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
android:fillViewport="true">
<LinearLayout <LinearLayout
android:id="@+id/l2" android:id="@+id/l2"
@@ -86,6 +77,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="150dp" android:layout_height="150dp"
android:orientation="vertical"> android:orientation="vertical">
<com.youth.banner.Banner <com.youth.banner.Banner
android:id="@+id/banner" android:id="@+id/banner"
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -97,8 +89,7 @@
app:indicator_margin="6dp" app:indicator_margin="6dp"
app:indicator_width="6dp" app:indicator_width="6dp"
app:is_auto_play="true" app:is_auto_play="true"
app:title_background="#00000000" app:title_background="#00000000" />
/>
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
@@ -108,7 +99,6 @@
android:orientation="horizontal"> android:orientation="horizontal">
<RelativeLayout <RelativeLayout
android:id="@+id/entrancegurd" android:id="@+id/entrancegurd"
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -125,6 +115,7 @@
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="15sp" /> android:textSize="15sp" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/service" android:id="@+id/service"
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -142,6 +133,7 @@
android:textSize="15sp" /> android:textSize="15sp" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/cargara" android:id="@+id/cargara"
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -181,7 +173,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignLeft="@+id/view" android:layout_alignLeft="@+id/view"
android:layout_marginLeft="8dp" android:layout_marginLeft="8dp"
android:text="@string/usershop" /> android:text="发现精彩" />
<TextView <TextView
android:id="@+id/moew1" android:id="@+id/moew1"
@@ -190,76 +182,74 @@
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_marginRight="10dip" android:layout_marginRight="10dip"
android:text="@string/more" android:text="@string/more"
android:textColor="@color/gray" /> android:textColor="@color/gray"
android:visibility="gone" />
</RelativeLayout> </RelativeLayout>
<my_view.tao_bao_refresh.RecyView
android:id="@+id/fragmentRecyclerviewHorization"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip">
</my_view.tao_bao_refresh.RecyView>
<LinearLayout
android:id="@+id/myversion"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone">
<RelativeLayout <RelativeLayout
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent">
android:layout_margin="10dip">
<View <android.support.v7.widget.RecyclerView
android:id="@+id/view2"
android:layout_width="5dip"
android:layout_height="14dip"
android:layout_alignParentLeft="true"
android:layout_marginLeft="5dip"
android:layout_marginTop="2dip"
android:background="@color/colorPrimary" />
<TextView
android:id="@+id/userommunitybutextid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/view2"
android:layout_marginLeft="6dp"
android:text="@string/ommunitybulletin" />
<TextView
android:id="@+id/moew2"
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>
</LinearLayout>
<my_view.tao_bao_refresh.RecyView
android:id="@+id/recyView" android:id="@+id/recyView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content" />
android:layout_marginLeft="0dip" </RelativeLayout>
android:layout_marginRight="0dip"
android:background="@color/white"
android:focusable="true"></my_view.tao_bao_refresh.RecyView>
</LinearLayout> </LinearLayout>
</my_view.tao_bao_refresh.ScrollViewExtend> </ScrollView>
<com.scwang.smartrefresh.layout.footer.ClassicsFooter
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.scwang.smartrefresh.layout.SmartRefreshLayout> </com.scwang.smartrefresh.layout.SmartRefreshLayout>
</LinearLayout>
</RelativeLayout> <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> </LinearLayout>
</RelativeLayout> </RelativeLayout>
</FrameLayout>
</layout> </layout>