मैं एंड्रॉइड में निम्न स्क्रीन विकसित करना चाहता हूं। परिपत्र लेआउट
मैंने CircleLayout का उपयोग किया लेकिन मैं अभी भी वांछित आउटपुट प्राप्त करने में सक्षम नहीं हूं। निम्नलिखित कोड और स्क्रीनशॉट देखें।
<com.example.hl.CircleLayout
android:id="@+id/pie"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
custom:dividerWidth="5dp"
custom:innerCircle="@drawable/profile_pic_icon"
custom:innerRadius="50dp"
custom:layoutMode="pie"
custom:sliceDivider="@android:color/transparent" >
<RelativeLayout
android:id="@+id/appt_center_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/appt_center_bg" >
<TextView
android:id="@+id/one"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:onClick="onClick"
android:text="APP CENTER"
android:textStyle="bold" />
</RelativeLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/meds_cabinet_bg" >
<TextView
android:id="@+id/two"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:onClick="onClick"
android:text="MEDS CABINET"
android:textStyle="bold" />
</RelativeLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/check_in_bg" >
<TextView
android:id="@+id/three"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:onClick="onClick"
android:text="CHECK-IN"
android:textStyle="bold" />
</RelativeLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/my_tracker_bg" >
<TextView
android:id="@+id/four"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:onClick="onClick"
android:text="MY TRACKERS"
android:textStyle="bold" />
</RelativeLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/myaccount_bg" >
<TextView
android:id="@+id/five"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:onClick="onClick"
android:text="MY ACCOUNTS"
android:textStyle="bold" />
</RelativeLayout>
</com.example.hl.CircleLayout>
स्क्रीनशॉट
प्रश्न: -
क्या कोई अन्य पुस्तकालय वांछित स्क्रीन विकसित करने में मदद कर सकते है?
कस्टम दृश्य का उपयोग करके ऐसी स्क्रीन कैसे विकसित करें? मेरा मतलब है कि इस तरह के कस्टम व्यू को आसानी से विकसित करने के लिए क्या कदम हैं?
मैं शायद पदावनत AbsoluteLayout उपयोग करें और सभी एक्स प्रदर्शन करेंगे, अपने आप को अपेक्षाकृत कुल उपलब्ध आकार के लिए अलग-अलग बटन के y गणना। आकार बदलने पर सभी पदों को फिर से कैल करना याद रखें। – talkol
क्या आपने उदाहरण प्रोजेक्ट की जांच की है? पहला अंतर यह है कि सभी 'CircleLayout' के प्रत्यक्ष बच्चों की ऊंचाई/चौड़ाई के लिए' match_parent' है, जबकि आपका नहीं है। इसके माध्यम से जाएं और उदाहरण के मुकाबले जितना संभव हो उतना नकल करें, फिर देखें कि यह आपको करीब ले जाता है या नहीं। वैसे, "क्या कोई अन्य लाइब्रेरी है ..." यहां विषय है, और आपका दूसरा प्रश्न बहुत व्यापक है। मैं "इस CircleLayout को कैसे ठीक कर सकता हूं ..." के साथ रहना चाहता हूं। – Geobits
@ becomputer06 क्या आपने समस्या हल की? – SeniorJD