Explorar el Código

知识库,2023.04.24 14:44

master
lujin hace 2 años
padre
commit
5be1660e9c

+ 12
- 2
app/src/main/AndroidManifest.xml Ver fichero

@@ -223,6 +223,16 @@
android:exported="true"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<activity android:name=".project.ui.activity.MyBluetooth" /> <!-- ETC办理 -->
<activity
android:name=".project.ui.activity.after.KnowledgeActivity"
android:exported="false"
android:launchMode="singleTop"
android:screenOrientation="portrait"/><!-- 知识库 -->
<activity
android:name=".project.ui.activity.KnowledgeInfoActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:exported="false"/><!-- 问题详情 -->
<activity
android:name=".project.ui.activity.ETCHandleActivity"
android:launchMode="singleTop"
@@ -259,9 +269,9 @@
</activity>
<activity
android:name=".project.ui.activity.SignUpActivity"
android:exported="false"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:exported="false"><!-- 支付方式签约 -->
android:screenOrientation="portrait"> <!-- 支付方式签约 -->
</activity>
<activity
android:name=".project.ui.activity.evaluate.YWYServicePJActivity"

+ 14
- 1
app/src/main/java/com/huntersun/vkyes/etcopencard/project/api/bean/EnumBean.java Ver fichero

@@ -10,7 +10,10 @@ import com.huntersun.vkyes.etcopencard.project.utils.FunHelper;
public class EnumBean {

//******************以下枚举接口会返回,为防止接口返回异常本地添加数据不做删除*****************//

//问题类型
public static EnumBean[] PROBLEM_TYPE = {
// Add("1","")
};
//订单状态
public static EnumBean[] ORDER_STATUS = {
Add("0", "正常"),
@@ -173,12 +176,22 @@ public class EnumBean {
Add("3", "加油"),
Add("4", "服务区消费"),
};
//*********************************tab使用*********************************//
private boolean choosetab = false;

public boolean isChoosetab() {
return choosetab;
}

public void setChoosetab(boolean choosetab) {
this.choosetab = choosetab;
}
//*********************************使用*********************************//

private String code;
private String name;


public EnumBean(String code, String name) {
this.code = code;
this.name = name;

+ 1
- 0
app/src/main/java/com/huntersun/vkyes/etcopencard/project/api/bean/IFCode.java Ver fichero

@@ -181,4 +181,5 @@ public class IFCode {
public static final String IFCODE_ADD_OBU = "837c22e80fa34506a0855306d9cbb6f7"; //增补OBU
public static final String IFCODE_ENUM = "cefb3b5da25a49eeb18865c00bc91c96"; //枚举值查询
public static final String IFCODE_AUDITING = "40dd538017164e7fbcfd3c410ae61726";//8.2.39.订单人工审核
public static final String IFCODE_KNOWLEDGE = "c5a4e35d11594ccabd46e6b66c0a75fb";//知识库
}

+ 6
- 0
app/src/main/java/com/huntersun/vkyes/etcopencard/project/api/bean/ResultBean.java Ver fichero

@@ -2,6 +2,7 @@ package com.huntersun.vkyes.etcopencard.project.api.bean;

import com.huntersun.vkyes.etcopencard.project.copapply.ObuDetailInfoBean;
import com.huntersun.vkyes.etcopencard.project.tool.MyShared;
import com.umeng.commonsdk.debug.E;

import java.util.List;

@@ -229,6 +230,7 @@ public class ResultBean<T> {

/* 枚举值列表 */
public static class EnumListEntity{
public List<EnumBean> PROBLEM_TYPE;//问题类型
public List<EnumBean> ORDER_STAGE_TYPE; //订单阶段
public List<EnumBean> USER_TYPE; //用户类型
public List<EnumBean> VEHICLE_COLOR_TYPE; //车牌颜色
@@ -257,6 +259,10 @@ public class ResultBean<T> {
}

public static class BizContent<T> {
public String problemName;
public String problemType;
public String solution;
public String updateTime;
public String productSeriesId;
public String registeredTime;//录入时间
public boolean isSelected; //是否选中 (本地添加)

+ 47
- 0
app/src/main/java/com/huntersun/vkyes/etcopencard/project/ui/activity/KnowledgeInfoActivity.java Ver fichero

@@ -0,0 +1,47 @@
package com.huntersun.vkyes.etcopencard.project.ui.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import com.alibaba.fastjson.JSONObject;
import com.huntersun.vkyes.etcopencard.databinding.ActivityKnowledgeInfoBinding;
import com.huntersun.vkyes.etcopencard.project.api.bean.ResultBean;
import com.huntersun.vkyes.etcopencard.src.app.AppActivity;

/**
*
* @ClassName: KnowledgeInfoActivity
* @Description: 问题详情页
* @Author: lujin
* @CreateDate: 2023/4/20 16:15
*/

public class KnowledgeInfoActivity extends AppActivity {
private ActivityKnowledgeInfoBinding binding;
@Override
protected View getLayoutView() {
binding = ActivityKnowledgeInfoBinding.inflate(getLayoutInflater());
return binding.getRoot();
}

// @Override
// protected void onCreate(Bundle savedInstanceState) {
// super.onCreate(savedInstanceState);
// setContentView(R.layout.activity_knowledge_info);
// }

@Override
protected void initView() {

}

@Override
protected void initData() {
ResultBean.BizContent biz = JSONObject.parseObject(getIntent().getStringExtra("bizContent"), ResultBean.BizContent.class);
binding.tvStyle.setText(biz.problemType);
binding.tvQuestion.setText(biz.problemName);
binding.tvQuestionDeal.setText(biz.solution);
}
}

+ 242
- 0
app/src/main/java/com/huntersun/vkyes/etcopencard/project/ui/activity/after/KnowledgeActivity.java Ver fichero

@@ -0,0 +1,242 @@
package com.huntersun.vkyes.etcopencard.project.ui.activity.after;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.alibaba.fastjson.JSON;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.huntersun.vkyes.etcopencard.R;
import com.huntersun.vkyes.etcopencard.databinding.ActivityKnowledgeBinding;
import com.huntersun.vkyes.etcopencard.project.api.MyRetrofit;
import com.huntersun.vkyes.etcopencard.project.api.bean.EnumBean;
import com.huntersun.vkyes.etcopencard.project.api.bean.IFCode;
import com.huntersun.vkyes.etcopencard.project.api.bean.ResultBean;
import com.huntersun.vkyes.etcopencard.project.ui.activity.KnowledgeInfoActivity;
import com.huntersun.vkyes.etcopencard.project.utils.FunHelper;
import com.huntersun.vkyes.etcopencard.project.view.CommonItemDecoration;
import com.huntersun.vkyes.etcopencard.src.action.StatusAction;
import com.huntersun.vkyes.etcopencard.src.app.AppActivity;
import com.huntersun.vkyes.etcopencard.src.widget.StatusLayout;
import com.ruffian.library.widget.RTextView;
import com.scwang.smart.refresh.layout.api.RefreshLayout;
import com.scwang.smart.refresh.layout.listener.OnRefreshListener;
import com.scwang.smart.refresh.layout.listener.OnRefreshLoadMoreListener;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
*
* @ClassName: 知识库列表
* @Description: java类作用描述
* @Author: lujin
* @CreateDate: 2023/4/20 10:19
*/
public class KnowledgeActivity extends AppActivity implements StatusAction, OnRefreshLoadMoreListener, OnRefreshListener {
private ActivityKnowledgeBinding binding;
private int pageNo = 1;
private int sizeNo = 10;
private String programNo = "";
// private String keyword = "";
private ArrayList<EnumBean> data = new ArrayList<>();

@Override
protected View getLayoutView() {
binding = ActivityKnowledgeBinding.inflate(getLayoutInflater());
return binding.getRoot();
}

// @Override
// protected void onCreate(Bundle savedInstanceState) {
// super.onCreate(savedInstanceState);
// setContentView(R.layout.activity_knowledge);
// }

@Override
protected void initView() {
initRecyclerview();
getEnumList();
binding.mRefresh.setOnRefreshListener(this);
binding.mRefresh.setOnLoadMoreListener(this);
binding.search.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
getData(programNo);
}
});
}
/* 获取枚举值 */
private void getEnumList(){
if (data.isEmpty()){
EnumBean enumBean = new EnumBean("-1","全部");
enumBean.setChoosetab(true);
data.add(enumBean);
}
MyRetrofit.newInstance(IFCode.IFCODE_ENUM, new ResultBean.BizContent<>(), new MyRetrofit.ReturnResult() {
@Override
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) {
if (bizContent.dictTypeAndItem == null) return;
if (!FunHelper.isEmpty(bizContent.dictTypeAndItem.PROBLEM_TYPE)){//车牌颜色
EnumBean.VEHICLE_COLOR = bizContent.dictTypeAndItem.PROBLEM_TYPE.toArray(new EnumBean[bizContent.dictTypeAndItem.VEHICLE_COLOR_TYPE.size()]);
data.addAll(bizContent.dictTypeAndItem.PROBLEM_TYPE);
adapter2.replaceData(data);
}
}
});
}

private void initRecyclerview() {
//问题类型
LinearLayoutManager layoutManagerStyle = new LinearLayoutManager(this,RecyclerView.HORIZONTAL,false);
CommonItemDecoration commonItemDecorationStyle = new CommonItemDecoration(40,0,40,40,40,0);
binding.recyclerStyle.setLayoutManager(layoutManagerStyle);
binding.recyclerStyle.addItemDecoration(commonItemDecorationStyle);
binding.recyclerStyle.setAdapter(adapter2);
adapter2.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() {
@Override
public void onItemChildClick(BaseQuickAdapter baseQuickAdapter, View view, int i) {
if (view.getId()==R.id.tv_knowledge_style){
for (int j = 0;j<data.size();j++){
if (j==i){
data.get(i).setChoosetab(true);
}else {
data.get(j).setChoosetab(false);
}
}
programNo = data.get(i).getKey();
getData(data.get(i).getKey());
adapter2.replaceData(data);
}
}
});

//问题列表
LinearLayoutManager layoutManager = new LinearLayoutManager(this, RecyclerView.VERTICAL,false);
CommonItemDecoration commonItemDecoration = new CommonItemDecoration(0,40,40,40,40,0);
binding.recycler.setLayoutManager(layoutManager);
binding.recycler.addItemDecoration(commonItemDecoration);
binding.recycler.setAdapter(adapter);
adapter.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() {
@Override
public void onItemChildClick(BaseQuickAdapter baseQuickAdapter, View view, int i) {
switch (view.getId()){
case R.id.ly_program:
Intent intent = new Intent();
intent.putExtra("bizContent", JSON.toJSONString(adapter.getItem(i)));
intent.setClass(KnowledgeActivity.this, KnowledgeInfoActivity.class);
KnowledgeActivity.this.startActivity(intent);
break;
}
}
});
}

@Override
protected void initData() {
HashMap<String,String> map = new HashMap<>();
map.put("pageNo",pageNo+"");
map.put("pageSize",sizeNo+"");
MyRetrofit.newInstance(IFCode.IFCODE_KNOWLEDGE, map, new MyRetrofit.ReturnResult() {
@Override
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) {
if (null!=bizContent.getData()&&!bizContent.getData().isEmpty()){
adapter.replaceData(bizContent.getData());
showComplete();
}else{
showEmpty();
}
}

@Override
public void onError() {
MyRetrofit.ReturnResult.super.onError();
}
});
}

