如何在Android OnKeyPress Logic中执行此操作

时间:2018-09-14 06:27:31

标签: android

我有两个edittext的数量和百分比。当我输入edittext的百分比时,edittext的百分比应该改变,反之亦然。如何实现呢?

1 个答案:

答案 0 :(得分:0)

这是实现它的方法。

<div class="row">
<?php

    $stmt = $DB_con->prepare('SELECT userID, userName, userItemName, userItemPrice, userItemQuantity, userItemDetails, userCustomerID, userPic FROM upload_tbl_users ORDER BY userCustomerID DESC');
    $stmt->execute();

    if($stmt->rowCount() > 0)
    {
        while($row=$stmt->fetch(PDO::FETCH_ASSOC))
        {
            extract($row);
            ?>
            <div class="col-xs-3">
                <p class="page-header"><?php echo $userName."&nbsp;/&nbsp;".$userItemName; ?></p>
                <a target="_blank" href="user_images/<?php echo $row['userPic']; ?>" />
                <img src="user_images/<?php echo $row['userPic']; ?>" class="img-rounded" width="250px" height="250px" />
                <p class="page-header">
                <span>
                <a class="btn btn-info" href="editform.php?edit_id=<?php echo $row['userCustomerID']; ?>" title="click for edit" onclick="return confirm('sure to edit ?')"><span class="glyphicon glyphicon-edit"></span> Edit</a> 
                <a class="btn btn-danger" href="?delete_id=<?php echo $row['userCustomerID']; ?>" title="click for delete" onclick="return confirm('sure to delete ?')"><span class="glyphicon glyphicon-remove-circle"></span> Delete</a>
                </span>
                </p>
            </div>       
            <?php
        }
    }
    else
    {
        ?>
        <div class="col-xs-12">
            <div class="alert alert-warning">
                <span class="glyphicon glyphicon-info-sign"></span> &nbsp; No Data Found ...
            </div>
        </div>
        <?php
    }

?>
</div>