maoruibin / maoruibin/maoruibin.github.com

一个垂直方向带阴影效果的 shape

Open
#22 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
22
Forks
4
PR merge metrics
No merged PRs in 30d

Description

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <gradient android:angle="270"
        android:startColor="#12000000"
        android:centerColor="#05000000"
        android:centerY="0.4"
        android:endColor="#02000000"/>
</shape>

这里的 centerYcenterColor 联合起来用于精细化控制渐变

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue body contains an Android XML shape using a vertical gradient, including centerY and centerColor, but it names no file or entry point. Start by checking where this snippet belongs in the blog and confirm the intended change with the maintainer. Done should be a clearly defined, published documentation update.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.