You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-14Lines changed: 13 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
1
What is ZOptimization
2
2
--------
3
3
4
-
Android library for optimization your UI. You don't need to create dimens for ldpi/hdpi/xhdpi/xxhdpi and so on.
5
-
All you have to do is create only one dimens.xml file and put values for a specific device.
4
+
Android library that provides a means to optimize user interface without having configuration qualifiers for different pixel densities. The main idea is to make layout looks the same as on trusted device with correctly configured layout.
6
5
7
6
Example
8
7
--------
@@ -37,7 +36,7 @@ Usage
37
36
</RelativeLayout>
38
37
```
39
38
40
-
#### Activity
39
+
#### Activity example
41
40
42
41
```java
43
42
publicclassMainActivityextendsActivity {
@@ -52,12 +51,12 @@ public class MainActivity extends Activity {
52
51
super.onCreate(savedInstanceState);
53
52
setContentView(getProperContentView());
54
53
55
-
//Data binding example
54
+
//Data binding example (if needed)
56
55
ViewGroup viewGroup = getProperContentView();
57
56
setContentView(viewGroup);
58
57
DataBindingUtil.bind<T>(viewGroup);
59
58
60
-
//How to get display metrics for tested device
59
+
//How to get display metrics for the tested device
0 commit comments