• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps [ASK]Create Layout Android

hidayat_io

Lurker
Apr 30, 2015
4
0
Hi guys,

I'm newbie here that still starting to learn android programing. I'm gonna create some apps with layout like this :
Untitled.png


There is 4 section, i know no.4 is use Action Bar. Section 1 & 2 use Listview.
I'm gonna ask :

1. How to split section 1 and section 2, is this use 2 Listview layout ?
2. What component use to split section 1 & 2 with section 3 ?

Maybe if there is kindly people here that can help me please, or even give me some code to do this.. :D

Thank you before guys. :)
 
This layout can be writen with 3 LinearLayout's. Like this:
Code:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:orientation="vertical"
android:weight="1"
>
<!-- ListView 1 and 2 here -->
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:orientation="vertical"
android:weight="1"
>
<!-- ListView 3 here -->
</LinearLayout>
 
Upvote 0
This layout can be writen with 3 LinearLayout's. Like this:
Code:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:orientation="vertical"
android:weight="1"
>
<!-- ListView 1 and 2 here -->
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:orientation="vertical"
android:weight="1"
>
<!-- ListView 3 here -->
</LinearLayout>

Thank you so much dude.. i'll try it :)
 
Upvote 0
If there can be big amounts of data - then this must be ListViews. If data of these layouts contains limited rows - this can be LinearLayout or RelativeLayout.

Thanks guys you always help me, and again i need you help please.

i wanna create some input form like bellow : when i press ADD on Action Button so this Form Activity should come up.

Screenshot_2015_05_17_10_56_56.png


How to add Close button in Top Left and Save in Top Right , is this use Action Bar ?
And if i see this form doesn't have Back button i think it's a independent activity without any parent.
Is i correct ?
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones