• 13

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

In Android you have to create a drawable background with <corners> to create a border radius effect on a View. There is no XML attribute borderRadius like in HTML/CSS.

Why is this?

Well, why is bit too deep to answer I reckon. However, I can point you to stroke attribute, have you had a look at it? I feel it achieves the same effect. Essentially, you can add a border to any shape using stroke. E.g..

<shape android:shape="oval">
    <stroke android:color="#fefefe" android:width="1dp" />
  • 1
Reply Report