// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Android
try {
    //Instantiating a Workbook object
    Workbook workbook = new Workbook();
    Worksheet sheet = workbook.getWorksheets().get(0);
    ConditionalFormattingCollection cfs = sheet.getConditionalFormattings();

    // Adds an empty conditional formatting
    int index = cfs.add();
    FormatConditionCollection fcs = cfs.get(index);

    //Sets condition formulas.
    int conditionIndex = fcs.addCondition(FormatConditionType.CELL_VALUE, OperatorType.BETWEEN,"=A2","100");

    FormatCondition fc = fcs.get(conditionIndex);

    Style style = fc.getStyle();
    style.setBorder(BorderType.LEFT_BORDER, CellBorderType.DASHED,Color.fromArgb(0, 255, 255));
    style.setBorder(BorderType.TOP_BORDER,CellBorderType.DASHED,Color.fromArgb(0, 255, 255))
    style.setBorder(BorderType.RIGHT_BORDER,CellBorderType.DASHED,Color.fromArgb(0, 255, 255));
    style.setBorder(BorderType.RIGHT_BORDER,CellBorderType.DASHED,Color.fromArgb(255, 255, 0));
    fc.setStyle(style);

} catch(Exception e) {
    Log.e(TAG, "Set Border", e);
}