Optimized resource name.

This commit is contained in:
2022-09-28 11:36:14 +08:00
parent ed70494a26
commit 62e12dd899
2 changed files with 17 additions and 16 deletions

View File

@@ -10,7 +10,7 @@
android:id="@+id/constraint_layout_current_ip" android:id="@+id/constraint_layout_current_ip"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/common_layout_margin" android:layout_margin="@dimen/tool_ip_layout_margin"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
@@ -40,8 +40,8 @@
android:id="@+id/constraint_layout_query" android:id="@+id/constraint_layout_query"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/common_layout_margin" android:layout_margin="@dimen/tool_ip_layout_margin"
android:padding="@dimen/tool_ip_common_padding" android:padding="@dimen/tool_ip_layout_padding"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/constraint_layout_current_ip"> app:layout_constraintTop_toBottomOf="@id/constraint_layout_current_ip">
@@ -55,7 +55,7 @@
android:hint="@string/tool_ip_ipaddress" android:hint="@string/tool_ip_ipaddress"
android:imeOptions="actionSearch" android:imeOptions="actionSearch"
android:inputType="text" android:inputType="text"
android:padding="@dimen/tool_ip_common_padding" android:padding="@dimen/tool_ip_layout_padding"
app:layout_constraintEnd_toStartOf="@id/image_view_query" app:layout_constraintEnd_toStartOf="@id/image_view_query"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
@@ -69,7 +69,7 @@
android:contentDescription="Query" android:contentDescription="Query"
android:focusable="true" android:focusable="true"
android:foreground="@drawable/foreground_ripple" android:foreground="@drawable/foreground_ripple"
android:padding="@dimen/tool_ip_common_padding" android:padding="@dimen/tool_ip_layout_padding"
android:src="@drawable/ic_search" android:src="@drawable/ic_search"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
@@ -80,9 +80,9 @@
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/common_layout_margin" android:layout_margin="@dimen/tool_ip_layout_margin"
android:orientation="vertical" android:orientation="vertical"
android:padding="@dimen/tool_ip_common_padding" android:padding="@dimen/tool_ip_layout_padding"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/constraint_layout_query"> app:layout_constraintTop_toBottomOf="@id/constraint_layout_query">
@@ -95,14 +95,14 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/common_layout_margin" android:layout_margin="@dimen/tool_ip_layout_margin"
android:text="@string/tool_ip_ipaddress" /> android:text="@string/tool_ip_ipaddress" />
<TextView <TextView
android:id="@+id/text_view_result_ip" android:id="@+id/text_view_result_ip"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/common_layout_margin" android:layout_margin="@dimen/tool_ip_layout_margin"
android:text="@string/tool_ip_Unknown" /> android:text="@string/tool_ip_Unknown" />
</LinearLayout> </LinearLayout>
@@ -114,14 +114,14 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/common_layout_margin" android:layout_margin="@dimen/tool_ip_layout_margin"
android:text="@string/tool_ip_province" /> android:text="@string/tool_ip_province" />
<TextView <TextView
android:id="@+id/text_view_result_province" android:id="@+id/text_view_result_province"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/common_layout_margin" android:layout_margin="@dimen/tool_ip_layout_margin"
android:text="@string/tool_ip_Unknown" /> android:text="@string/tool_ip_Unknown" />
</LinearLayout> </LinearLayout>
@@ -133,14 +133,14 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/common_layout_margin" android:layout_margin="@dimen/tool_ip_layout_margin"
android:text="@string/tool_ip_city" /> android:text="@string/tool_ip_city" />
<TextView <TextView
android:id="@+id/text_view_result_city" android:id="@+id/text_view_result_city"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/common_layout_margin" android:layout_margin="@dimen/tool_ip_layout_margin"
android:text="@string/tool_ip_Unknown" /> android:text="@string/tool_ip_Unknown" />
</LinearLayout> </LinearLayout>
@@ -152,14 +152,14 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/common_layout_margin" android:layout_margin="@dimen/tool_ip_layout_margin"
android:text="@string/tool_ip_isp" /> android:text="@string/tool_ip_isp" />
<TextView <TextView
android:id="@+id/text_view_result_isp" android:id="@+id/text_view_result_isp"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/common_layout_margin" android:layout_margin="@dimen/tool_ip_layout_margin"
android:text="@string/tool_ip_Unknown" /> android:text="@string/tool_ip_Unknown" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

View File

@@ -45,6 +45,7 @@
<dimen name="tool_translation_layout_margin">@dimen/common_layout_margin</dimen> <dimen name="tool_translation_layout_margin">@dimen/common_layout_margin</dimen>
<dimen name="tool_translation_edit_text_view_height">200dp</dimen> <dimen name="tool_translation_edit_text_view_height">200dp</dimen>
<dimen name="tool_ip_common_padding">10dp</dimen> <dimen name="tool_ip_layout_padding">10dp</dimen>
<dimen name="tool_ip_layout_margin">@dimen/common_layout_margin</dimen>
<dimen name="tool_ip_query_bar_size">48dp</dimen> <dimen name="tool_ip_query_bar_size">48dp</dimen>
</resources> </resources>