amirsafari 116 ارسال شده در 7 آبان، 2016 اشتراک گذاری ارسال شده در 7 آبان، 2016 سلام دوستان من میخوام یه TextView همیشه زیر اون یکی باشه و این که Textview دوم هم وسط صفحه باشه ولی این دوتادستور رو که با هم میزنم . Textiew دوم میاد زیر اون یکی . اینم کدم . لطفا راهنمایی کنید <TextView android:id="@+id/Story_Title_tv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/StoryTitle" android:textSize="@dimen/TextSizeTitle" android:layout_margin="@dimen/StorytitleMargin" android:textColor="@color/storyTitlecolor" /> <TextView android:id="@+id/Story_content_tv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="@dimen/descriptionmargin" android:textColor="@android:color/white" android:textSize="@dimen/TextSizeDescription" android:paddingRight="@dimen/Storypaddingright" android:paddingBottom="@dimen/Storypaddingbottom" android:paddingTop="@dimen/StorypaddingTop" android:layout_centerVertical="true" android:layout_below="@+id/Story_Title_tv" android:text="@string/string1" /> لینک ارسال به اشتراک گذاری در سایت های دیگر تنظیمات بیشتر اشتراک گذاری ...
محمدرضا شاهپیری 5,631 ارسال شده در 11 آبان، 2016 اشتراک گذاری ارسال شده در 11 آبان، 2016 سلام دوستان من میخوام یه TextView همیشه زیر اون یکی باشه و این که Textview دوم هم وسط صفحه باشه ولی این دوتادستور رو که با هم میزنم . Textiew دوم میاد زیر اون یکی . اینم کدم . لطفا راهنمایی کنید <TextView android:id="@+id/Story_Title_tv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/StoryTitle" android:textSize="@dimen/TextSizeTitle" android:layout_margin="@dimen/StorytitleMargin" android:textColor="@color/storyTitlecolor" /> <TextView android:id="@+id/Story_content_tv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="@dimen/descriptionmargin" android:textColor="@android:color/white" android:textSize="@dimen/TextSizeDescription" android:paddingRight="@dimen/Storypaddingright" android:paddingBottom="@dimen/Storypaddingbottom" android:paddingTop="@dimen/StorypaddingTop" android:layout_centerVertical="true" android:layout_below="@+id/Story_Title_tv" android:text="@string/string1" /> این که خیلی سادس عزیز کد زیر رو واسه تکست ویو بالایی قرار بدین و مال پایینی رو حذف کنید android:layout_below="@+id/Story_Title_tv" در کل به شکل زیر میشه لایتون <TextView android:id="@+id/Story_Title_tv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/StoryTitle" android:layout_below="@+id/Story_content_tv" android:textSize="@dimen/TextSizeTitle" android:layout_margin="@dimen/StorytitleMargin" android:textColor="@color/storyTitlecolor" /> <TextView android:id="@+id/Story_content_tv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="@dimen/descriptionmargin" android:textColor="@android:color/white" android:textSize="@dimen/TextSizeDescription" android:paddingRight="@dimen/Storypaddingright" android:paddingBottom="@dimen/Storypaddingbottom" android:paddingTop="@dimen/StorypaddingTop" android:layout_centerVertical="true" android:text="@string/string1" /> لینک ارسال به اشتراک گذاری در سایت های دیگر تنظیمات بیشتر اشتراک گذاری ...
Kazem Forghani 2,928 ارسال شده در 7 آبان، 2016 اشتراک گذاری ارسال شده در 7 آبان، 2016 سلام ، منظورتون رو متوجه نشدم. اگر ممکنه بیشتر توضیح بدید یا یه عکس از اون چیزی که قصد دارید بسازید قرار بدید. لینک ارسال به اشتراک گذاری در سایت های دیگر تنظیمات بیشتر اشتراک گذاری ...
amirsafari 116 ارسال شده در 7 آبان، 2016 سازنده اشتراک گذاری ارسال شده در 7 آبان، 2016 سلام ، منظورتون رو متوجه نشدم. اگر ممکنه بیشتر توضیح بدید یا یه عکس از اون چیزی که قصد دارید بسازید قرار بدید. ببینید منظور من اینه کTextView2 با این که وسط صفحه قرار داره . هم زمان همیشه زیر TextView1 باشه . لینک ارسال به اشتراک گذاری در سایت های دیگر تنظیمات بیشتر اشتراک گذاری ...
coco 1,746 ارسال شده در 9 آبان، 2016 اشتراک گذاری ارسال شده در 9 آبان، 2016 سلام ببینین بهتره تو لی اوت هایی که میخواین ویو ها زیر یا بقل هم چیده بشن بیاین از LinearLayout استفاده کنید و بهش orientation بدین (vertical و horizontal) اما اگر واجبه که از این لی اوت استفاده کنید باید بیاین به هر ویو آیدی بدین و مثلا اگر id عه اولی tv1 و دومی tv2 و خواستین tv2 زیر tv1 باشه باید بیاین توی xml عه tv2 بگین : android:layout_below="@+id/tv1" لینک ارسال به اشتراک گذاری در سایت های دیگر تنظیمات بیشتر اشتراک گذاری ...
amirsafari 116 ارسال شده در 8 آبان، 2016 سازنده اشتراک گذاری ارسال شده در 8 آبان، 2016 کسی نمیتونه راهنمایی کنه؟ لینک ارسال به اشتراک گذاری در سایت های دیگر تنظیمات بیشتر اشتراک گذاری ...
سوال
amirsafari 116
سلام دوستان من میخوام یه TextView همیشه زیر اون یکی باشه و این که Textview دوم هم وسط صفحه باشه ولی این دوتادستور رو که با هم میزنم . Textiew دوم میاد زیر اون یکی .
اینم کدم . لطفا راهنمایی کنید
<TextView android:id="@+id/Story_Title_tv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/StoryTitle" android:textSize="@dimen/TextSizeTitle" android:layout_margin="@dimen/StorytitleMargin" android:textColor="@color/storyTitlecolor" /> <TextView android:id="@+id/Story_content_tv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="@dimen/descriptionmargin" android:textColor="@android:color/white" android:textSize="@dimen/TextSizeDescription" android:paddingRight="@dimen/Storypaddingright" android:paddingBottom="@dimen/Storypaddingbottom" android:paddingTop="@dimen/StorypaddingTop" android:layout_centerVertical="true" android:layout_below="@+id/Story_Title_tv" android:text="@string/string1" />لینک ارسال
به اشتراک گذاری در سایت های دیگر
5 پاسخ به این سوال تاکنون داده شده است
ارسالهای توصیه شده
بایگانی شده
این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.