/*
根据问题类型模糊查询
*/
protected void getData(String type){
HashMap<String,String> map = new HashMap<>();
if ("-1".equals(type)||null==type){
map.put("problemType","");
}else {
map.put("problemType",type);
}
map.put("problemName",binding.editQuery.getText().toString());
map.put("pageNo",pageNo+"");
map.put("pageSize",sizeNo+"");
MyRetrofit.newInstance(IFCode.IFCODE_KNOWLEDGE, map, new MyRetrofit.ReturnResult() {
@Override
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) {
if (null!=bizContent.getData()&&!bizContent.getData().isEmpty()){
adapter.replaceData(bizContent.getData());
showComplete();
}else{
showEmpty();
}
}

@Override
public void onError() {
MyRetrofit.ReturnResult.super.onError();
}
});
}

BaseQuickAdapter<EnumBean,BaseViewHolder> adapter2 = new BaseQuickAdapter<EnumBean, BaseViewHolder>(R.layout.item_knowledge_style_1) {
@Override
protected void convert(@NonNull BaseViewHolder holder,EnumBean enumBean) {
RTextView tv = holder.getView(R.id.tv_knowledge_style);
tv.setText(enumBean.getValue());
if (enumBean.isChoosetab()){
tv.setEnabled(false);
}else {
tv.setEnabled(true);
}
holder.addOnClickListener(R.id.tv_knowledge_style);
}
};

