Browse Source

3种期的穿透

master
lh 7 years ago
parent
commit
59424efbaf
4 changed files with 55 additions and 2 deletions
  1. +3
    -0
      app/src/main/AndroidManifest.xml
  2. +4
    -2
      app/src/main/java/com/qhclh/ytzh/index/fumudai/FumudaiFragment.java
  3. +30
    -0
      app/src/main/java/com/qhclh/ytzh/index/fumudai/ThreeTypeActivity.java
  4. +18
    -0
      app/src/main/res/layout/act_threetype.xml

+ 3
- 0
app/src/main/AndroidManifest.xml View File

@ -157,6 +157,9 @@
<activity <activity
android:name=".index.shangpin.PianquinfosActivity" android:name=".index.shangpin.PianquinfosActivity"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity
android:name=".index.fumudai.ThreeTypeActivity"
android:screenOrientation="portrait" />
<!-- 设置竖屏扫码 --> <!-- 设置竖屏扫码 -->
<activity <activity


+ 4
- 2
app/src/main/java/com/qhclh/ytzh/index/fumudai/FumudaiFragment.java View File

@ -1,5 +1,6 @@
package com.qhclh.ytzh.index.fumudai; package com.qhclh.ytzh.index.fumudai;
import android.content.Intent;
import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView;
import android.view.View; import android.view.View;
@ -66,8 +67,9 @@ public class FumudaiFragment extends BaseFragment {
util.setOnItemClickListener(new RecyclerViewUtil.OnItemClickListener() { util.setOnItemClickListener(new RecyclerViewUtil.OnItemClickListener() {
@Override @Override
public void onItemClick(View view, int position, long id) { public void onItemClick(View view, int position, long id) {
///< 设置的id
System.out.println("aaa+++++++"+fumudaiAdapter.getItemId(position));
Intent intent = new Intent(getActivity(),ThreeTypeActivity.class);
intent.putExtra("status",fumudaiAdapter.getItemId(position));
startActivity(intent);
} }
}); });
} }


+ 30
- 0
app/src/main/java/com/qhclh/ytzh/index/fumudai/ThreeTypeActivity.java View File

@ -0,0 +1,30 @@
package com.qhclh.ytzh.index.fumudai;
import com.qhclh.ytzh.R;
import com.qhclh.ytzh.base.BaseActivity;
/**
* Created by 青花瓷 on 2018/3/9.
*/
public class ThreeTypeActivity extends BaseActivity {
@Override
protected int setLayoutId() {
return R.layout.act_threetype;
}
@Override
protected void initView() {
}
@Override
protected void initData() {
}
@Override
protected void initOper() {
}
}

+ 18
- 0
app/src/main/res/layout/act_threetype.xml View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:background="@color/greyf4f4f4"
android:layout_height="match_parent">
<include layout="@layout/include_tool_bar"></include>
<ListView
android:id="@+id/lv_threetype"
android:scrollbars="none"
android:layout_width="match_parent"
android:layout_height="match_parent">
</ListView>
</LinearLayout>

Loading…
Cancel
Save