Java programming Android UI design project summary

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/switch_love_case/article/details/87899481

title: Java Programming Android UI design project summary
Tags: the Java
DATE: 2019-02-24 01:20:00


Today is Saturday, this should not work, but before the project is not completed, overtime can only carry out his own school JAVA is relatively small, let alone UI design, not aesthetic. . .


The UI of the feel-good (-_-), but do their own research a long time to do it. In the following recorded programming data and code, prevent some children had forgotten.



  • Control the layout, the general linear layout, the layout must not write the dead, it can be written as the ratio of the layout.
  • Background gradient color and rounded off to a relatively simple, but they have to look gradient.
  • There are a hollow frame layout to be learned.
  • And the use of QMUI framework is not simple, have to study and research.

Code Summary:

  1. Modify the package name:
  2. Modify the software icon:
  3. Gradient background Code:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >

    <gradient
        android:angle="270"
        android:centerColor="#00FFFF"
        android:centerX="0.5"
        android:centerY="0.5"
        android:endColor="#666666"
        android:startColor="#0099FF" />

    <padding
        android:bottom="7dp"
        android:left="7dp"
        android:right="7dp"
        android:top="7dp" />

    <corners android:radius="4dp" />

</shape>
  1. Border background:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#00000000" />
    <stroke
        android:width="3dp"
        android:color="#065e8d"  />
    <padding
        android:bottom="1dp"
        android:left="1dp"
        android:right="1dp"
        android:top="1dp" />
    <corners android:radius="4dp" />
</shape>
  1. Sliding window background:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <gradient
        android:angle="135"
        android:centerColor="#009688"
        android:endColor="#00695C"
        android:startColor="#4DB6AC"
        android:type="linear" />
    <padding
        android:bottom="7dp"
        android:left="7dp"
        android:right="7dp"
        android:top="7dp" />
    <corners android:radius="4dp" />
</shape>

OK! Today to summarize here, too sleepy to even open my eyes.

Guess you like

Origin blog.csdn.net/switch_love_case/article/details/87899481