From 567bf59de1750c46026b7133f6d808e4ac0dac69 Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期一, 27 三月 2017 16:30:38 +0800 Subject: [PATCH] --- VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/TelPhoneFragment.java | 13 ------ VisitFace/DemoForBsk/app/src/main/res/layout/tel_phone_left.xml | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+), 12 deletions(-) diff --git a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/TelPhoneFragment.java b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/TelPhoneFragment.java index 9344c12..c29cf43 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/TelPhoneFragment.java +++ b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/TelPhoneFragment.java @@ -9,12 +9,9 @@ import com.bsk.zhangbo.demoforbsk.R; import com.bsk.zhangbo.demoforbsk.adapter.VisitorRecyclerViewAdapter; import com.bsk.zhangbo.demoforbsk.base.MainUIBaseFragment; -import com.bsk.zhangbo.demoforbsk.ui.activity.MainActivity; import com.bsk.zhangbo.demoforbsk.util.Constant; import com.bsk.zhangbo.demoforbsk.widget.VisitorView; import com.camnter.easyrecyclerview.widget.EasyRecyclerView; -import com.lidroid.xutils.ViewUtils; -import com.lidroid.xutils.view.annotation.event.OnClick; import java.util.ArrayList; import java.util.List; @@ -42,7 +39,7 @@ @Override public View addLeftLayout() { - mViewLeft = LayoutInflater.from(getActivity()).inflate(R.layout.visitor_register_left,null); + mViewLeft = LayoutInflater.from(getActivity()).inflate(R.layout.tel_phone_left,null); mRGTop = (RadioGroup) mViewLeft.findViewById(R.id.visitor_register_radio); mRGClass = (RadioGroup) mViewLeft.findViewById(R.id.visitor_register_check_class); mLlRadioGroupClass = (LinearLayout) mViewLeft.findViewById(R.id.visitor_register_check_class_ll); @@ -50,7 +47,6 @@ LinearLayoutManager manager = new LinearLayoutManager(getActivity(),LinearLayoutManager.VERTICAL,false); mRecyclerView.setLayoutManager(manager); mAdapter = new VisitorRecyclerViewAdapter(getActivity(),Constant.VISITOR_FROM); - ViewUtils.inject(this, mViewLeft); return mViewLeft; } @@ -60,7 +56,6 @@ mVisitorTo = (VisitorView) mViewRight.findViewById(R.id.tel_phone_to); mVisitorTo.setType(Constant.VISITOR_TO); mVisitorTo.setTitle("dasfasdfasdf"); - ViewUtils.inject(this, mVisitorTo); return mViewRight; } @@ -118,10 +113,4 @@ mAdapter.setList(mList); mRecyclerView.setAdapter(mAdapter); } - - @OnClick(R.id.visitor_register_back) - public void back(View view) { - MainActivity.selectPage(0); - } - } diff --git a/VisitFace/DemoForBsk/app/src/main/res/layout/tel_phone_left.xml b/VisitFace/DemoForBsk/app/src/main/res/layout/tel_phone_left.xml new file mode 100644 index 0000000..6a7f83c --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/res/layout/tel_phone_left.xml @@ -0,0 +1,107 @@ +<?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:layout_height="match_parent"> + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <TextView + android:id="@+id/visitor_register_back" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="< 鏉ヨ鐧昏" + android:layout_marginLeft="3dp" + android:layout_centerVertical="true" + android:textColor="#8BD2F6" + /> + <RadioGroup + android:id="@+id/visitor_register_radio" + android:layout_width="match_parent" + android:layout_height="51dp" + android:gravity="center" + android:orientation="horizontal"> + <RadioButton + android:id="@+id/visitor_register_rb_left" + android:button="@null" + android:text="鏉ヨ浜哄憳" + android:textColor="@color/tab_visitor_register" + android:background="@drawable/visitor_register_rb_left" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + <RadioButton + android:id="@+id/visitor_register_rb_right" + android:button="@null" + android:text="琚浜哄憳" + android:checked="true" + android:textColor="@color/tab_visitor_register" + android:background="@drawable/visitor_register_rb_right" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + </RadioGroup> + </RelativeLayout> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/colorSearch" + android:orientation="vertical"> + <EditText + android:id="@+id/visitor_register_search_et" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="5.5dp" + android:layout_marginBottom="5.5dp" + android:layout_marginLeft="4dp" + android:layout_marginRight="4dp" + android:gravity="center" + android:hint="Search" + android:textColorHint="@color/colorSearch" + android:background="@drawable/visitor_register_search_et"/> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/white" + android:orientation="vertical"> + <LinearLayout + android:id="@+id/visitor_register_check_class_ll" + android:orientation="horizontal" + android:gravity="center" + android:visibility="gone" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="@color/colorText_5" + android:textSize="@dimen/text_size_big" + android:text="@string/check_class"/> + + <RadioGroup + android:id="@+id/visitor_register_check_class" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:orientation="horizontal"> + <RadioButton + android:id="@+id/visitor_register_check_name" + android:text="鎸夊鍚�" + android:textColor="@color/colorText_b" + android:checked="true" + android:textSize="@dimen/text_size_big" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + <RadioButton + android:id="@+id/visitor_register_check_department" + android:text="鎸夐儴闂�" + android:textSize="@dimen/text_size_big" + android:textColor="@color/colorText_b" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + </RadioGroup> + </LinearLayout> + <com.camnter.easyrecyclerview.widget.EasyRecyclerView + android:id="@+id/visitor_register_recycler" + android:layout_width="match_parent" + android:layout_height="match_parent"></com.camnter.easyrecyclerview.widget.EasyRecyclerView> + </LinearLayout> + </LinearLayout> +</LinearLayout> \ No newline at end of file -- Gitblit v1.8.0