kutear / Fuck Hard Code
This is a Tool to extract hard code from android layout
Stars: ✭ 122
Programming Languages
go
31211 projects - #10 most used programming language
Projects that are alternatives of or similar to Fuck Hard Code
Androidappydevelopertools
A list of cool/useful Apps too help Android Developers
Stars: ✭ 116 (-4.92%)
Mutual labels: tools
Labelbox
Labelbox is the fastest way to annotate data to build and ship computer vision applications.
Stars: ✭ 1,588 (+1201.64%)
Mutual labels: tools
Norepeat
The norepeat package contains some magical function, tools
Stars: ✭ 111 (-9.02%)
Mutual labels: tools
Automation Arsenal
Curated list of popular Java and Kotlin frameworks, libraries and tools related to software testing, quality assurance and adjacent processes automation.
Stars: ✭ 105 (-13.93%)
Mutual labels: tools
Fgtk
A set of a misc tools to work with files and processes
Stars: ✭ 121 (-0.82%)
Mutual labels: tools
Zb
an opinionated repo based tool for linting, testing and building go source
Stars: ✭ 111 (-9.02%)
Mutual labels: tools
Useful Dev Tools
⭐️ A list with useful tools that help many Developers. Hacktoberfest ⭐️
Stars: ✭ 119 (-2.46%)
Mutual labels: tools
Awesome Vrchat
One-stop shop for people interested in developing content for VRchat
Stars: ✭ 107 (-12.3%)
Mutual labels: tools
Utils.js
Useful JavaScript Functions Collection 一些很实用的JavaScript函数封装集合
Stars: ✭ 121 (-0.82%)
Mutual labels: tools
Tools
a collection of useful tools, including SKTimeStamp and StExBar
Stars: ✭ 105 (-13.93%)
Mutual labels: tools
Setup Php
GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.
Stars: ✭ 1,945 (+1494.26%)
Mutual labels: tools
Professional Services
Common solutions and tools developed by Google Cloud's Professional Services team
Stars: ✭ 1,923 (+1476.23%)
Mutual labels: tools
中文文档
Android hardcoding extraction tool
Extraction string and dimens from layout,Merge into strings.xml and dimens.xml
Usage
Programs description
Programs purpose: fixed Android project Hard Code Problems Args:
- layout:the path of $project/appmodule/src/main/res/layout
- config: configure file
- existPixels:the path of $project/appmodule/src/main/res/values/dimens.xml
- existStrings:the path of $project/appmodule/src/main/res/values/strings.xml
- scaleRatio:px to dp,default 3px == 1dp
- out:layout dir out path
after that you will see strings.xml and dimens.xml in {layout output path}/out
and all xml file in {layout output path}
Example
Create New Android Application and modify main layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/content"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:text="Hello Word"
android:textSize="20sp" />
</LinearLayout>
Now We Run This Tool,Over this,We can see the file in {out path/layout} with
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="top">
<TextView
android:id="@+id/content"
android:layout_width="wrap_content"
android:layout_height="@dimen/dp_0040_0"
android:text="@string/strings_0"
android:textSize="@dimen/sp_0020_0" />
</LinearLayout>
And {out path/layout/out} has two file ,strings.xml and dimens.xml
<!--strings.xml-->
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="strings_0">Hello Word</string>
</resources>
<!--dimens.xml-->
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="dp_0040_0">40.0dp</dimen>
<dimen name="sp_0020_0">20.0sp</dimen>
</resources>
Before Copy New file to Replace original File,Please make sure everything is OK!!!!
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].