我想区分视图的背景颜色,但我不知道该怎么做。谁能帮我完成任务。
下面是我的 DatabaseHelper.java 类
public List<HouseModal> get_Working_Area_Structures_House(int limit, int offset,String searched_Str) {
if(database == null){
database = getWritableDatabase();
}
List<HouseModal> list_krd= new ArrayList<>();
String selectQuery = "SELECT DISTINCT\n" +
"\tWAS.Para_Structure_ID,\n" +
"\tWAS.Para_Code || ' ' || CAST (WAS.Structure_No AS int) AS Structure_No,\n" +
"\tST.Family_Count AS Families,\n" +
"\tFM.Family_Members_Count AS Family_Members, \n" +
"\t FM.Family_Migration AS Family_Migration\n" +
"FROM\n" +
"\t (\n" +
"\t\t SELECT\n" +
"\t\t\tP.Para_Code,\n" +
"\t\t\tPS.Para_Structure_ID,\n" +
"\t\t\tPS.Structure_No \n" +
"\t\tFROM\n" +
"\t\t\tPara_Structure AS PS\n" +
"\t\tINNER JOIN Working_Area_Structures AS WAS ON PS.Para_Structure_ID = WAS.Para_Structure_ID\n" +
"\t\tINNER JOIN Field_Station_Paras AS P ON PS.Para_ID = P.Para_ID \n" +
"\t) AS WAS,\n" +
"\t (\n" +
"\tSELECT\n" +
"\t\t\tKH.Para_Structure_ID,\n" +
"\t\t\tCOUNT(DISTINCT KH.House_Hold_ID) AS Family_Count \n" +
"\t\tFROM\n" +
"\t\t\tKhandan_Register_Header AS KH\n" +
"\t\tLEFT JOIN Family_Visit_History AS FVH ON KH.House_Hold_ID = FVH.House_Hold_ID \n" +
"\t\tWHERE\n" +
"\t\t(FVH.Visit_Status = 0 OR FVH.Visit_Status IS NULL)\n" +
"\t\t--AND ((date(FVH.Visit_Date) >= (SELECT date(Starting_Date) FROM Working_Cycle WHERE DATE('NOW') BETWEEN date(Starting_Date)AND date(Ending_Date)) AND date(FVH.Visit_Date) <= (SELECT date(Ending_Date) FROM Working_Cycle WHERE DATE('NOW') BETWEEN date(Starting_Date)AND date(Ending_Date))) OR date(FVH.Visit_Date) IS NULL) \n" +
蝴蝶刀刀
RISEBY
相关分类