espace-formation-initiation-android / CardView / Application / src / main / res / layout / fragment_card_view.xml @ 1
Historique | Voir | Annoter | Télécharger (3,619 ko)
1 | 1 | segarra | <?xml version="1.0" encoding="utf-8"?>
|
---|---|---|---|
2 | <!--
|
||
3 | Copyright 2014 The Android Open Source Project
|
||
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 | <ScrollView
|
||
18 | xmlns:android="http://schemas.android.com/apk/res/android" |
||
19 | xmlns:card_view="http://schemas.android.com/apk/res-auto" |
||
20 | android:layout_height="match_parent" |
||
21 | android:layout_width="match_parent" |
||
22 | >
|
||
23 | |||
24 | <LinearLayout android:layout_width="match_parent" |
||
25 | android:layout_height="wrap_content" |
||
26 | android:orientation="vertical" |
||
27 | android:paddingBottom="@dimen/activity_vertical_margin" |
||
28 | android:paddingTop="@dimen/activity_vertical_margin" |
||
29 | android:paddingLeft="@dimen/activity_horizontal_margin" |
||
30 | android:paddingRight="@dimen/activity_horizontal_margin" |
||
31 | >
|
||
32 | <android.support.v7.widget.CardView
|
||
33 | android:id="@+id/cardview" |
||
34 | android:layout_width="fill_parent" |
||
35 | android:layout_height="wrap_content" |
||
36 | android:elevation="100dp" |
||
37 | card_view:cardBackgroundColor="@color/cardview_initial_background" |
||
38 | card_view:cardCornerRadius="8dp" |
||
39 | android:layout_marginLeft="@dimen/margin_large" |
||
40 | android:layout_marginRight="@dimen/margin_large" |
||
41 | >
|
||
42 | |||
43 | <TextView
|
||
44 | android:layout_width="wrap_content" |
||
45 | android:layout_height="wrap_content" |
||
46 | android:layout_margin="@dimen/margin_medium" |
||
47 | android:text="@string/cardview_contents" |
||
48 | />
|
||
49 | </android.support.v7.widget.CardView>
|
||
50 | |||
51 | <LinearLayout
|
||
52 | android:layout_width="fill_parent" |
||
53 | android:layout_height="wrap_content" |
||
54 | android:layout_marginTop="@dimen/margin_large" |
||
55 | android:orientation="horizontal" |
||
56 | >
|
||
57 | <TextView
|
||
58 | android:layout_width="@dimen/seekbar_label_length" |
||
59 | android:layout_height="wrap_content" |
||
60 | android:layout_gravity="center_vertical" |
||
61 | android:text="@string/cardview_radius_seekbar_text" |
||
62 | />
|
||
63 | <SeekBar
|
||
64 | android:id="@+id/cardview_radius_seekbar" |
||
65 | android:layout_width="fill_parent" |
||
66 | android:layout_height="wrap_content" |
||
67 | android:layout_margin="@dimen/margin_medium" |
||
68 | />
|
||
69 | </LinearLayout>
|
||
70 | |||
71 | <LinearLayout
|
||
72 | android:layout_width="fill_parent" |
||
73 | android:layout_height="wrap_content" |
||
74 | android:orientation="horizontal" |
||
75 | >
|
||
76 | <TextView
|
||
77 | android:layout_width="@dimen/seekbar_label_length" |
||
78 | android:layout_height="wrap_content" |
||
79 | android:layout_gravity="center_vertical" |
||
80 | android:text="@string/cardview_elevation_seekbar_text" |
||
81 | />
|
||
82 | <SeekBar
|
||
83 | android:id="@+id/cardview_elevation_seekbar" |
||
84 | android:layout_width="fill_parent" |
||
85 | android:layout_height="wrap_content" |
||
86 | android:layout_margin="@dimen/margin_medium" |
||
87 | />
|
||
88 | </LinearLayout>
|
||
89 | </LinearLayout>
|
||
90 | </ScrollView>
|