Home>

In android development, buttons with text and images are often used. Here I will introduce the use of radiobuttons to achieve vertical and horizontal layout of pictures and text.Interested friends study together

In android development, buttons with text and images are often used. Here I will introduce the use of radiobuttons to achieve vertical and horizontal layout of pictures and text.The code is so simple that I won't explain it to everyone.

The layout file is simple,Used to show the use of radiobutton.

<?xml version="." Encoding="utf-"?>
 <relativelayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:orientation="vertical">
   <radiobutton
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_centerinparent="true"
     android:button="@ null"
     android:drawabletop="@ drawable/ic_launcher"
     android:text="test button" />
 </relativelayout>
  • Previous Example code explain jqueryslidesjs
  • Next Yii Timing Examples