Friday, 15 May 2015

material design - Navigation drawer bottom item -


मैंने यहां भौतिक दराज से नेविगेशन ड्रॉवर कार्यान्वित किया है

मेरी समस्या यह है कि मैं लॉगआउट जोड़ना चाहता हूं नेविगेशन ड्रॉवर सूची का अंत।

यहां दराज के लिए मेरा एक्सएमएल है

  & lt; mynews.volume.com.mynews.materialnavigation.ScrimInsetsFrameLayout एंड्रॉयड: आईडी = "@ + id / scrimInsetsFrameLayout" एंड्रॉयड: layout_width = "match_parent" एंड्रॉयड: layout_height = "wrap_content" एंड्रॉयड: fitsSystemWindows = "true" एप्लिकेशन: insetForeground = "# 99,000,000" एंड्रॉयड: ऊंचाई = "10dp" xmlns: एंड्रॉयड = "Http://schemas.android.com/apk/res/android" xmlns: ऐप = "http://schemas.android.com/apk/res-auto" & gt; & LT; /mynews.volume.com.mynews.materialnavigation.ScrimInsetsFrameLayout> & Lt; LinearLayout एंड्रॉइड: layout_width = "match_parent" एंड्रॉइड: layout_height = "match_parent" android: orientation = "लंबवत" & gt; id = "@ + id / toolbar_actionbar" लेआउट = "@ लेआउट / toolbar_default" एंड्रॉयड: layout_width = "match_parent" एंड्रॉयड: layout_height = "wrap_content" / & gt; & lt; एंड्रॉयड शामिल & Lt; फ़्रेमलेआउट एंड्रॉइड: id = "@ + id / कंटेनर" एंड्रॉइड: लेआउट_विड्थ = "fill_parent" एंड्रॉइड: क्लिक करने योग्य = "सच" एंड्रॉइड: layout_height = "match_parent" & gt; & LT; mynews.volume.com.mynews.swipe.SwipeListView एंड्रॉयड: आईडी = "@ + id / news_list_view" एंड्रॉयड: listSelector = "# 00000000" एंड्रॉयड: layout_width = "fill_parent" एंड्रॉयड: layout_height = "wrap_content" स्वाइप: swipeFrontView = "@ + id / सामने" स्वाइप: swipeBackView = "@ + id / वापस" स्वाइप: swipeDrawableChecked = "@ drawable / choice_selected" स्वाइप: swipeDrawableUnchecked = "@ drawable / choice_unselected" स्वाइप: swipeCloseAllItemsWhenMoveList = "true" कड़ी चोट: swipeActionRight = " प्रकट करें "ज़ोर से मारना: swipemode =" right "/ & gt; & Lt; -! & LT; ListView - & gt; ! & Lt; - एंड्रॉयड: layout_width = "fill_parent" - & gt; ! & Lt; - एंड्रॉयड: layout_height = "wrap_content" - & gt; & Lt; - एंड्रॉयड: आईडी = "@ + id / news_list_view" - & gt; & Lt; - एंड्रॉयड: विभक्त = "# E5E6E8" - & gt; & Lt; - एंड्रॉयड: listSelector = "@ एंड्रॉयड: रंग / पारदर्शी" - & gt; & Lt; - एंड्रॉयड: dividerHeight = "3DP" - & gt; & Lt; -! / & Gt; - & gt; & Lt; ProgressBar एंड्रॉइड: एडी = "@ + आईडी / प्रगतिबार 1" एंड्रॉइड: layout_width = "wrap_content" एंड्रॉइड: layout_height = "wrap_content" एंड्रॉइड: layout_gravity = "center" / & gt; & LT; TextView एंड्रॉयड: layout_width = "wrap_content" एंड्रॉयड: layout_marginLeft = "15dp" एंड्रॉयड: layout_marginRight = "15dp" एंड्रॉयड: textSize = "25dp" एंड्रॉयड: layout_height = "wrap_content" एंड्रॉयड: layout_gravity = "center_horizontal" एंड्रॉयड: गुरुत्वाकर्षण = " एंड्रॉइड: एंड्रॉइड: एंड्रॉइड: एंड्रॉइड: एंड्रॉइड: एंड्रॉइड: टेक्स्ट एपरेरेंस = "एंड्रॉइड: एटीआर / टेक्स्ट एपरेरेंस लार्ज" एंड्रॉइड: टेक्स्ट = "" एंड्रॉइड: विज़िबिलिटी = "गेय" एंड्रॉइड: आईडी = "@ + आईडी / नोडाटा" / & gt; & Lt; / FrameLayout & gt; & Lt; / LinearLayout & gt; & Lt;! - एंड्रॉइड: लेआउट_मार्गिन टॉप = "? एंड्रॉइड: एटीआर / एक्शनबारसिज़" - & gt; & LT; टुकड़ा एंड्रॉयड: आईडी = "@ + id / fragment_drawer" एंड्रॉयड: नाम = "mynews.volume.com.mynews.materialnavigation.NavigationDrawerFragment" एंड्रॉयड: layout_width = "@ Dimen / navigation_drawer_width" एंड्रॉयड: layout_height = "match_parent" एंड्रॉयड: Layout_gravity = "start" एप: लेआउट = "@ लेआउट / फ्रैगमेंट_नैविगेशन_ड्रावर" / & gt;  

कृपया इसे प्राप्त करने के लिए मुझे मार्गदर्शन करें। धन्यवाद!

यहां कोड का कोड लागू करने का प्रयास करें

  & lt; बटन एंड्रॉयड: आईडी = "@ + id / Button1" एंड्रॉयड: stateListAnimator = "@ anim / my_animator" एंड्रॉयड: layout_width = "wrap_content" एंड्रॉयड: layout_height = "wrap_content" एंड्रॉयड: layout_alignParentBottom = "true" // आप की जरूरत है इस एंड्रॉइड: लेआउट_सेंटरहोरिजॉंटल = "सच्चे" // और यह एंड्रॉइड: लेआउट_बेले = "@ आईडी / मैपवेव" एंड्रॉइड: टेक्स्ट = "@ स्ट्रिंग / सेव" / & gt;  

आशा है कि यह मदद करता है


No comments:

Post a Comment