欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Android中設(shè)置RadioButton在文字右邊的方法實(shí)例

 更新時(shí)間:2015年04月24日 10:16:20   投稿:junjie  
這篇文章主要介紹了Android中設(shè)置RadioButton在文字右邊的方法實(shí)例,本文直接給出XML配置實(shí)現(xiàn)代碼,需要的朋友可以參考下


<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
  android:layout_width="match_parent" 
  android:layout_height="match_parent" 
  android:orientation="vertical"  
  android:layout_marginRight="5dp" 
  android:layout_marginLeft="10dp"> 
 
  <RadioGroup 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" > 
 
    <RadioButton 
      android:id="@+id/rb_disable" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:button="@null" 
      android:drawableRight="@android:drawable/btn_radio" 
      android:text="@string/data_romaing_disable" /> 
 
    <RadioButton 
      android:id="@+id/rb_national_romaing_only" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:button="@null" 
      android:drawableRight="@android:drawable/btn_radio" 
      android:text="@string/data_romaing_national_romaing_only" /> 
 
    <RadioButton 
      android:id="@+id/rb_all_network" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:button="@null" 
      android:drawableRight="@android:drawable/btn_radio" 
      android:text="@string/data_romaing_all_network" /> 
  </RadioGroup> 
 
</LinearLayout> 


 想要改變RadioButton 的位置,就先設(shè)置默認(rèn)的圖片為null ,在調(diào)用對(duì)應(yīng)的方法將圖標(biāo)放在指定的位置

相關(guān)文章

  • ViewPager和SlidingPaneLayout的滑動(dòng)事件沖突解決方法

    ViewPager和SlidingPaneLayout的滑動(dòng)事件沖突解決方法

    下面小編就為大家分享一篇ViewPager和SlidingPaneLayout的滑動(dòng)事件沖突解決方法,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧
    2018-01-01
  • Android 美食大轉(zhuǎn)盤(pán)詳解流程

    Android 美食大轉(zhuǎn)盤(pán)詳解流程

    今天為大家?guī)?lái)一篇Android實(shí)例項(xiàng)目,美食大轉(zhuǎn)盤(pán),當(dāng)你還在為明天吃什么而煩惱時(shí),它將幫你做出最佳的選擇,美食大轉(zhuǎn)盤(pán)詳細(xì)流程來(lái)咯
    2021-11-11
  • Android編程實(shí)現(xiàn)Dialog窗體監(jiān)聽(tīng)的方法

    Android編程實(shí)現(xiàn)Dialog窗體監(jiān)聽(tīng)的方法

    這篇文章主要介紹了Android編程實(shí)現(xiàn)Dialog窗體監(jiān)聽(tīng)的方法,結(jié)合實(shí)例形式分析了Android針對(duì)Dialog對(duì)話(huà)框窗體事件監(jiān)聽(tīng)與響應(yīng)相關(guān)操作技巧,需要的朋友可以參考下
    2017-03-03
  • 基于Android SQLite的升級(jí)詳解

    基于Android SQLite的升級(jí)詳解

    本篇文章是對(duì)Android SQLite的升級(jí)進(jìn)行了詳細(xì)的分析介紹。需要的朋友參考下
    2013-05-05
  • Android自定義可點(diǎn)擊的ImageSpan并在TextView中內(nèi)置View

    Android自定義可點(diǎn)擊的ImageSpan并在TextView中內(nèi)置View

    這篇文章主要為大家詳細(xì)介紹了Android自定義可點(diǎn)擊的ImageSpan并在TextView中內(nèi)置"View",具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2017-11-11
  • Android 如何獲取設(shè)備唯一標(biāo)識(shí)

    Android 如何獲取設(shè)備唯一標(biāo)識(shí)

    這篇文章主要介紹了Android 如何獲取設(shè)備唯一標(biāo)識(shí),幫助大家更好的理解和學(xué)習(xí)使用Android,感興趣的朋友可以了解下
    2021-03-03
  • Android使用內(nèi)置WebView打開(kāi)TextView超鏈接的實(shí)現(xiàn)方法

    Android使用內(nèi)置WebView打開(kāi)TextView超鏈接的實(shí)現(xiàn)方法

    這篇文章主要介紹了Android使用內(nèi)置WebView打開(kāi)TextView超鏈接的實(shí)現(xiàn)方法,文中給出了詳細(xì)的示例代碼,對(duì)各位Android開(kāi)發(fā)者們具有一定的參考價(jià)值,需要的朋友們下面來(lái)一起看看吧。
    2017-03-03
  • android studio2.3如何編譯動(dòng)態(tài)庫(kù)的過(guò)程詳解

    android studio2.3如何編譯動(dòng)態(tài)庫(kù)的過(guò)程詳解

    這篇文章主要給大家介紹了關(guān)于android studio 2.3如何編譯動(dòng)態(tài)庫(kù)的過(guò)程,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)各位Android開(kāi)發(fā)者們具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面跟著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧。
    2017-08-08
  • Android SeekBar在刷新使用中需要注意的問(wèn)題

    Android SeekBar在刷新使用中需要注意的問(wèn)題

    SeekBar在刷新使用中需要注意的問(wèn)題:在使用SeekBar的過(guò)程中需要注意刷新頻率,避免頻繁刷新造成的性能問(wèn)題;同時(shí),需要對(duì)SeekBar的監(jiān)聽(tīng)事件進(jìn)行適當(dāng)?shù)膬?yōu)化,減少回調(diào)次數(shù),提高響應(yīng)速度
    2023-05-05
  • 詳解用flutter制作上班摸魚(yú)應(yīng)用

    詳解用flutter制作上班摸魚(yú)應(yīng)用

    本文主要介紹了用flutter制作上班摸魚(yú)應(yīng)用,文中通過(guò)示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2022-03-03

最新評(píng)論