-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
139 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!-- rounded_corner.xml --> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<corners android:radius="18dp" /> | ||
<solid android:color="#2A0D84FF" /> | ||
</shape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright (C) 2015 The Android Open Source Project | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License | ||
--> | ||
|
||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:clickable="false" | ||
android:clipChildren="false" | ||
android:gravity="center_vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical" | ||
android:paddingTop="6dp" | ||
android:paddingStart="24dp" | ||
android:paddingEnd="24dp" | ||
android:paddingBottom="2dp"> | ||
|
||
<include layout="@layout/image_frame" /> | ||
|
||
<RelativeLayout | ||
android:gravity="center_vertical" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical" | ||
android:layout_weight="1.0"> | ||
|
||
<TextView | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@android:id/title" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@drawable/headtip_tip_background" | ||
android:textColor="@color/textview_blue" | ||
android:paddingLeft="16dp" | ||
android:paddingRight="16dp" | ||
android:paddingTop="14dp" | ||
android:paddingBottom="14dp" | ||
android:inputType="textMultiLine" | ||
android:textIsSelectable="true" | ||
android:enabled="false" | ||
android:clickable="true" | ||
android:focusable="false" | ||
android:focusableInTouchMode="false" | ||
android:longClickable="true" | ||
/> | ||
</RelativeLayout> | ||
|
||
<!-- Preference should place its actual preference widget here. --> | ||
<LinearLayout | ||
android:id="@android:id/widget_frame" | ||
android:gravity="center" | ||
android:clipChildren="false" | ||
android:orientation="vertical" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:minWidth="@dimen/preference_widget_minWidth" /> | ||
|
||
<ImageView | ||
android:id="@+id/arrow_right" | ||
android:gravity="center" | ||
android:layout_gravity="center|end" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:src="@drawable/ic_preference_arrow_right" /> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<Preference | ||
android:layout="@layout/headtip_tip" | ||
android:key="prefs_key_headtip_tip" | ||
android:enabled="false" | ||
android:title="@string/headtip_tip_long_press_to_copy" /> | ||
|
||
<Preference | ||
android:layout="@layout/development_debug_info" | ||
android:key="prefs_key_debug_info" | ||
android:enabled="false" | ||
android:enabled="true" | ||
android:title="@string/debug_info" /> | ||
|
||
</PreferenceScreen> |