Step 1:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.5"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:background="@android:color/white"
android:orientation="vertical"> <ListView
android:id="@+id/Appoinment_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:dividerHeight="4sp"
android:divider="@android:color/white"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="0dp" />
Step 2:.
Save File name : layout.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android"> <stroke android:width="1dp"
android:color="@color/colorgray" /> <padding
android:left="7dp"
android:top="7dp"
android:right="7dp"
android:bottom="7dp" />
<corners
android:radius="4dp" /> </shape>
Step 3:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_gravity="center"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/layout"
android:orientation="horizontal"> <TextView
android:id="@+id/time"
android:gravity="center"
android:padding="10dip"
android:textSize="13dip"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="TextView" /> <TextView
android:id="@+id/name"
android:gravity="center"
android:padding="10dip"
android:textSize="13dip"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="TextView" /> </LinearLayout> </LinearLayout>
No comments:
Post a Comment