BaseQuickAdapter<ResultBean.BizContent, BaseViewHolder> adapter = new BaseQuickAdapter<ResultBean.BizContent, BaseViewHolder>(R.layout.item_knowledge_1) {
@Override
protected void convert(@NonNull BaseViewHolder holder, ResultBean.BizContent bizContent) {
holder.setText(R.id.tv_style,bizContent.problemType);
holder.setText(R.id.tv_question,bizContent.problemName);
holder.addOnClickListener(R.id.ly_program);
}
};

@Override
public StatusLayout getStatusLayout() {
return binding.hlStatusHint;
}

@Override
public void onRefresh(@NonNull RefreshLayout refreshLayout) {
pageNo =1;
// initData();
getData(programNo);
binding.mRefresh.finishRefresh();
}

@Override
public void onLoadMore(@NonNull RefreshLayout refreshLayout) {
pageNo++;
// initData();
getData(programNo);
binding.mRefresh.finishLoadMore();
}
}

+ 1
- 2
app/src/main/java/com/huntersun/vkyes/etcopencard/project/ui/activity/order/OrderUtils.java Ver fichero

@@ -382,7 +382,6 @@ public class OrderUtils {
@Override
@SingleClick
public void onClick(View view) {
ToastUtils.show("发货");
startActivity(FormDeliveryActivity.class);
}
});
@@ -416,7 +415,7 @@ public class OrderUtils {
new ConfirmDialog.Builder(context).setMsg("确定是否再次唤醒订单?", R.mipmap.icon_active_order).onClick(new ConfirmDialog.Result() {
@Override
public void confirm() {
ToastUtils.show("再次唤起");
}
}).show();
}

