@@ -16,19 +16,46 @@ | |||
android:theme="@style/AppTheme" | |||
tools:targetApi="31"> | |||
<activity | |||
android:name=".view.SystemCapabilitiesFragment" | |||
android:name=".view.from.wlgl_activity" | |||
android:exported="false" /> | |||
<activity | |||
android:name=".view.HeplerFragment" | |||
android:name=".view.from.yfpf_activity" | |||
android:exported="false" /> | |||
<activity | |||
android:name=".view.SystemSetFragment" | |||
android:name=".view.from.ygczrz_activity" | |||
android:exported="false" /> | |||
<activity | |||
android:name=".view.HomeFragment" | |||
android:name=".view.from.ddyjrz_activity" | |||
android:exported="false" /> | |||
<activity | |||
android:name=".view.CloudFragment" | |||
android:name=".view.from.yfcl_activity" | |||
android:exported="false" /> | |||
<activity | |||
android:name=".view.from.zdqx_activity" | |||
android:exported="false" /> | |||
<activity | |||
android:name=".view.from.lsjy_activity" | |||
android:exported="false" /> | |||
<activity | |||
android:name=".view.from.dzcjy_activity" | |||
android:exported="false" /> | |||
<activity | |||
android:name=".view.from.lcsz_activity" | |||
android:exported="false" /> | |||
<activity | |||
android:name=".view.fragment.SystemCapabilitiesFragment" | |||
android:exported="false" /> | |||
<activity | |||
android:name=".view.fragment.HeplerFragment" | |||
android:exported="false" /> | |||
<activity | |||
android:name=".view.fragment.SystemSetFragment" | |||
android:exported="false" /> | |||
<activity | |||
android:name=".view.fragment.HomeFragment" | |||
android:exported="false" /> | |||
<activity | |||
android:name=".view.fragment.CloudFragment" | |||
android:exported="false" /> | |||
<activity | |||
android:name=".LoginActivity" | |||
@@ -2,6 +2,7 @@ package com.example.bpa; | |||
import android.app.Activity; | |||
import android.content.Intent; | |||
import android.os.Bundle; | |||
import android.view.KeyEvent; | |||
import android.view.View; | |||
import android.widget.Button; | |||
import android.widget.EditText; | |||
@@ -36,6 +37,7 @@ public class LoginActivity extends Activity implements View.OnClickListener { | |||
password = findViewById(R.id.input_layout_psw); | |||
btn_login = findViewById(R.id.btn_login); | |||
username.setText(ConfigName.getInstance().username); | |||
password.setText(ConfigName.getInstance().password); | |||
} | |||
/** | |||
* 初始化按钮事件 | |||
@@ -44,6 +46,29 @@ public class LoginActivity extends Activity implements View.OnClickListener { | |||
//设置四个Tab的点击事件 | |||
btn_login.setOnClickListener(this); | |||
} | |||
/** | |||
* 登录函数 | |||
*/ | |||
public void Login() | |||
{ | |||
String inputName = username.getText().toString(); | |||
String pwd = password.getText().toString(); | |||
if (inputName.equals("admin") && pwd.equals("123456")) { | |||
ConfigName.getInstance().username = inputName; | |||
ConfigName.getInstance().password = pwd; | |||
Main.getInstance().SavePZ();//保存配置 | |||
T.show(LoginActivity.this, "登录成功!"); | |||
try { | |||
Intent intent = new Intent(LoginActivity.this, MainActivity.class); | |||
startActivity(intent); | |||
} catch (Exception e) { | |||
throw new RuntimeException(e); | |||
} | |||
} else { | |||
T.show(LoginActivity.this, "用户密码错误!"); | |||
} | |||
} | |||
//endregion | |||
//region 点击事件 | |||
@@ -57,25 +82,30 @@ public class LoginActivity extends Activity implements View.OnClickListener { | |||
//根据点击的Tab切换不同的页面及设置对应的ImageButton为绿色 | |||
switch (v.getId()) { | |||
case R.id.btn_login: | |||
String inputName = username.getText().toString(); | |||
String pwd = password.getText().toString(); | |||
if (inputName.equals("admin") && pwd.equals("123456")) { | |||
ConfigName.getInstance().username = inputName; | |||
ConfigName.getInstance().password = pwd; | |||
Main.getInstance().SavePZ();//保存配置 | |||
T.show(LoginActivity.this, "登录成功!"); | |||
try { | |||
Intent intent = new Intent(LoginActivity.this, MainActivity.class); | |||
startActivity(intent); | |||
} catch (Exception e) { | |||
throw new RuntimeException(e); | |||
} | |||
} else { | |||
T.show(LoginActivity.this, "用户密码错误!"); | |||
} | |||
Login(); | |||
break; | |||
} | |||
} | |||
/** | |||
* 监听Enter事件 | |||
* @param keyCode | |||
* @param event | |||
* @return | |||
*/ | |||
@Override | |||
public boolean onKeyDown(int keyCode, KeyEvent event) { | |||
boolean result = false; | |||
switch (keyCode) { | |||
case KeyEvent.KEYCODE_DPAD_CENTER: | |||
case KeyEvent.KEYCODE_ENTER: { | |||
Login(); | |||
return true; | |||
} | |||
} | |||
return result; | |||
} | |||
//endregion | |||
} |
@@ -1,13 +1,9 @@ | |||
package com.example.bpa; | |||
import android.app.Activity; | |||
import android.app.AlertDialog; | |||
import android.content.DialogInterface; | |||
import android.content.Intent; | |||
import android.os.Bundle; | |||
import android.view.View; | |||
import android.widget.Button; | |||
import android.widget.EditText; | |||
import android.widget.FrameLayout; | |||
import android.widget.ImageView; | |||
import android.widget.TextView; | |||
@@ -16,16 +12,13 @@ import androidx.fragment.app.Fragment; | |||
import androidx.fragment.app.FragmentActivity; | |||
import androidx.fragment.app.FragmentManager; | |||
import androidx.fragment.app.FragmentTransaction; | |||
import androidx.viewpager.widget.ViewPager; | |||
import com.example.bpa.app.Main; | |||
import com.example.bpa.config.ConfigName; | |||
import com.example.bpa.helper.T; | |||
import com.example.bpa.view.CloudFragment; | |||
import com.example.bpa.view.HeplerFragment; | |||
import com.example.bpa.view.HomeFragment; | |||
import com.example.bpa.view.SystemCapabilitiesFragment; | |||
import com.example.bpa.view.SystemSetFragment; | |||
import com.example.bpa.view.fragment.CloudFragment; | |||
import com.example.bpa.view.fragment.HeplerFragment; | |||
import com.example.bpa.view.fragment.HomeFragment; | |||
import com.example.bpa.view.fragment.SystemCapabilitiesFragment; | |||
import com.example.bpa.view.fragment.SystemSetFragment; | |||
public class MainActivity extends FragmentActivity implements View.OnClickListener{ | |||
@@ -76,7 +69,8 @@ public class MainActivity extends FragmentActivity implements View.OnClickListen | |||
ColseMain= findViewById(R.id.ColseMain); | |||
fragment_container= findViewById(R.id.fragment_container); | |||
clist_title.setText(ConfigName.getInstance().Shop_Name); | |||
ShowFragment(homeFragment,"系统主页"); | |||
//ShowFragment(homeFragment,"系统主页"); | |||
ShowFragment(systemCapabilitiesFragment,"功能菜单"); | |||
} | |||
/** | |||
* 初始化按钮事件 | |||
@@ -1,4 +1,4 @@ | |||
package com.example.bpa.view; | |||
package com.example.bpa.view.fragment; | |||
import androidx.annotation.NonNull; | |||
import androidx.annotation.Nullable; |
@@ -1,4 +1,4 @@ | |||
package com.example.bpa.view; | |||
package com.example.bpa.view.fragment; | |||
import androidx.annotation.NonNull; | |||
import androidx.annotation.Nullable; |
@@ -1,4 +1,4 @@ | |||
package com.example.bpa.view; | |||
package com.example.bpa.view.fragment; | |||
import androidx.annotation.NonNull; | |||
import androidx.annotation.Nullable; |
@@ -1,4 +1,4 @@ | |||
package com.example.bpa.view; | |||
package com.example.bpa.view.fragment; | |||
import androidx.annotation.NonNull; | |||
import androidx.annotation.Nullable; | |||
@@ -6,6 +6,7 @@ import androidx.appcompat.app.AppCompatActivity; | |||
import androidx.fragment.app.Fragment; | |||
import androidx.recyclerview.widget.RecyclerView; | |||
import android.content.Intent; | |||
import android.os.Bundle; | |||
import android.view.LayoutInflater; | |||
import android.view.View; | |||
@@ -14,12 +15,22 @@ import android.widget.ImageView; | |||
import android.widget.RelativeLayout; | |||
import android.widget.TextView; | |||
import com.example.bpa.LoginActivity; | |||
import com.example.bpa.MainActivity; | |||
import com.example.bpa.R; | |||
import com.example.bpa.config.ConfigName; | |||
import com.example.bpa.helper.T; | |||
import com.example.bpa.view.control.ItemClickListener; | |||
import com.example.bpa.view.control.MainMeunAdapter; | |||
import com.example.bpa.view.control.MyLayoutManager; | |||
import com.example.bpa.view.from.ddyjrz_activity; | |||
import com.example.bpa.view.from.dzcjy_activity; | |||
import com.example.bpa.view.from.lcsz_activity; | |||
import com.example.bpa.view.from.lsjy_activity; | |||
import com.example.bpa.view.from.yfcl_activity; | |||
import com.example.bpa.view.from.yfpf_activity; | |||
import com.example.bpa.view.from.ygczrz_activity; | |||
import com.example.bpa.view.from.zdqx_activity; | |||
import com.example.bpa.view.mode.MenuMode; | |||
import java.util.ArrayList; | |||
@@ -57,6 +68,7 @@ public class SystemCapabilitiesFragment extends Fragment { | |||
recycler_view_container=(RelativeLayout) view.findViewById(R.id.recycler_view_container); | |||
menuModes.clear(); | |||
menuModes.add(new MenuMode("物料管理",R.mipmap.wlgl)); | |||
menuModes.add(new MenuMode("料仓设置",R.mipmap.lcsz)); | |||
menuModes.add(new MenuMode("电子秤校验",R.mipmap.dzcjy)); | |||
menuModes.add(new MenuMode("流速校验",R.mipmap.lsjy)); | |||
@@ -78,7 +90,41 @@ public class SystemCapabilitiesFragment extends Fragment { | |||
// list.remove(position); | |||
// adapter.notifyItemRemoved(position); | |||
TextView textView = (TextView) view.findViewById(R.id.meun_textview); | |||
T.show(view.getContext(),textView.getText().toString()); | |||
T.show(view.getContext(),"打开窗体:"+ textView.getText().toString()); | |||
Intent intent; | |||
switch (textView.getText().toString()) | |||
{ | |||
case "物料管理": | |||
intent = new Intent(view.getContext(), lcsz_activity.class); | |||
break; | |||
case "料仓设置": | |||
intent = new Intent(view.getContext(), lcsz_activity.class); | |||
break; | |||
case "电子秤校验": | |||
intent = new Intent(view.getContext(), dzcjy_activity.class); | |||
break; | |||
case "流速校验": | |||
intent = new Intent(view.getContext(), lsjy_activity.class); | |||
break; | |||
case "自动清洗": | |||
intent = new Intent(view.getContext(), zdqx_activity.class); | |||
break; | |||
case "研发出料": | |||
intent = new Intent(view.getContext(), yfcl_activity.class); | |||
break; | |||
case "订单预警日志": | |||
intent = new Intent(view.getContext(), ddyjrz_activity.class); | |||
break; | |||
case "员工操作日志": | |||
intent = new Intent(view.getContext(), ygczrz_activity.class); | |||
break; | |||
case "配方研发": | |||
default: | |||
intent = new Intent(view.getContext(), yfpf_activity.class); | |||
break; | |||
} | |||
intent.putExtra("data", textView.getText().toString()); | |||
startActivity(intent); | |||
} | |||
@Override |
@@ -1,4 +1,4 @@ | |||
package com.example.bpa.view; | |||
package com.example.bpa.view.fragment; | |||
import androidx.annotation.NonNull; | |||
import androidx.annotation.Nullable; |
@@ -0,0 +1,83 @@ | |||
package com.example.bpa.view.from; | |||
import androidx.appcompat.app.AppCompatActivity; | |||
import androidx.fragment.app.Fragment; | |||
import androidx.fragment.app.FragmentManager; | |||
import androidx.fragment.app.FragmentTransaction; | |||
import android.app.AlertDialog; | |||
import android.content.DialogInterface; | |||
import android.content.Intent; | |||
import android.os.Bundle; | |||
import android.view.View; | |||
import android.widget.ImageView; | |||
import android.widget.TextView; | |||
import com.example.bpa.MainActivity; | |||
import com.example.bpa.R; | |||
/** | |||
* 订单预警日志 | |||
*/ | |||
public class ddyjrz_activity extends AppCompatActivity implements View.OnClickListener{ | |||
//region 变量 | |||
/** | |||
* 返回按钮 | |||
*/ | |||
ImageView gongneng_fanhui; | |||
/** | |||
* 标题设置 | |||
*/ | |||
TextView gongneng_title; | |||
//endregion | |||
//region 私有函数 | |||
@Override | |||
protected void onCreate(Bundle savedInstanceState) { | |||
super.onCreate(savedInstanceState); | |||
setContentView(R.layout.activity_ddyjrz); | |||
Init(); | |||
initEvents(); | |||
} | |||
//endregion | |||
//region 公共函数 | |||
/** | |||
* 初始化 | |||
*/ | |||
private void Init(){ | |||
gongneng_fanhui = this.findViewById(R.id.gongneng_fanhui); | |||
gongneng_title = this.findViewById(R.id.gongneng_title); | |||
//通过Activity.getIntent()获取当前页面接收到的Intent。 getXxxExtra方法获取Intent传递过来的数据 | |||
String msg=getIntent().getStringExtra("data"); | |||
gongneng_title.setText(msg); | |||
((TextView)this.findViewById(R.id.test_view)).setText(msg); | |||
} | |||
/** | |||
* 初始化按钮事件 | |||
*/ | |||
private void initEvents() { | |||
gongneng_fanhui.setOnClickListener(this); | |||
} | |||
//endregion | |||
//region 点击事件 | |||
/** | |||
* 本页面点击事件监听 | |||
* | |||
* @param v | |||
*/ | |||
@Override | |||
public void onClick(View v) { | |||
switch (v.getId()) { | |||
case R.id.gongneng_fanhui://返回按钮 | |||
this.finish(); | |||
break; | |||
} | |||
} | |||
//endregion | |||
} |
@@ -0,0 +1,74 @@ | |||
package com.example.bpa.view.from; | |||
import androidx.appcompat.app.AppCompatActivity; | |||
import android.os.Bundle; | |||
import android.view.View; | |||
import android.widget.ImageView; | |||
import android.widget.TextView; | |||
import com.example.bpa.R; | |||
/** | |||
* 电子秤校验 | |||
*/ | |||
public class dzcjy_activity extends AppCompatActivity implements View.OnClickListener{ | |||
//region 变量 | |||
/** | |||
* 返回按钮 | |||
*/ | |||
ImageView gongneng_fanhui; | |||
/** | |||
* 标题设置 | |||
*/ | |||
TextView gongneng_title; | |||
//endregion | |||
//region 私有函数 | |||
@Override | |||
protected void onCreate(Bundle savedInstanceState) { | |||
super.onCreate(savedInstanceState); | |||
setContentView(R.layout.activity_dzcjy); | |||
Init(); | |||
initEvents(); | |||
} | |||
//endregion | |||
//region 公共函数 | |||
/** | |||
* 初始化 | |||
*/ | |||
private void Init(){ | |||
gongneng_fanhui = this.findViewById(R.id.gongneng_fanhui); | |||
gongneng_title = this.findViewById(R.id.gongneng_title); | |||
//通过Activity.getIntent()获取当前页面接收到的Intent。 getXxxExtra方法获取Intent传递过来的数据 | |||
String msg=getIntent().getStringExtra("data"); | |||
gongneng_title.setText(msg); | |||
((TextView)this.findViewById(R.id.test_view)).setText(msg); | |||
} | |||
/** | |||
* 初始化按钮事件 | |||
*/ | |||
private void initEvents() { | |||
gongneng_fanhui.setOnClickListener(this); | |||
} | |||
//endregion | |||
//region 点击事件 | |||
/** | |||
* 本页面点击事件监听 | |||
* | |||
* @param v | |||
*/ | |||
@Override | |||
public void onClick(View v) { | |||
switch (v.getId()) { | |||
case R.id.gongneng_fanhui://返回按钮 | |||
this.finish(); | |||
break; | |||
} | |||
} | |||
//endregion | |||
} |
@@ -0,0 +1,75 @@ | |||
package com.example.bpa.view.from; | |||
import androidx.appcompat.app.AppCompatActivity; | |||
import android.os.Bundle; | |||
import android.view.View; | |||
import android.widget.ImageView; | |||
import android.widget.TextView; | |||
import com.example.bpa.R; | |||
/** | |||
* 料仓设置 | |||
*/ | |||
public class lcsz_activity extends AppCompatActivity implements View.OnClickListener{ | |||
//region 变量 | |||
/** | |||
* 返回按钮 | |||
*/ | |||
ImageView gongneng_fanhui; | |||
/** | |||
* 标题设置 | |||
*/ | |||
TextView gongneng_title; | |||
//endregion | |||
//region 私有函数 | |||
@Override | |||
protected void onCreate(Bundle savedInstanceState) { | |||
super.onCreate(savedInstanceState); | |||
setContentView(R.layout.activity_lcsz); | |||
Init(); | |||
initEvents(); | |||
} | |||
//endregion | |||
//region 公共函数 | |||
/** | |||
* 初始化 | |||
*/ | |||
private void Init(){ | |||
gongneng_fanhui = this.findViewById(R.id.gongneng_fanhui); | |||
gongneng_title = this.findViewById(R.id.gongneng_title); | |||
//通过Activity.getIntent()获取当前页面接收到的Intent。 getXxxExtra方法获取Intent传递过来的数据 | |||
String msg=getIntent().getStringExtra("data"); | |||
gongneng_title.setText(msg); | |||
((TextView)this.findViewById(R.id.test_view)).setText(msg); | |||
} | |||
/** | |||
* 初始化按钮事件 | |||
*/ | |||
private void initEvents() { | |||
gongneng_fanhui.setOnClickListener(this); | |||
} | |||
//endregion | |||
//region 点击事件 | |||
/** | |||
* 本页面点击事件监听 | |||
* | |||
* @param v | |||
*/ | |||
@Override | |||
public void onClick(View v) { | |||
switch (v.getId()) { | |||
case R.id.gongneng_fanhui://返回按钮 | |||
this.finish(); | |||
break; | |||
} | |||
} | |||
//endregion | |||
} |
@@ -0,0 +1,74 @@ | |||
package com.example.bpa.view.from; | |||
import androidx.appcompat.app.AppCompatActivity; | |||
import android.os.Bundle; | |||
import android.view.View; | |||
import android.widget.ImageView; | |||
import android.widget.TextView; | |||
import com.example.bpa.R; | |||
/** | |||
* 流速校验 | |||
*/ | |||
public class lsjy_activity extends AppCompatActivity implements View.OnClickListener{ | |||
//region 变量 | |||
/** | |||
* 返回按钮 | |||
*/ | |||
ImageView gongneng_fanhui; | |||
/** | |||
* 标题设置 | |||
*/ | |||
TextView gongneng_title; | |||
//endregion | |||
//region 私有函数 | |||
@Override | |||
protected void onCreate(Bundle savedInstanceState) { | |||
super.onCreate(savedInstanceState); | |||
setContentView(R.layout.activity_lsjy); | |||
Init(); | |||
initEvents(); | |||
} | |||
//endregion | |||
//region 公共函数 | |||
/** | |||
* 初始化 | |||
*/ | |||
private void Init(){ | |||
gongneng_fanhui = this.findViewById(R.id.gongneng_fanhui); | |||
gongneng_title = this.findViewById(R.id.gongneng_title); | |||
//通过Activity.getIntent()获取当前页面接收到的Intent。 getXxxExtra方法获取Intent传递过来的数据 | |||
String msg=getIntent().getStringExtra("data"); | |||
gongneng_title.setText(msg); | |||
((TextView)this.findViewById(R.id.test_view)).setText(msg); | |||
} | |||
/** | |||
* 初始化按钮事件 | |||
*/ | |||
private void initEvents() { | |||
gongneng_fanhui.setOnClickListener(this); | |||
} | |||
//endregion | |||
//region 点击事件 | |||
/** | |||
* 本页面点击事件监听 | |||
* | |||
* @param v | |||
*/ | |||
@Override | |||
public void onClick(View v) { | |||
switch (v.getId()) { | |||
case R.id.gongneng_fanhui://返回按钮 | |||
this.finish(); | |||
break; | |||
} | |||
} | |||
//endregion | |||
} |
@@ -0,0 +1,76 @@ | |||
package com.example.bpa.view.from; | |||
import androidx.appcompat.app.AppCompatActivity; | |||
import android.os.Bundle; | |||
import android.view.View; | |||
import android.widget.ImageView; | |||
import android.widget.TextView; | |||
import com.example.bpa.R; | |||
/** | |||
* 物料管理 | |||
*/ | |||
public class wlgl_activity extends AppCompatActivity implements View.OnClickListener{ | |||
//region 变量 | |||
/** | |||
* 返回按钮 | |||
*/ | |||
ImageView gongneng_fanhui; | |||
/** | |||
* 标题设置 | |||
*/ | |||
TextView gongneng_title; | |||
//endregion | |||
//region 私有函数 | |||
@Override | |||
protected void onCreate(Bundle savedInstanceState) { | |||
super.onCreate(savedInstanceState); | |||
setContentView(R.layout.activity_wlgl); | |||
Init(); | |||
initEvents(); | |||
} | |||
//endregion | |||
//region 公共函数 | |||
/** | |||
* 初始化 | |||
*/ | |||
private void Init(){ | |||
gongneng_fanhui = this.findViewById(R.id.gongneng_fanhui); | |||
gongneng_title = this.findViewById(R.id.gongneng_title); | |||
//通过Activity.getIntent()获取当前页面接收到的Intent。 getXxxExtra方法获取Intent传递过来的数据 | |||
String msg=getIntent().getStringExtra("data"); | |||
gongneng_title.setText(msg); | |||
((TextView)this.findViewById(R.id.test_view)).setText(msg); | |||
} | |||
/** | |||
* 初始化按钮事件 | |||
*/ | |||
private void initEvents() { | |||
gongneng_fanhui.setOnClickListener(this); | |||
} | |||
//endregion | |||
//region 点击事件 | |||
/** | |||
* 本页面点击事件监听 | |||
* | |||
* @param v | |||
*/ | |||
@Override | |||
public void onClick(View v) { | |||
switch (v.getId()) { | |||
case R.id.gongneng_fanhui://返回按钮 | |||
this.finish(); | |||
break; | |||
} | |||
} | |||
//endregion | |||
} |
@@ -0,0 +1,75 @@ | |||
package com.example.bpa.view.from; | |||
import androidx.appcompat.app.AppCompatActivity; | |||
import android.os.Bundle; | |||
import android.view.View; | |||
import android.widget.ImageView; | |||
import android.widget.TextView; | |||
import com.example.bpa.R; | |||
/** | |||
* 研发出料 | |||
*/ | |||
public class yfcl_activity extends AppCompatActivity implements View.OnClickListener{ | |||
//region 变量 | |||
/** | |||
* 返回按钮 | |||
*/ | |||
ImageView gongneng_fanhui; | |||
/** | |||
* 标题设置 | |||
*/ | |||
TextView gongneng_title; | |||
//endregion | |||
//region 私有函数 | |||
@Override | |||
protected void onCreate(Bundle savedInstanceState) { | |||
super.onCreate(savedInstanceState); | |||
setContentView(R.layout.activity_yfcl); | |||
Init(); | |||
initEvents(); | |||
} | |||
//endregion | |||
//region 公共函数 | |||
/** | |||
* 初始化 | |||
*/ | |||
private void Init(){ | |||
gongneng_fanhui = this.findViewById(R.id.gongneng_fanhui); | |||
gongneng_title = this.findViewById(R.id.gongneng_title); | |||
//通过Activity.getIntent()获取当前页面接收到的Intent。 getXxxExtra方法获取Intent传递过来的数据 | |||
String msg=getIntent().getStringExtra("data"); | |||
gongneng_title.setText(msg); | |||
((TextView)this.findViewById(R.id.test_view)).setText(msg); | |||
} | |||
/** | |||
* 初始化按钮事件 | |||
*/ | |||
private void initEvents() { | |||
gongneng_fanhui.setOnClickListener(this); | |||
} | |||
//endregion | |||
//region 点击事件 | |||
/** | |||
* 本页面点击事件监听 | |||
* | |||
* @param v | |||
*/ | |||
@Override | |||
public void onClick(View v) { | |||
switch (v.getId()) { | |||
case R.id.gongneng_fanhui://返回按钮 | |||
this.finish(); | |||
break; | |||
} | |||
} | |||
//endregion | |||
} |
@@ -0,0 +1,75 @@ | |||
package com.example.bpa.view.from; | |||
import androidx.appcompat.app.AppCompatActivity; | |||
import android.os.Bundle; | |||
import android.view.View; | |||
import android.widget.ImageView; | |||
import android.widget.TextView; | |||
import com.example.bpa.R; | |||
/** | |||
* 配方研发 | |||
*/ | |||
public class yfpf_activity extends AppCompatActivity implements View.OnClickListener{ | |||
//region 变量 | |||
/** | |||
* 返回按钮 | |||
*/ | |||
ImageView gongneng_fanhui; | |||
/** | |||
* 标题设置 | |||
*/ | |||
TextView gongneng_title; | |||
//endregion | |||
//region 私有函数 | |||
@Override | |||
protected void onCreate(Bundle savedInstanceState) { | |||
super.onCreate(savedInstanceState); | |||
setContentView(R.layout.activity_yfpf); | |||
Init(); | |||
initEvents(); | |||
} | |||
//endregion | |||
//region 公共函数 | |||
/** | |||
* 初始化 | |||
*/ | |||
private void Init(){ | |||
gongneng_fanhui = this.findViewById(R.id.gongneng_fanhui); | |||
gongneng_title = this.findViewById(R.id.gongneng_title); | |||
//通过Activity.getIntent()获取当前页面接收到的Intent。 getXxxExtra方法获取Intent传递过来的数据 | |||
String msg=getIntent().getStringExtra("data"); | |||
gongneng_title.setText(msg); | |||
((TextView)this.findViewById(R.id.test_view)).setText(msg); | |||
} | |||
/** | |||
* 初始化按钮事件 | |||
*/ | |||
private void initEvents() { | |||
gongneng_fanhui.setOnClickListener(this); | |||
} | |||
//endregion | |||
//region 点击事件 | |||
/** | |||
* 本页面点击事件监听 | |||
* | |||
* @param v | |||
*/ | |||
@Override | |||
public void onClick(View v) { | |||
switch (v.getId()) { | |||
case R.id.gongneng_fanhui://返回按钮 | |||
this.finish(); | |||
break; | |||
} | |||
} | |||
//endregion | |||
} |
@@ -0,0 +1,75 @@ | |||
package com.example.bpa.view.from; | |||
import androidx.appcompat.app.AppCompatActivity; | |||
import android.os.Bundle; | |||
import android.view.View; | |||
import android.widget.ImageView; | |||
import android.widget.TextView; | |||
import com.example.bpa.R; | |||
/** | |||
* 员工操作日志 | |||
*/ | |||
public class ygczrz_activity extends AppCompatActivity implements View.OnClickListener{ | |||
//region 变量 | |||
/** | |||
* 返回按钮 | |||
*/ | |||
ImageView gongneng_fanhui; | |||
/** | |||
* 标题设置 | |||
*/ | |||
TextView gongneng_title; | |||
//endregion | |||
//region 私有函数 | |||
@Override | |||
protected void onCreate(Bundle savedInstanceState) { | |||
super.onCreate(savedInstanceState); | |||
setContentView(R.layout.activity_ygczrz); | |||
Init(); | |||
initEvents(); | |||
} | |||
//endregion | |||
//region 公共函数 | |||
/** | |||
* 初始化 | |||
*/ | |||
private void Init(){ | |||
gongneng_fanhui = this.findViewById(R.id.gongneng_fanhui); | |||
gongneng_title = this.findViewById(R.id.gongneng_title); | |||
//通过Activity.getIntent()获取当前页面接收到的Intent。 getXxxExtra方法获取Intent传递过来的数据 | |||
String msg=getIntent().getStringExtra("data"); | |||
gongneng_title.setText(msg); | |||
((TextView)this.findViewById(R.id.test_view)).setText(msg); | |||
} | |||
/** | |||
* 初始化按钮事件 | |||
*/ | |||
private void initEvents() { | |||
gongneng_fanhui.setOnClickListener(this); | |||
} | |||
//endregion | |||
//region 点击事件 | |||
/** | |||
* 本页面点击事件监听 | |||
* | |||
* @param v | |||
*/ | |||
@Override | |||
public void onClick(View v) { | |||
switch (v.getId()) { | |||
case R.id.gongneng_fanhui://返回按钮 | |||
this.finish(); | |||
break; | |||
} | |||
} | |||
//endregion | |||
} |
@@ -0,0 +1,75 @@ | |||
package com.example.bpa.view.from; | |||
import androidx.appcompat.app.AppCompatActivity; | |||
import android.os.Bundle; | |||
import android.view.View; | |||
import android.widget.ImageView; | |||
import android.widget.TextView; | |||
import com.example.bpa.R; | |||
/** | |||
* 自动清洗 | |||
*/ | |||
public class zdqx_activity extends AppCompatActivity implements View.OnClickListener{ | |||
//region 变量 | |||
/** | |||
* 返回按钮 | |||
*/ | |||
ImageView gongneng_fanhui; | |||
/** | |||
* 标题设置 | |||
*/ | |||
TextView gongneng_title; | |||
//endregion | |||
//region 私有函数 | |||
@Override | |||
protected void onCreate(Bundle savedInstanceState) { | |||
super.onCreate(savedInstanceState); | |||
setContentView(R.layout.activity_zdqx); | |||
Init(); | |||
initEvents(); | |||
} | |||
//endregion | |||
//region 公共函数 | |||
/** | |||
* 初始化 | |||
*/ | |||
private void Init(){ | |||
gongneng_fanhui = this.findViewById(R.id.gongneng_fanhui); | |||
gongneng_title = this.findViewById(R.id.gongneng_title); | |||
//通过Activity.getIntent()获取当前页面接收到的Intent。 getXxxExtra方法获取Intent传递过来的数据 | |||
String msg=getIntent().getStringExtra("data"); | |||
gongneng_title.setText(msg); | |||
((TextView)this.findViewById(R.id.test_view)).setText(msg); | |||
} | |||
/** | |||
* 初始化按钮事件 | |||
*/ | |||
private void initEvents() { | |||
gongneng_fanhui.setOnClickListener(this); | |||
} | |||
//endregion | |||
//region 点击事件 | |||
/** | |||
* 本页面点击事件监听 | |||
* | |||
* @param v | |||
*/ | |||
@Override | |||
public void onClick(View v) { | |||
switch (v.getId()) { | |||
case R.id.gongneng_fanhui://返回按钮 | |||
this.finish(); | |||
break; | |||
} | |||
} | |||
//endregion | |||
} |
@@ -0,0 +1,91 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||
xmlns:tools="http://schemas.android.com/tools" | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:orientation="vertical" | |||
android:background="@mipmap/dpbj" | |||
tools:context=".view.from.ddyjrz_activity"> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@color/test"> | |||
<ImageView | |||
android:id="@+id/gongneng_fanhui" | |||
android:layout_width="26dp" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_centerVertical="true" | |||
android:layout_marginLeft="20dp" | |||
android:textSize="@dimen/TitleSize" | |||
android:textColor="@color/titleforeground" | |||
android:src="@mipmap/zj" | |||
/> | |||
<RelativeLayout | |||
android:layout_centerInParent="true" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content"> | |||
<TextView | |||
android:id="@+id/gongneng_title" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_centerInParent="true" | |||
android:textColor="@color/white" | |||
android:textSize="@dimen/textTitleSize" | |||
android:textStyle="bold" /> | |||
<ImageView | |||
android:layout_width="400dp" | |||
android:layout_height="22dp" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/tittle" | |||
android:layout_marginLeft="5dp" | |||
/> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
<View | |||
android:layout_width="match_parent" | |||
android:layout_height="1dp" | |||
android:background="#FF03668F" /> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="5dp"> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/zs"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/zx"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/ys"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/yx"/> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="10dp"> | |||
<TextView | |||
android:id="@+id/test_view" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:textColor="@color/foreground" | |||
android:textSize="@dimen/TitleSize"> | |||
</TextView> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
</LinearLayout> |
@@ -0,0 +1,91 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||
xmlns:tools="http://schemas.android.com/tools" | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:orientation="vertical" | |||
android:background="@mipmap/dpbj" | |||
tools:context=".view.from.dzcjy_activity"> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@color/test"> | |||
<ImageView | |||
android:id="@+id/gongneng_fanhui" | |||
android:layout_width="26dp" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_centerVertical="true" | |||
android:layout_marginLeft="20dp" | |||
android:textSize="@dimen/TitleSize" | |||
android:textColor="@color/titleforeground" | |||
android:src="@mipmap/zj" | |||
/> | |||
<RelativeLayout | |||
android:layout_centerInParent="true" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content"> | |||
<TextView | |||
android:id="@+id/gongneng_title" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_centerInParent="true" | |||
android:textColor="@color/white" | |||
android:textSize="@dimen/textTitleSize" | |||
android:textStyle="bold" /> | |||
<ImageView | |||
android:layout_width="400dp" | |||
android:layout_height="22dp" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/tittle" | |||
android:layout_marginLeft="5dp" | |||
/> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
<View | |||
android:layout_width="match_parent" | |||
android:layout_height="1dp" | |||
android:background="#FF03668F" /> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="5dp"> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/zs"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/zx"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/ys"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/yx"/> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="10dp"> | |||
<TextView | |||
android:id="@+id/test_view" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:textColor="@color/foreground" | |||
android:textSize="@dimen/TitleSize"> | |||
</TextView> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
</LinearLayout> |
@@ -0,0 +1,91 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||
xmlns:tools="http://schemas.android.com/tools" | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:orientation="vertical" | |||
android:background="@mipmap/dpbj" | |||
tools:context=".view.from.lcsz_activity"> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@color/test"> | |||
<ImageView | |||
android:id="@+id/gongneng_fanhui" | |||
android:layout_width="26dp" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_centerVertical="true" | |||
android:layout_marginLeft="20dp" | |||
android:textSize="@dimen/TitleSize" | |||
android:textColor="@color/titleforeground" | |||
android:src="@mipmap/zj" | |||
/> | |||
<RelativeLayout | |||
android:layout_centerInParent="true" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content"> | |||
<TextView | |||
android:id="@+id/gongneng_title" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_centerInParent="true" | |||
android:textColor="@color/white" | |||
android:textSize="@dimen/textTitleSize" | |||
android:textStyle="bold" /> | |||
<ImageView | |||
android:layout_width="400dp" | |||
android:layout_height="22dp" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/tittle" | |||
android:layout_marginLeft="5dp" | |||
/> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
<View | |||
android:layout_width="match_parent" | |||
android:layout_height="1dp" | |||
android:background="#FF03668F" /> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="5dp"> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/zs"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/zx"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/ys"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/yx"/> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="10dp"> | |||
<TextView | |||
android:id="@+id/test_view" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:textColor="@color/foreground" | |||
android:textSize="@dimen/TitleSize"> | |||
</TextView> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
</LinearLayout> |
@@ -0,0 +1,92 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<LinearLayout | |||
xmlns:android="http://schemas.android.com/apk/res/android" | |||
xmlns:tools="http://schemas.android.com/tools" | |||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:orientation="vertical" | |||
android:background="@mipmap/dpbj" | |||
tools:context=".view.from.lsjy_activity"> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@color/test"> | |||
<ImageView | |||
android:id="@+id/gongneng_fanhui" | |||
android:layout_width="26dp" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_centerVertical="true" | |||
android:layout_marginLeft="20dp" | |||
android:textSize="@dimen/TitleSize" | |||
android:textColor="@color/titleforeground" | |||
android:src="@mipmap/zj" | |||
/> | |||
<RelativeLayout | |||
android:layout_centerInParent="true" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content"> | |||
<TextView | |||
android:id="@+id/gongneng_title" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_centerInParent="true" | |||
android:textColor="@color/white" | |||
android:textSize="@dimen/textTitleSize" | |||
android:textStyle="bold" /> | |||
<ImageView | |||
android:layout_width="400dp" | |||
android:layout_height="22dp" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/tittle" | |||
android:layout_marginLeft="5dp" | |||
/> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
<View | |||
android:layout_width="match_parent" | |||
android:layout_height="1dp" | |||
android:background="#FF03668F" /> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="5dp"> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/zs"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/zx"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/ys"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/yx"/> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="10dp"> | |||
<TextView | |||
android:id="@+id/test_view" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:textColor="@color/foreground" | |||
android:textSize="@dimen/TitleSize"> | |||
</TextView> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
</LinearLayout> |
@@ -144,5 +144,4 @@ | |||
android:layout_height="match_parent"/> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
</LinearLayout> |
@@ -0,0 +1,91 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||
xmlns:tools="http://schemas.android.com/tools" | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:orientation="vertical" | |||
android:background="@mipmap/dpbj" | |||
tools:context=".view.from.wlgl_activity"> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@color/test"> | |||
<ImageView | |||
android:id="@+id/gongneng_fanhui" | |||
android:layout_width="26dp" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_centerVertical="true" | |||
android:layout_marginLeft="20dp" | |||
android:textSize="@dimen/TitleSize" | |||
android:textColor="@color/titleforeground" | |||
android:src="@mipmap/zj" | |||
/> | |||
<RelativeLayout | |||
android:layout_centerInParent="true" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content"> | |||
<TextView | |||
android:id="@+id/gongneng_title" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_centerInParent="true" | |||
android:textColor="@color/white" | |||
android:textSize="@dimen/textTitleSize" | |||
android:textStyle="bold" /> | |||
<ImageView | |||
android:layout_width="400dp" | |||
android:layout_height="22dp" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/tittle" | |||
android:layout_marginLeft="5dp" | |||
/> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
<View | |||
android:layout_width="match_parent" | |||
android:layout_height="1dp" | |||
android:background="#FF03668F" /> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="5dp"> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/zs"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/zx"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/ys"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/yx"/> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="10dp"> | |||
<TextView | |||
android:id="@+id/test_view" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:textColor="@color/foreground" | |||
android:textSize="@dimen/TitleSize"> | |||
</TextView> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
</LinearLayout> |
@@ -0,0 +1,91 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||
xmlns:tools="http://schemas.android.com/tools" | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:orientation="vertical" | |||
android:background="@mipmap/dpbj" | |||
tools:context=".view.from.yfcl_activity"> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@color/test"> | |||
<ImageView | |||
android:id="@+id/gongneng_fanhui" | |||
android:layout_width="26dp" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_centerVertical="true" | |||
android:layout_marginLeft="20dp" | |||
android:textSize="@dimen/TitleSize" | |||
android:textColor="@color/titleforeground" | |||
android:src="@mipmap/zj" | |||
/> | |||
<RelativeLayout | |||
android:layout_centerInParent="true" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content"> | |||
<TextView | |||
android:id="@+id/gongneng_title" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_centerInParent="true" | |||
android:textColor="@color/white" | |||
android:textSize="@dimen/textTitleSize" | |||
android:textStyle="bold" /> | |||
<ImageView | |||
android:layout_width="400dp" | |||
android:layout_height="22dp" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/tittle" | |||
android:layout_marginLeft="5dp" | |||
/> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
<View | |||
android:layout_width="match_parent" | |||
android:layout_height="1dp" | |||
android:background="#FF03668F" /> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="5dp"> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/zs"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/zx"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/ys"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/yx"/> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="10dp"> | |||
<TextView | |||
android:id="@+id/test_view" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:textColor="@color/foreground" | |||
android:textSize="@dimen/TitleSize"> | |||
</TextView> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
</LinearLayout> |
@@ -0,0 +1,91 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||
xmlns:tools="http://schemas.android.com/tools" | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:orientation="vertical" | |||
android:background="@mipmap/dpbj" | |||
tools:context=".view.from.yfpf_activity"> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@color/test"> | |||
<ImageView | |||
android:id="@+id/gongneng_fanhui" | |||
android:layout_width="26dp" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_centerVertical="true" | |||
android:layout_marginLeft="20dp" | |||
android:textSize="@dimen/TitleSize" | |||
android:textColor="@color/titleforeground" | |||
android:src="@mipmap/zj" | |||
/> | |||
<RelativeLayout | |||
android:layout_centerInParent="true" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content"> | |||
<TextView | |||
android:id="@+id/gongneng_title" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_centerInParent="true" | |||
android:textColor="@color/white" | |||
android:textSize="@dimen/textTitleSize" | |||
android:textStyle="bold" /> | |||
<ImageView | |||
android:layout_width="400dp" | |||
android:layout_height="22dp" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/tittle" | |||
android:layout_marginLeft="5dp" | |||
/> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
<View | |||
android:layout_width="match_parent" | |||
android:layout_height="1dp" | |||
android:background="#FF03668F" /> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="5dp"> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/zs"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/zx"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/ys"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/yx"/> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="10dp"> | |||
<TextView | |||
android:id="@+id/test_view" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:textColor="@color/foreground" | |||
android:textSize="@dimen/TitleSize"> | |||
</TextView> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
</LinearLayout> |
@@ -0,0 +1,91 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||
xmlns:tools="http://schemas.android.com/tools" | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:orientation="vertical" | |||
android:background="@mipmap/dpbj" | |||
tools:context=".view.from.ygczrz_activity"> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@color/test"> | |||
<ImageView | |||
android:id="@+id/gongneng_fanhui" | |||
android:layout_width="26dp" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_centerVertical="true" | |||
android:layout_marginLeft="20dp" | |||
android:textSize="@dimen/TitleSize" | |||
android:textColor="@color/titleforeground" | |||
android:src="@mipmap/zj" | |||
/> | |||
<RelativeLayout | |||
android:layout_centerInParent="true" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content"> | |||
<TextView | |||
android:id="@+id/gongneng_title" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_centerInParent="true" | |||
android:textColor="@color/white" | |||
android:textSize="@dimen/textTitleSize" | |||
android:textStyle="bold" /> | |||
<ImageView | |||
android:layout_width="400dp" | |||
android:layout_height="22dp" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/tittle" | |||
android:layout_marginLeft="5dp" | |||
/> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
<View | |||
android:layout_width="match_parent" | |||
android:layout_height="1dp" | |||
android:background="#FF03668F" /> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="5dp"> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/zs"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/zx"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/ys"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/yx"/> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="10dp"> | |||
<TextView | |||
android:id="@+id/test_view" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:textColor="@color/foreground" | |||
android:textSize="@dimen/TitleSize"> | |||
</TextView> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
</LinearLayout> |
@@ -0,0 +1,91 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||
xmlns:tools="http://schemas.android.com/tools" | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:orientation="vertical" | |||
android:background="@mipmap/dpbj" | |||
tools:context=".view.from.zdqx_activity"> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="30dp" | |||
android:background="@color/test"> | |||
<ImageView | |||
android:id="@+id/gongneng_fanhui" | |||
android:layout_width="26dp" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_centerVertical="true" | |||
android:layout_marginLeft="20dp" | |||
android:textSize="@dimen/TitleSize" | |||
android:textColor="@color/titleforeground" | |||
android:src="@mipmap/zj" | |||
/> | |||
<RelativeLayout | |||
android:layout_centerInParent="true" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content"> | |||
<TextView | |||
android:id="@+id/gongneng_title" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_centerInParent="true" | |||
android:textColor="@color/white" | |||
android:textSize="@dimen/textTitleSize" | |||
android:textStyle="bold" /> | |||
<ImageView | |||
android:layout_width="400dp" | |||
android:layout_height="22dp" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/tittle" | |||
android:layout_marginLeft="5dp" | |||
/> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
<View | |||
android:layout_width="match_parent" | |||
android:layout_height="1dp" | |||
android:background="#FF03668F" /> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="5dp"> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/zs"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentLeft="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/zx"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentTop="true" | |||
android:src="@mipmap/ys"/> | |||
<ImageView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_alignParentBottom="true" | |||
android:src="@mipmap/yx"/> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:layout_margin="10dp"> | |||
<TextView | |||
android:id="@+id/test_view" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:textColor="@color/foreground" | |||
android:textSize="@dimen/TitleSize"> | |||
</TextView> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
</LinearLayout> |
@@ -5,7 +5,7 @@ | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:tag="云端更新" | |||
tools:context=".view.CloudFragment"> | |||
tools:context=".view.fragment.CloudFragment"> | |||
<TextView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
@@ -5,7 +5,7 @@ | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:tag="系统帮助" | |||
tools:context=".view.HeplerFragment" | |||
tools:context=".view.fragment.HeplerFragment" | |||
android:orientation="vertical"> | |||
<RelativeLayout | |||
android:layout_width="match_parent" | |||
@@ -5,7 +5,7 @@ | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:tag="系统主页" | |||
tools:context=".view.HomeFragment"> | |||
tools:context=".view.fragment.HomeFragment"> | |||
<LinearLayout | |||
android:layout_marginTop="20dp" | |||
android:layout_width="match_parent" | |||
@@ -6,7 +6,7 @@ | |||
android:layout_height="match_parent" | |||
android:orientation="vertical" | |||
android:tag="系统功能" | |||
tools:context=".view.SystemCapabilitiesFragment"> | |||
tools:context=".view.fragment.SystemCapabilitiesFragment"> | |||
<RelativeLayout | |||
android:id="@+id/recycler_view_container" | |||
android:layout_width="match_parent" | |||
@@ -5,7 +5,7 @@ | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:tag="系统设置" | |||
tools:context=".view.SystemSetFragment"> | |||
tools:context=".view.fragment.SystemSetFragment"> | |||
<TextView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||