kanytu / kanytu/Android-studio-material-template

Problems on Adding More than One Material Drawer Activity to Same Project

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
FreeMarker
Stars
596
Forks
142
PR merge metrics
No merged PRs in 30d

Description

I got these warnings on adding more than one Material Drawer Activity to Same Project, and i am afraid it will generate error and that must be corrected manually...

```
Ignoring conflict for the value: navigation_drawer_width wanted: "240dp" but it already is: "320dp" in the file: dimens.xml

The following file could not be created since it already exists: styles.xml

The following file could not be created since it already exists: row_selector.xml

The following file could not be created since it already exists: drawer_row.xml

The following file could not be created since it already exists: toolbar_default.xml

The following file could not be created since it already exists: NavigationDrawerFragment.java

If you proceed the resulting project may not compile or not work as intended.
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by examining the template files named in the warning: dimens.xml, styles.xml, row_selector.xml, drawer_row.xml, toolbar_default.xml, and NavigationDrawerFragment.java. Reproduce adding more than one Material Drawer Activity, then trace how each generated activity handles shared resources. Done means multiple activities can be added without file or resource conflicts and the generated project compiles and works as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.