+ 46
- 0
app/src/main/java/com/huntersun/vkyes/etcopencard/project/ui/fragment/KnowledgeFragment.java Ver fichero

@@ -0,0 +1,46 @@
package com.huntersun.vkyes.etcopencard.project.ui.fragment;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.huntersun.vkyes.etcopencard.R;
import com.huntersun.vkyes.etcopencard.databinding.FragmentKnowledgeBinding;
import com.huntersun.vkyes.etcopencard.src.app.AppFragment;

/**
*
* @ClassName: KnowledgeFragment
* @Description: 问题列表
* @Author: lujin
* @CreateDate: 2023/4/21 9:50
*/

public class KnowledgeFragment extends AppFragment {
private FragmentKnowledgeBinding binding;
private final int rc;

public KnowledgeFragment(int rc) {
this.rc = rc;
}

@Override
protected View getLayoutView(LayoutInflater inflater, ViewGroup container) {
binding = FragmentKnowledgeBinding.inflate(inflater,container,false);
return binding.getRoot();
}

@Override
protected void initView() {

}

@Override
protected void initData() {

}
}

+ 40
- 0
app/src/main/res/layout-v5/item_knowledge_1.xml Ver fichero

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<com.ruffian.library.widget.RRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:background_normal="@color/white"
app:corner_radius="@dimen/dp_10"
android:id="@+id/ly_program"
android:padding="@dimen/dp_10"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="问题类型:"
style="@style/blackTextStyleBold16"
android:id="@+id/tv1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
style="@style/blackTextStyleBold16"
android:id="@+id/tv_style"
android:layout_toRightOf="@+id/tv1"
android:layout_marginLeft="@dimen/dp_5"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="问题:"
style="@style/blackTextStyleBold16"
android:layout_below="@+id/tv1"
android:id="@+id/tv2"
android:layout_marginTop="@dimen/dp_10"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/tv2"
android:layout_alignTop="@+id/tv2"
android:id="@+id/tv_question"
style="@style/blackTextStyleBold16"
android:layout_marginLeft="@dimen/dp_5"/>
</com.ruffian.library.widget.RRelativeLayout>

