|
| 1 | +<!-- |
| 2 | + ~ ******************************************************************************* |
| 3 | + ~ Copyright (c) 2013-2014 Francesco Azzola (http://www.survivingwithandroid.com). |
| 4 | + ~ |
| 5 | + ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | + ~ you may not use this file except in compliance with the License. |
| 7 | + ~ You may obtain a copy of the License at |
| 8 | + ~ |
| 9 | + ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + ~ |
| 11 | + ~ Unless required by applicable law or agreed to in writing, software |
| 12 | + ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + ~ See the License for the specific language governing permissions and |
| 15 | + ~ limitations under the License. |
| 16 | + ~ ***************************************************************************** |
| 17 | + --> |
| 18 | + |
| 19 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | + xmlns:tools="http://schemas.android.com/tools" |
| 21 | + android:layout_width="match_parent" |
| 22 | + android:layout_height="match_parent" |
| 23 | + android:paddingLeft="@dimen/activity_horizontal_margin" |
| 24 | + android:paddingRight="@dimen/activity_horizontal_margin" |
| 25 | + android:paddingTop="@dimen/activity_vertical_margin" |
| 26 | + android:paddingBottom="@dimen/activity_vertical_margin" |
| 27 | + tools:context="com.survivingwithandroid.aidlservice.client.MainActivity"> |
| 28 | + |
| 29 | + <TextView |
| 30 | + android:text="Android Restful Service " |
| 31 | + android:layout_width="wrap_content" |
| 32 | + android:layout_height="wrap_content" |
| 33 | + android:layout_marginTop="5dp" |
| 34 | + android:layout_centerHorizontal="true" |
| 35 | + android:textSize="20sp" |
| 36 | + android:id="@+id/title"/> |
| 37 | + |
| 38 | + <TextView |
| 39 | + android:text="Stock name" |
| 40 | + android:layout_width="wrap_content" |
| 41 | + android:layout_height="wrap_content" |
| 42 | + android:layout_marginTop="45dp" |
| 43 | + android:id="@+id/stocklbl" |
| 44 | + android:layout_below="@id/title"/> |
| 45 | + |
| 46 | + <EditText |
| 47 | + android:hint="Write stock symbol here..." |
| 48 | + android:layout_width="wrap_content" |
| 49 | + android:layout_height="wrap_content" |
| 50 | + android:layout_marginTop="15dp" |
| 51 | + android:id="@+id/edtSym" |
| 52 | + android:layout_below="@id/stocklbl" |
| 53 | + android:ems="15"/> |
| 54 | + |
| 55 | + <Button |
| 56 | + android:layout_width="wrap_content" |
| 57 | + android:layout_height="wrap_content" |
| 58 | + android:text="Get quote!" |
| 59 | + android:layout_centerHorizontal="true" |
| 60 | + android:layout_below="@id/edtSym" |
| 61 | + android:layout_marginTop="15dp" |
| 62 | + android:id="@+id/btnGo"/> |
| 63 | + |
| 64 | + <TextView |
| 65 | + android:text="Ask" |
| 66 | + android:layout_width="wrap_content" |
| 67 | + android:layout_height="wrap_content" |
| 68 | + android:layout_marginTop="45dp" |
| 69 | + android:id="@+id/stockAskQuotelbl" |
| 70 | + android:layout_below="@id/btnGo"/> |
| 71 | + |
| 72 | + <TextView |
| 73 | + android:text="" |
| 74 | + android:layout_width="wrap_content" |
| 75 | + android:layout_height="wrap_content" |
| 76 | + android:id="@+id/askValue" |
| 77 | + android:layout_toRightOf="@id/stockAskQuotelbl" |
| 78 | + android:layout_alignBaseline="@id/stockAskQuotelbl" |
| 79 | + android:layout_marginLeft="5dp"/> |
| 80 | + |
| 81 | + <TextView |
| 82 | + android:text="Bid" |
| 83 | + android:layout_width="wrap_content" |
| 84 | + android:layout_height="wrap_content" |
| 85 | + android:layout_marginTop="45dp" |
| 86 | + android:id="@+id/stockBidQuotelbl" |
| 87 | + android:layout_below="@id/stockAskQuotelbl"/> |
| 88 | + |
| 89 | + <TextView |
| 90 | + android:text="" |
| 91 | + android:layout_width="wrap_content" |
| 92 | + android:layout_height="wrap_content" |
| 93 | + android:id="@+id/bidValue" |
| 94 | + android:layout_toRightOf="@id/stockBidQuotelbl" |
| 95 | + android:layout_alignBaseline="@id/stockBidQuotelbl" |
| 96 | + android:layout_marginLeft="5dp"/> |
| 97 | + |
| 98 | +</RelativeLayout> |
0 commit comments