-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support change RepeatIcon DPI by number for RepeaterPlus
- Loading branch information
Showing
2 changed files
with
144 additions
and
63 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
107 changes: 107 additions & 0 deletions
107
app/src/main/res/layout/select_repeater_icon_dialog_plus.xml
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,107 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="5dp" | ||
android:layout_marginRight="5dp" | ||
android:text="请输入图片文件路径(建议使用支持半透明的PNG格式图片)" | ||
tools:ignore="RtlHardcoded" /> | ||
|
||
<EditText | ||
android:id="@+id/selectRepeaterIcon_editTextIconLocation" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:ems="10" | ||
android:hint="图片路径..." | ||
android:inputType="text" /> | ||
|
||
<RelativeLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="5dp" | ||
android:layout_marginRight="5dp"> | ||
|
||
<Button | ||
android:id="@+id/selectRepeaterIcon_buttonLoadFile" | ||
style="?android:attr/buttonBarButtonStyle" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentLeft="true" | ||
android:text="加载" | ||
tools:ignore="RtlHardcoded" /> | ||
|
||
<Button | ||
android:id="@+id/selectRepeaterIcon_buttonBrowseImg" | ||
style="?android:attr/buttonBarButtonStyle" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentRight="true" | ||
android:text="浏览..." | ||
tools:ignore="RtlHardcoded" /> | ||
</RelativeLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/selectRepeaterIcon_linearLayoutDpi" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
|
||
<CheckBox | ||
android:id="@+id/selectRepeaterIcon_checkBoxSpecifyDpi" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="5dp" | ||
android:checked="true" | ||
android:text="图片DPI" /> | ||
<EditText | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/selectRepeaterIcon_InputDpi" | ||
android:layout_marginTop="5dp"/> | ||
</LinearLayout> | ||
|
||
<TextView | ||
android:id="@+id/selectRepeaterIcon_textViewWarnMsg" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:textColor="#FF2E2E" | ||
android:visibility="gone" /> | ||
|
||
<RelativeLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="5dp"> | ||
|
||
<ImageView | ||
android:id="@+id/selectRepeaterIcon_imageViewPreview" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="3dp" | ||
android:layout_marginRight="3dp" | ||
android:layout_toEndOf="@id/selectRepeaterIcon_tmp_textViewPreviewText" | ||
android:layout_toRightOf="@id/selectRepeaterIcon_tmp_textViewPreviewText" /> | ||
|
||
<TextView | ||
android:id="@+id/selectRepeaterIcon_tmp_textViewPreviewText" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentStart="true" | ||
android:layout_alignParentLeft="true" | ||
android:text="预览:" /> | ||
|
||
<Button | ||
android:id="@+id/selectRepeaterIcon_buttonRestoreDefaultIcon" | ||
style="?android:attr/buttonBarButtonStyle" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentEnd="true" | ||
android:layout_alignParentRight="true" | ||
android:text="恢复默认图片" /> | ||
</RelativeLayout> | ||
</LinearLayout> |