+ 16
- 0
app/src/main/res/layout-v5/item_knowledge_style_1.xml Ver fichero

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<com.ruffian.library.widget.RTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:background_normal="@color/gray04"
android:paddingLeft="@dimen/dp_10"
android:paddingRight="@dimen/dp_10"
app:text_color_normal="@color/gray02"
app:text_color_unable="@color/white"
app:background_unable="@color/green02"
android:id="@+id/tv_knowledge_style"
android:textSize="@dimen/sp_12"
android:gravity="center"
app:corner_radius="@dimen/dp_20"
android:layout_height="@dimen/dp_26">
</com.ruffian.library.widget.RTextView>

+ 92
- 0
app/src/main/res/layout/activity_knowledge.xml Ver fichero

@@ -0,0 +1,92 @@
<?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:background="@color/background_color"
android:orientation="vertical"
tools:context=".project.ui.activity.after.KnowledgeActivity">
<com.hjq.bar.TitleBar
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
app:leftIcon="@mipmap/back_black"
app:lineVisible="false"
app:title="知识库"
app:titleColor="@color/black" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/dp_10"
android:background="@color/white"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_35"
android:gravity="center_vertical"
android:layout_marginLeft="@dimen/dp_13"
android:layout_marginRight="@dimen/dp_13"
android:orientation="horizontal"
android:padding="@dimen/dp_2">

<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/item_home_frame3"
android:gravity="center_vertical"
android:paddingHorizontal="@dimen/dp_12">

<ImageView
android:layout_width="18dp"
android:layout_height="@dimen/sp_15"
android:src="@drawable/search_ic" />

<com.hjq.widget.view.ClearEditText
android:id="@+id/edit_query"
style="@style/EditTextStyle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:hint="请输入关键词"
android:imeActionLabel="Search"
android:imeOptions="actionSearch"
android:inputType="text"
android:paddingVertical="0dp"
android:singleLine="true" />

</LinearLayout>

<Button
android:id="@+id/search"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="@dimen/dp_10"
android:background="@drawable/item_home_frame3"
android:text="搜索"
android:textColor="#999999"
android:textSize="12sp" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/recycler_style"/>
</LinearLayout>


<com.scwang.smart.refresh.layout.SmartRefreshLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/mRefresh">
<com.huntersun.vkyes.etcopencard.src.widget.StatusLayout
android:id="@+id/hl_status_hint"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/recycler"/>
</com.huntersun.vkyes.etcopencard.src.widget.StatusLayout>
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
</LinearLayout>

+ 68
- 0
app/src/main/res/layout/activity_knowledge_info.xml Ver fichero

@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/background_color"
android:layout_height="match_parent">
<com.hjq.bar.TitleBar
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
app:leftIcon="@mipmap/back_black"
app:lineVisible="false"
app:title="问题详情"
app:titleColor="@color/black" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="问题类型:"
android:layout_marginTop="@dimen/dp_15"
android:layout_marginLeft="@dimen/dp_15"
android:layout_below="@+id/title"
style="@style/blackTextStyleBold16"
android:id="@+id/tv1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
style="@style/blackTextStyleBold16"
android:id="@+id/tv_style"
android:layout_alignTop="@+id/tv1"
android:layout_toRightOf="@+id/tv1"
android:layout_marginLeft="@dimen/dp_5"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="问题:"
style="@style/blackTextStyleBold16"
android:layout_below="@+id/tv1"
android:layout_alignLeft="@+id/tv1"
android:id="@+id/tv2"
android:layout_marginTop="@dimen/dp_10"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/tv2"
android:layout_alignTop="@+id/tv2"
android:id="@+id/tv_question"
style="@style/blackTextStyleBold16"
android:layout_marginLeft="@dimen/dp_5"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="解决方式:"
style="@style/blackTextStyleBold16"
android:layout_below="@+id/tv2"
android:layout_alignLeft="@+id/tv2"
android:id="@+id/tv3"
android:layout_marginTop="@dimen/dp_10"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/tv3"
android:layout_alignTop="@+id/tv3"
android:id="@+id/tv_question_deal"
style="@style/blackTextStyleBold16"
android:layout_marginLeft="@dimen/dp_5"/>
</RelativeLayout>

+ 14
- 0
app/src/main/res/layout/fragment_knowledge.xml Ver fichero

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".project.ui.fragment.KnowledgeFragment">

<!-- TODO: Update blank fragment layout -->
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />

</FrameLayout>

Cargando…
Cancelar
Guardar