what is android Radio Button in hindi-एंड्राइड रेडियो बटन क्या है?

हेल्लो दोस्तों आज के इस पोस्ट में आपको android Radio Button in hindi व्क्या है कैसे काम करता है तो चलिए शुरू करते है।

रेडियो बटन

एक रेडियो बटन में दो state होते हैं: या तो checked या uncheckedi यह user को एक सेट से एक विकल्प का चयन करने की अनुमति देता है।

अथवा

android में रेडियोबटन वह होता है जो की जिसे केवल दो possiblestates होता है जो या तो check यह uncheck किए किये जाते है प्रारंभ में यह unchecked स्टेट में है एक बार checkedके बाद यह unchecked नहीं हो सकता है

Read Me-

  • what is android button in hindi-बटन क्या होता है ?
  • what is android TextView in hindi-टेक्स्टव्यू क्या है?
  • Basic UI component in hindi-बेसिक UI कंपोनेंट क्या है?
  • Android Resources in hindi-एंड्राइड रिसोर्सेज हिंदी में

हम इसे दो तरीके से बना सकते है

1.xml file

<Linear Layout 
xmls:android = “http://schemas.android.com/apk/res/android”>
<RadioButton
//attributes 
android:text = “Radio button”
android:checked = “true”
/>
</LinearLayout>

2. Activity फाइल – इसमे हम इसे निचे की तरह प्रोग्रामेटिक रूप में declare करते है

setContentView(R.layout.activity_main);
LinearLayout linearlayout_name =(LinearLayout)findViewById(R.id.LinearLayout);
RadioButton btn_name = new RadioButton(this);
btn_name.setText(“hello I am javahindi owner RadioButton”);
linearLayout.addView(btn_name);

reference-https://developer.android.com/guide/topics/ui/controls/radiobutton

निवेदन :-अगर आपको यह आर्टिकल( android Radio Button in hindi) उपयोगी लगा हो तो इस आप अपने क्लासमेट ,दोस्तों  के साथ अवश्य share कीजिये और आपके जो भी इस पोस्ट्स से related() questions( android Radio Button in hindi) है तो आप उन्हें निचे कमेंट कर सकते है हम उसके  answer अवश्य करेंगे Thank

Leave a Comment